mirror of https://github.com/status-im/js-waku.git
Re-introduce cjs build
This commit is contained in:
parent
53a3f7fcbf
commit
ebbb0a2713
|
@ -6,7 +6,8 @@
|
|||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"import": "./dist/esm/index.js"
|
||||
"import": "./dist/esm/index.js",
|
||||
"require": "./dist/cjs/index.js"
|
||||
}
|
||||
},
|
||||
"type": "module",
|
||||
|
@ -23,6 +24,7 @@
|
|||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"build": "rimraf ./dist; run-s build:**",
|
||||
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
||||
"build:esm": "tsc && node build-scripts/fix-imports.js",
|
||||
"build:umd": "rollup --config rollup.config.js -- dist/esm/index.js",
|
||||
"build:umd:min": "terser --ecma 6 --compress --mangle -o dist/umd/index.min.js -- dist/umd/index.js && gzip -9 -c dist/umd/index.min.js > dist/umd/index.min.js.gz",
|
||||
|
@ -148,6 +150,7 @@
|
|||
},
|
||||
"files": [
|
||||
"dist/esm",
|
||||
"dist/cjs",
|
||||
"dist/umd",
|
||||
"src/*.ts",
|
||||
"src/lib/**/*.ts",
|
||||
|
|
Loading…
Reference in New Issue