Skip to content

Commit

Permalink
ship @babel/standalone source maps (babel#14863)
Browse files Browse the repository at this point in the history
Co-authored-by: liuxingbaoyu <[email protected]>
  • Loading branch information
JLHwung and liuxingbaoyu authored Aug 31, 2022
1 parent 9425eed commit 35a9df0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ aliases:
- &artifact_babel
path: ~/babel/packages/babel-standalone/babel.js

- &artifact_babel_sourcemap
path: ~/babel/packages/babel-standalone/babel.js.map

- &artifact_babel_min
path: ~/babel/packages/babel-standalone/babel.min.js

- &artifact_babel_min_sourcemap
path: ~/babel/packages/babel-standalone/babel.min.js.map

- &test262_workdir
working_directory: ~/babel/babel-test262-runner

Expand All @@ -41,12 +47,14 @@ jobs:
- restore_cache: *restore-yarn-cache
# Builds babel-standalone with the regular Babel config
# test-ci-coverage doesn't test babel-standalone, as trying to gather coverage
- run: IS_PUBLISH=true make -j build-standalone-ci
- run: NODE_ENV=production IS_PUBLISH=true make -j build-standalone-ci
# data for a JS file that's several megabytes large is bound to fail. Here,
# we just run the babel-standalone test separately.
- run: yarn jest "\-standalone/test"
- store_artifacts: *artifact_babel
- store_artifacts: *artifact_babel_sourcemap
- store_artifacts: *artifact_babel_min
- store_artifacts: *artifact_babel_min_sourcemap
- save_cache: *save-yarn-cache

test262:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ package-lock.json
packages/babel-standalone/babel.js
packages/babel-standalone/babel.js.map
packages/babel-standalone/babel.min.js
packages/babel-standalone/babel.min.js.map
/codemods/*/lib
/packages/babel-parser/build
.idea/
Expand Down
2 changes: 1 addition & 1 deletion Makefile.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Makefile.source.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ target["prepublish-build"] = function () {
target["prepublish-prepare-dts"]();
},
{
NODE_ENV: "production",
STRIP_BABEL_8_FLAG: "true",
}
);
Expand Down
4 changes: 3 additions & 1 deletion packages/babel-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "./babel.js",
"files": [
"babel.js",
"babel.min.js"
"babel.js.map",
"babel.min.js",
"babel.min.js.map"
],
"devDependencies": {
"@babel/core": "workspace:^",
Expand Down

0 comments on commit 35a9df0

Please sign in to comment.