Skip to content

Commit

Permalink
feat(umd modules): adds babel-transform-es2015-modules-umd for umd mo…
Browse files Browse the repository at this point in the history
…dule support (patternfly#1150)
  • Loading branch information
priley86 authored and dlabaj committed Jan 15, 2019
1 parent fcdc0e0 commit 7b4fde8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/patternfly-4/react-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
"react-dom": "^15.6.2 || ^16.4.0"
},
"scripts": {
"build": "yarn build:babel && yarn build:generate:dts && yarn build:tsd:copy",
"build": "yarn build:babel && yarn build:generate:dts && yarn build:tsd:copy && yarn build:umd",
"build:babel": "concurrently \"yarn build:babel:cjs\" \"yarn build:babel:esm\"",
"build:babel:cjs": "cross-env BABEL_ENV=production:cjs babel src --out-dir dist/js --extensions \".css,.js,jsx,.ts,.tsx\"",
"build:babel:esm": "cross-env BABEL_ENV=production:esm babel src --out-dir dist/esm --extensions \".css,.js,jsx,.ts,.tsx\"",
"build:umd": "cross-env BABEL_ENV=production:umd babel dist/esm --out-dir dist/umd --plugins transform-es2015-modules-umd --extensions \".css,.js,jsx,.ts,.tsx\"",
"build:generate:dts": "tsc -p src/tsconfig.dts.json",
"build:typecheck": "tsc",
"build:tsd:copy": "node ./scripts/copyTS.js",
Expand All @@ -68,6 +69,7 @@
"@types/react": "^16.7.13",
"babel-eslint": "^9.0.0",
"babel-jest": "^22.4.3",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-plugin-transform-imports": "^1.5.0",
"babel-plugin-typescript-to-proptypes": "^0.13.0",
"css": "^2.2.3",
Expand Down

0 comments on commit 7b4fde8

Please sign in to comment.