mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-11 21:15:01 +00:00
feat!: remove cjs build
This commit is contained in:
parent
4054f6a751
commit
d2703d081e
@ -3,13 +3,11 @@
|
|||||||
"version": "0.24.0",
|
"version": "0.24.0",
|
||||||
"description": "TypeScript implementation of the Waku v2 protocol",
|
"description": "TypeScript implementation of the Waku v2 protocol",
|
||||||
"types": "./dist/esm/index.d.ts",
|
"types": "./dist/esm/index.d.ts",
|
||||||
"main": "./dist/cjs/index.cjs",
|
|
||||||
"module": "./dist/esm/index.js",
|
"module": "./dist/esm/index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/esm/index.d.ts",
|
"types": "./dist/esm/index.d.ts",
|
||||||
"import": "./dist/esm/index.js",
|
"import": "./dist/esm/index.js"
|
||||||
"require": "./dist/cjs/index.cjs"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -27,7 +25,6 @@
|
|||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"build": "rimraf ./dist; run-s build:**",
|
"build": "rimraf ./dist; run-s build:**",
|
||||||
"build:esm": "tsc && node build-scripts/fix-imports.js",
|
"build:esm": "tsc && node build-scripts/fix-imports.js",
|
||||||
"build:cjs": "rollup --config rollup.cjs.config.js -- dist/esm/index.js",
|
|
||||||
"build:umd": "webpack --config webpack.umd.config.cjs",
|
"build:umd": "webpack --config webpack.umd.config.cjs",
|
||||||
"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",
|
"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",
|
||||||
"size": "npm run build && size-limit",
|
"size": "npm run build && size-limit",
|
||||||
@ -157,7 +154,6 @@
|
|||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/esm",
|
"dist/esm",
|
||||||
"dist/cjs",
|
|
||||||
"dist/umd",
|
"dist/umd",
|
||||||
"src/*.ts",
|
"src/*.ts",
|
||||||
"src/lib/**/*.ts",
|
"src/lib/**/*.ts",
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
||||||
import commonjs from "@rollup/plugin-commonjs";
|
|
||||||
import json from "@rollup/plugin-json";
|
|
||||||
import nodePolyfills from "rollup-plugin-polyfill-node";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
output: {
|
|
||||||
file: "dist/cjs/index.cjs",
|
|
||||||
format: "cjs",
|
|
||||||
name: "waku",
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
commonjs(),
|
|
||||||
json(),
|
|
||||||
nodePolyfills(),
|
|
||||||
nodeResolve({
|
|
||||||
browser: true,
|
|
||||||
preferBuiltins: false,
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user