Skip to content

Commit

Permalink
chore: fix build config
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Oct 30, 2018
1 parent 20ed2ba commit 2a9b7dc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "@poool/junipero",
"version": "0.0.1-alpha",
"description": "Poool internal components library",
"main": "dist/junipero.min.js",
"main": "dist/junipero.cjs.js",
"module": "dist/junipero.esm.js",
"browser": "dist/junipero.umd.js",
"repository": "https://github.com/p3ol/junipero.git",
"author": "Ugo Stephant <ugo@poool.fr>",
"license": "MIT",
Expand Down Expand Up @@ -56,6 +58,8 @@
"webpack-merge": "^4.1.4"
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime-corejs2": "^7.1.2",
"prop-types": "^15.6.2"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const defaultConfig = {
postcss({
extensions: ['.styl'],
minimize: true,
inject: false,
plugins: [
autoprefixer,
],
Expand Down
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
library: 'junipero',
libraryTarget: 'umd2',
libraryTarget: 'umd',
sourceMapFilename: '[name].js.map',
},
};
1 change: 0 additions & 1 deletion webpack.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module.exports = merge(common, {
],
externals: {
react: 'React',
'prop-types': 'PropTypes',
},
parallelism: 4,
devtool: 'source-map',
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,14 @@
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
"@babel/plugin-transform-react-jsx-source" "^7.0.0"

"@babel/runtime-corejs2@^7.1.2":
version "7.1.2"
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.1.2.tgz#8695811a3fd8091f54f274b9320334e5e8c62200"
integrity sha512-drxaPByExlcRDKW4ZLubUO4ZkI8/8ax9k9wve1aEthdLKFzjB7XRkOQ0xoTIWGxqdDnWDElkjYq77bt7yrcYJQ==
dependencies:
core-js "^2.5.7"
regenerator-runtime "^0.12.0"

"@babel/runtime@^7.1.2":
version "7.1.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.1.2.tgz#81c89935f4647706fc54541145e6b4ecfef4b8e3"
Expand Down Expand Up @@ -1841,6 +1849,11 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=

core-js@^2.5.7:
version "2.5.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e"
integrity sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==

core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
Expand Down

0 comments on commit 2a9b7dc

Please sign in to comment.