Skip to content

Commit 740e0f1

Browse files
committed
fix: update build command and dependencies
This commit updates the presets and plugins used in the build-helper run script to use equivalent v7-packages from the @babel namespace.
1 parent 10621ef commit 740e0f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
"@babel/core": "^7.0.0",
2525
"@babel/helper-plugin-test-runner": "^7.0.0",
2626
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
27+
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
2728
"@babel/preset-env": "^7.0.0",
2829
"@babel/register": "^7.0.0",
2930
"babel-core": "^7.0.0-bridge.0",
31+
"babel-jest": "^23.6.0",
3032
"babel-plugin-tester": "^5.5.1",
3133
"eslint": "^5.5.0",
3234
"eslint-config-canonical": "^12.0.0",
@@ -66,7 +68,7 @@
6668
},
6769
"scripts": {
6870
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --source-maps --copy-files && npm run build-helper",
69-
"build-helper": "mkdir -p ./dist/browser && NODE_ENV=production babel ./src/getClassName.js --out-file ./dist/browser/getClassName.js --source-maps --no-babelrc --plugins transform-es2015-modules-commonjs,transform-flow-strip-types --presets es2015",
71+
"build-helper": "mkdir -p ./dist/browser && NODE_ENV=production babel ./src/getClassName.js --out-file ./dist/browser/getClassName.js --source-maps --no-babelrc --plugins @babel/plugin-transform-modules-commonjs,@babel/plugin-transform-flow-strip-types --presets @babel/preset-env",
7072
"lint": "eslint ./src && flow",
7173
"test": "jest"
7274
},

0 commit comments

Comments
 (0)