764: build before publishing + build optimisation r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
This commit is contained in:
status-bors-ng[bot] 2022-05-27 04:03:03 +00:00 committed by GitHub
commit 47bc8c8d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,8 @@
], ],
"scripts": { "scripts": {
"prepare": "husky install", "prepare": "husky install",
"build": "run-s build:**", "build": "rimraf ./build; run-p build:**",
"build:main": "tsc -p tsconfig.json", "build:main": "tsc -p tsconfig.json",
"build:dev": "tsc -p tsconfig.dev.json",
"build:esm": "tsc --module es2015 --target es2015 --outDir build/esm", "build:esm": "tsc --module es2015 --target es2015 --outDir build/esm",
"build:umd": "webpack --config webpack.config.js", "build:umd": "webpack --config webpack.config.js",
"build:umd:min": "webpack --config webpack.config.min.js", "build:umd:min": "webpack --config webpack.config.min.js",
@ -59,6 +58,7 @@
"doc:html": "typedoc", "doc:html": "typedoc",
"doc:cname": "echo 'js-waku.wakuconnect.dev' > build/docs/CNAME", "doc:cname": "echo 'js-waku.wakuconnect.dev' > build/docs/CNAME",
"doc:examples": "mkdir -p build/docs/examples", "doc:examples": "mkdir -p build/docs/examples",
"prepublish": "npm run build",
"deploy": "node ci/deploy.js", "deploy": "node ci/deploy.js",
"reset-hard": "git clean -dfx && git reset --hard && npm i && npm run build && for d in examples/*/; do (cd $d; npm i); done" "reset-hard": "git clean -dfx && git reset --hard && npm i && npm run build && for d in examples/*/; do (cd $d; npm i); done"
}, },