aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/package.json')
-rw-r--r--packages/instant/package.json14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/instant/package.json b/packages/instant/package.json
index 7f1530fa8..d33dfb7c3 100644
--- a/packages/instant/package.json
+++ b/packages/instant/package.json
@@ -8,19 +8,26 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
+ "build": "yarn build:all",
+ "build:all": "run-p build:umd:prod build:commonjs",
+ "build:umd:prod": "webpack --mode production",
+ "build:commonjs": "tsc -b",
"watch_without_deps": "tsc -w",
+ "dev": "webpack-dev-server --mode development",
"lint": "tslint --project .",
"test": "jest",
"test:coverage": "jest --coverage",
"rebuild_and_test": "run-s clean build test",
"test:circleci": "yarn test:coverage",
"clean": "shx rm -rf lib coverage scripts",
- "build": "webpack --mode production && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
"config": {
"postpublish": {
- "assets": []
+ "assets": [
+ "packages/instant/public/index.js",
+ "packages/instant/public/index.min.js"
+ ]
}
},
"repository": {
@@ -66,7 +73,8 @@
"typedoc": "0.12.0",
"typescript": "3.0.1",
"webpack": "^4.20.2",
- "webpack-cli": "^3.1.1"
+ "webpack-cli": "^3.1.1",
+ "webpack-dev-server": "^3.1.9"
},
"publishConfig": {
"access": "private"