mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-20 17:08:15 +00:00
feat! remove esm package folder
This commit is contained in:
parent
785a220dff
commit
94a21bc75e
@ -1,7 +1,7 @@
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
|
||||
const START_PATH = path.join(process.cwd(), "dist/esm");
|
||||
const START_PATH = path.join(process.cwd(), "dist/");
|
||||
const IMPORT_REGEXP =
|
||||
/^((import|export) [^';]* from "(\.[^@";]*\/[^";]*)[^";]*)"/g;
|
||||
const JUST_ADD_AN_EXTENSION = '$1.js"';
|
||||
|
12
package.json
12
package.json
@ -2,12 +2,12 @@
|
||||
"name": "js-waku",
|
||||
"version": "0.24.0",
|
||||
"description": "TypeScript implementation of the Waku v2 protocol",
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"module": "./dist/esm/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"import": "./dist/esm/index.js"
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"type": "module",
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "husky install",
|
||||
"build": "rimraf ./dist; run-s build:**",
|
||||
"build:esm": "tsc && node build-scripts/fix-imports.js",
|
||||
"build:bundle": "rollup --config rollup.config.js -- dist/esm/index.js",
|
||||
"build:bundle": "rollup --config rollup.config.js -- dist/index.js",
|
||||
"build:bundle:min": "terser --ecma 11 --compress --mangle -o dist/bundle.min.js -- dist/bundle.js && gzip -9 -c dist/bundle.min.js > dist/bundle.min.js.gz",
|
||||
"size": "npm run build && size-limit",
|
||||
"fix": "run-s fix:*",
|
||||
@ -152,7 +152,7 @@
|
||||
"webpack-cli": "^4.10.0"
|
||||
},
|
||||
"files": [
|
||||
"dist/esm",
|
||||
"dist",
|
||||
"src/*.ts",
|
||||
"src/lib/**/*.ts",
|
||||
"src/proto/**/*.ts",
|
||||
|
@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"target": "es2020",
|
||||
"outDir": "dist/esm",
|
||||
"outDir": "dist/",
|
||||
"rootDir": "src",
|
||||
"moduleResolution": "node",
|
||||
"module": "es2020",
|
||||
|
Loading…
x
Reference in New Issue
Block a user