Skip to content

Commit

Permalink
fix: update pre-pkg babel config (aws-amplify#6135)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle authored Dec 10, 2020
1 parent 9c4281f commit 0681a07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"pkg-clean": "rimraf build out pkg/node_modules pkg/yarn.lock",
"pkg-install": "cd pkg && yarn install --production",
"pkg-prune": "cd pkg && rimraf **/*.d.ts **/*.js.map **/*.d.ts.map **/README.md **/readme.md **/Readme.md **/CHANGELOG.md **/changelog.md **/Changelog.md **/HISTORY.md **/history.md **/History.md",
"pkg-transpile": "cd pkg && babel node_modules --copy-files -d ../build/node_modules",
"pkg-transpile": "cd pkg && babel node_modules --extensions '.js,.jsx,.es6,.es,.ts' --copy-files -d ../build/node_modules",
"pkg-build": "cp pkg/package.json build/node_modules/package.json && pkg -t node12-macos-x64,node12-linux-x64,node12-win-x64 build/node_modules --out-path out",
"pkg-all": "yarn pkg-install && yarn pkg-prune && yarn pkg-transpile && yarn pkg-build",
"publish:master": "lerna publish --canary --force-publish --preid=alpha --exact --include-merged-tags --conventional-prerelease --yes",
Expand Down
8 changes: 5 additions & 3 deletions pkg/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
"@babel/plugin-proposal-numeric-separator"
],
"only": [
"**/amplify-category-analytics/**/*",
"**/amplify-category-interactions/**/*",
"**/amplify-category-predictions/**/*",
"**/amplify-category-storage/**/*",
"**/amplify-console-hosting/**/*",
"**/amplify-container-hosting/**/*",
"**/amplify-provider-awscloudformation/**/*",
"**/amplify-util-mock/**/*",
"**/amplify-category-analytics/**/*",
"**/amplify-category-storage/**/*",
"**/amplify-category-interactions/**/*"
"**/@octokit/openapi-types/**/*"
]
}
]
Expand Down

0 comments on commit 0681a07

Please sign in to comment.