Skip to content

Commit 1bd9385

Browse files
chore: enable source map
1 parent 136c351 commit 1bd9385

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"access": "public"
2121
},
2222
"scripts": {
23-
"build": "npm run clean && npm run build:cjs && cp dist/cjs/index.js dist/index.js && npm run build:esm && npm run build:types",
23+
"build": "npm run clean && npm run build:cjs && cp dist/cjs/index.js dist/index.js && cp dist/cjs/index.js.map dist/index.js.map && npm run build:esm && npm run build:types",
2424
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
25-
"build:esm": "tsc --module esnext --outDir dist/esm && cp dist/esm/index.js dist/index.esm.js && cp -r dist/esm/types dist/ && cp -r dist/esm/lib dist/ && cp -r dist/esm/client dist/",
26-
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist && cp dist/cjs/index.d.ts dist/index.d.ts",
25+
"build:esm": "tsc --module esnext --outDir dist/esm && cp dist/esm/index.js dist/index.esm.js && cp dist/esm/index.js.map dist/index.esm.js.map && cp -r dist/esm/types dist/ && cp -r dist/esm/lib dist/ && cp -r dist/esm/client dist/",
26+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist && cp dist/cjs/index.d.ts dist/index.d.ts && cp dist/cjs/index.d.ts.map dist/index.d.ts.map",
2727
"dev": "tsc --watch",
2828
"test": "vitest",
2929
"lint": "eslint src --ext .ts",

0 commit comments

Comments
 (0)