Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed 'build-cjs' output dir to 'cjs' folder #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
.DS_Store
npm-debug.log
.npmrc
node_modules
umd
cjs
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
"license": "MIT",
"scripts": {
"build": "node ./scripts/build.js",
"build-cjs": "babel ./modules -d . --ignore '__tests__'",
"build-cjs": "babel modules -d ./cjs --ignore '__tests__'",
"build-umd": "webpack modules/index.js umd/react-history.js",
"build-min": "webpack -p modules/index.js umd/react-history.min.js",
"prepublish": "node ./scripts/build.js",
"release": "node ./scripts/release.js",
"test": "npm run lint && karma start",
"lint": "eslint modules"
},
"files": ["umd", "cjs"],
"main": "cjs/index.js",
"dependencies": {
"history": "^4.5.0",
"prop-types": "^15.6.0"
Expand Down