Skip to content

Commit 2bd1a78

Browse files
refactor(publish): Switch to tweak_sourcemap_paths
1 parent 1c00ffd commit 2bd1a78

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"clean": "shx rm -rf lib lib-esm _doc build release *.log",
77
"compile": "tsc && tsc -m es6 --outDir lib-esm && npm run fixdts",
88
"fixdts": "dts-downlevel 'lib/**/*.d.ts' 'lib-esm/**/*.d.ts'",
9-
"fixmaps": "modify_sourcemap_paths",
10-
"build": "npm run clean && npm run compile && npm run bundle && npm run fixmaps",
9+
"fixmaps:lib": "tweak_sourcemap_paths -a --include 'lib/**/*.js.map' 'lib-esm/**/*.js.map'",
10+
"fixmaps:bundle": "tweak_sourcemap_paths -a --include 'release/**/*.js.map'",
11+
"build": "npm run clean && npm run compile && npm run bundle && npm run fixmaps:lib && npm run fixmaps:bundle",
1112
"package": "npm run build",
1213
"bundle": "npm run bundle_router && npm run bundle_monolithic_router && npm run bundle_events && npm run bundle_resolve",
1314
"bundle_monolithic_router": "rollup -c --environment ROUTER,MONOLITHIC && rollup -c --environment ROUTER,MINIFY,MONOLITHIC",
@@ -116,4 +117,4 @@
116117
"webpack": "3.6.0",
117118
"yargs": "^4.2.0"
118119
}
119-
}
120+
}

0 commit comments

Comments
 (0)