Skip to content

Commit be3d374

Browse files
committed
remove remove-sourcemap-refs script
1 parent 8b7050e commit be3d374

File tree

5 files changed

+19
-45
lines changed

5 files changed

+19
-45
lines changed

build/remove-sourcemap-refs.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
"typescript": "^4.4.3"
2626
},
2727
"scripts": {
28-
"prepublishOnly": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
28+
"prepublishOnly": "npm run clean && npm run test && npm run clean && npm run compile-umd-prod && npm run compile-esm-prod",
2929
"postpublish": "node ./build/post-publish.js",
3030
"compile": "tsc -p ./src && npm run lint",
31+
"compile-umd": "tsc -p ./src/tsconfig.json",
32+
"compile-umd-prod": "tsc -p ./src/tsconfig.umd.prod.json",
3133
"compile-esm": "tsc -p ./src/tsconfig.esm.json",
32-
"remove-sourcemap-refs": "node ./build/remove-sourcemap-refs.js",
34+
"compile-esm-prod": "tsc -p ./src/tsconfig.esm.prod.json",
3335
"clean": "rimraf lib",
3436
"watch": "tsc -w -p ./src",
3537
"test": "npm run compile && mocha ./lib/umd/test",

src/tsconfig.esm.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
{
2+
"extends": "./tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES5",
44
"module": "es6",
5-
"moduleResolution": "node",
6-
"sourceMap": true,
7-
"declaration": true,
8-
"stripInternal": true,
9-
"outDir": "../lib/esm",
10-
"strict": true,
11-
"lib": [
12-
"es5",
13-
"es2015.promise"
14-
]
5+
"target": "es2015",
6+
"outDir": "../lib/esm"
157
}
168
}

src/tsconfig.esm.prod.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.esm.json",
3+
"compilerOptions": {
4+
"sourceMap": false
5+
}
6+
}

src/tsconfig.umd.prod.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": false
5+
}
6+
}

0 commit comments

Comments
 (0)