Skip to content

Commit

Permalink
package.json: add watch/link dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo authored and slint committed Aug 24, 2020
1 parent e1a5446 commit 8802f95
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
24 changes: 15 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"scripts": {
"start": "react-scripts start",
"build": "rimraf dist && NODE_ENV=production rollup -c",
"edit-linked-package": "json -I -f ./dist/package.json -e 'this.module=\"esm/index.js\", this.main=\"cjs/index.js\"' ",
"prelink-dist": "cp package.json ./dist && npm run edit-linked-package",
"link-dist": "cd dist && npm link",
"postlink-dist": "cd dist && rm -rf node_modules",
"unlink-dist": "cd dist && npm unlink && rm package*",
"watch": "NODE_ENV=development rollup --watch -c",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src/**/*.js"
Expand Down Expand Up @@ -42,6 +48,7 @@
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.4.3",
"expect": "^26.0.1",
"json": "^9.0.6",
"lodash": "^4.17.15",
"node-sass": "^4.12.0",
"qs": "^6.8.0",
Expand Down

0 comments on commit 8802f95

Please sign in to comment.