diff --git a/packages/dockview-core/package.json b/packages/dockview-core/package.json index 6627b402b..6b3b5646d 100644 --- a/packages/dockview-core/package.json +++ b/packages/dockview-core/package.json @@ -14,12 +14,12 @@ }, "homepage": "https://github.com/mathuo/dockview", "scripts": { - "build:ci": "npm run build:cjs && npm run build:esm && npm run build:css", + "build:package": "npm run build:cjs && npm run build:esm && npm run build:css", "build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics", "build:css": "gulp sass", "build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics", - "build:modulefiles": "rollup -c", - "build": "npm run build:ci && npm run build:modulefiles", + "build:bundles": "rollup -c", + "build": "npm run build:package && npm run build:bundles", "clean": "rimraf dist/ .build/ .rollup.cache/", "prepublishOnly": "npm run rebuild && npm run test", "docs": "typedoc", @@ -65,4 +65,4 @@ "rollup-plugin-postcss": "^4.0.2", "typedoc": "^0.23.25" } -} +} \ No newline at end of file diff --git a/packages/dockview-core/rollup.config.js b/packages/dockview-core/rollup.config.js index cd38f7e4b..e48fc015d 100644 --- a/packages/dockview-core/rollup.config.js +++ b/packages/dockview-core/rollup.config.js @@ -46,6 +46,7 @@ function createBundle(format, options) { const output = { file, format, + sourcemap: true, globals: {}, banner: [ `/**`, @@ -57,13 +58,9 @@ function createBundle(format, options) { ].join('\n'), }; - const plugins = [ typescript({ tsconfig: 'tsconfig.esm.json', - compilerOptions: { - declaration: false, - }, }), ]; diff --git a/packages/dockview/package.json b/packages/dockview/package.json index 86c778d43..e19159e8e 100644 --- a/packages/dockview/package.json +++ b/packages/dockview/package.json @@ -14,12 +14,12 @@ }, "homepage": "https://github.com/mathuo/dockview", "scripts": { - "build:ci": "npm run build:cjs && npm run build:esm && npm run build:css", + "build:package": "npm run build:cjs && npm run build:esm && npm run build:css", "build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics", "build:css": "gulp sass", "build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics", - "build:modulefiles": "rollup -c", - "build": "npm run build:ci && npm run build:modulefiles", + "build:bundles": "rollup -c", + "build": "npm run build:package && npm run build:bundles", "clean": "rimraf dist/ .build/ .rollup.cache/", "docs": "typedoc", "prepublishOnly": "npm run rebuild && npm run test", @@ -73,4 +73,4 @@ "rollup": "^3.15.0", "rollup-plugin-postcss": "^4.0.2" } -} +} \ No newline at end of file diff --git a/packages/dockview/rollup.config.js b/packages/dockview/rollup.config.js index 7554e9fb1..8d1608f5f 100644 --- a/packages/dockview/rollup.config.js +++ b/packages/dockview/rollup.config.js @@ -47,6 +47,7 @@ function createBundle(format, options) { const output = { file, format, + sourcemap: true, globals: {}, banner: [ `/**`, @@ -64,8 +65,10 @@ function createBundle(format, options) { }), typescript({ tsconfig: 'tsconfig.esm.json', + sourcemap: true, compilerOptions: { declaration: false, + sourcemap: true, }, }), ];