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

Publish ES build (Closes #156) #157

Merged
merged 1 commit into from
Dec 11, 2020
Merged
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
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
"serve": "parcel serve src/loader-globals.js --port 3001 --out-file dist/array.js",
"build": "parcel build src/loader-globals.js --out-file dist/array.js --no-source-maps",
"build-module": "rollup -i src/loader-module.js -f cjs -o dist/module.js -c rollup.config.js",
"build-es-module": "rollup -i src/loader-module.js -f es -o dist/es.js -c rollup.config.js",
"build-react": "tsc -p react",
"process-types": "mkdir -p dist; eslint src --ext .ts -c .eslintrc.ts.js --fix && tsc && cp -f src/*.d.ts dist/",
"lint": "eslint src --fix",
"prepublishOnly": "yarn lint && yarn test && yarn build && yarn build-module && yarn build-react && yarn process-types",
"prepublishOnly": "yarn lint && yarn test && yarn build && yarn build-module && yarn build-es-module && yarn build-react && yarn process-types",
"test": "jest src",
"test-watch": "jest --watch",
"cypress": "cypress open"
},
"main": "dist/module.js",
"module": "dist/es.js",
"files": [
"dist/*",
"react/dist/*"
Expand Down