From 5d124128d9a224395a06e666c732069152375fbd Mon Sep 17 00:00:00 2001 From: Jens Meisner Date: Fri, 22 Nov 2024 09:08:13 +0100 Subject: [PATCH] omit sources and source-maps in published package --- package.json | 2 +- packages/ckeditor5-bbcode/package.json | 2 +- packages/ckeditor5-common/package.json | 2 +- packages/ckeditor5-core-common/package.json | 2 +- packages/ckeditor5-coremedia-blocklist/package.json | 2 +- packages/ckeditor5-coremedia-content-clipboard/package.json | 2 +- packages/ckeditor5-coremedia-content/package.json | 2 +- packages/ckeditor5-coremedia-differencing/package.json | 2 +- packages/ckeditor5-coremedia-images/package.json | 2 +- packages/ckeditor5-coremedia-link/package.json | 2 +- packages/ckeditor5-coremedia-richtext-support/package.json | 2 +- packages/ckeditor5-coremedia-richtext/package.json | 2 +- packages/ckeditor5-coremedia-studio-essentials/package.json | 2 +- .../ckeditor5-coremedia-studio-integration-mock/package.json | 2 +- packages/ckeditor5-coremedia-studio-integration/package.json | 2 +- packages/ckeditor5-data-facade/package.json | 2 +- packages/ckeditor5-dataprocessor-support/package.json | 2 +- packages/ckeditor5-dialog-visibility/package.json | 2 +- packages/ckeditor5-dom-converter/package.json | 2 +- packages/ckeditor5-dom-support/package.json | 2 +- packages/ckeditor5-font-mapper/package.json | 2 +- packages/ckeditor5-link-common/package.json | 2 +- packages/ckeditor5-logging/package.json | 2 +- tsconfig.json | 3 +-- 24 files changed, 24 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 283230376..7d51be2c6 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "start": "pnpm --recursive --filter \"@coremedia/ckeditor5-app\" start", "update:latest": "pnpm update --interactive --latest --recursive '!esbuild-loader'", "update:latest:third-party": "pnpm update --interactive --latest --recursive '!esbuild-loader' '!@ckeditor/*'", - "update:latest:ckeditor5": "pnpm update --interactive --latest --recursive '@ckeditor/*' '!@ckeditor/ckeditor5-dev-*'", + "update:latest:ckeditor5": "pnpm update --interactive --latest --recursive 'ckeditor5'", "update:latest:ckeditor5-dev": "pnpm update --interactive --latest --recursive '@ckeditor/ckeditor5-dev-*'", "script:version": "node ./scripts/version.mjs", "script:validate-peers": "node ./scripts/validate-peers.mjs" diff --git a/packages/ckeditor5-bbcode/package.json b/packages/ckeditor5-bbcode/package.json index b7cea0e7d..f9e766030 100644 --- a/packages/ckeditor5-bbcode/package.json +++ b/packages/ckeditor5-bbcode/package.json @@ -18,7 +18,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-common/package.json b/packages/ckeditor5-common/package.json index acdd2e670..7786587b2 100644 --- a/packages/ckeditor5-common/package.json +++ b/packages/ckeditor5-common/package.json @@ -55,7 +55,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest --passWithNoTests", "jest:coverage": "jest --collect-coverage --passWithNoTests", "npm-check-updates": "npm-check-updates --upgrade" diff --git a/packages/ckeditor5-core-common/package.json b/packages/ckeditor5-core-common/package.json index 4656e974e..ccd7b78f4 100644 --- a/packages/ckeditor5-core-common/package.json +++ b/packages/ckeditor5-core-common/package.json @@ -57,7 +57,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest --passWithNoTests", "jest:coverage": "jest --collect-coverage --passWithNoTests", "npm-check-updates": "npm-check-updates --upgrade" diff --git a/packages/ckeditor5-coremedia-blocklist/package.json b/packages/ckeditor5-coremedia-blocklist/package.json index db6c320dd..3bd3e51ef 100644 --- a/packages/ckeditor5-coremedia-blocklist/package.json +++ b/packages/ckeditor5-coremedia-blocklist/package.json @@ -18,7 +18,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-content-clipboard/package.json b/packages/ckeditor5-coremedia-content-clipboard/package.json index d5026b960..4f1a8aa68 100644 --- a/packages/ckeditor5-coremedia-content-clipboard/package.json +++ b/packages/ckeditor5-coremedia-content-clipboard/package.json @@ -17,7 +17,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-content/package.json b/packages/ckeditor5-coremedia-content/package.json index 32de9eb86..d29379dbb 100644 --- a/packages/ckeditor5-coremedia-content/package.json +++ b/packages/ckeditor5-coremedia-content/package.json @@ -58,7 +58,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest --passWithNoTests", "jest:coverage": "jest --collect-coverage --passWithNoTests", "npm-check-updates": "npm-check-updates --upgrade" diff --git a/packages/ckeditor5-coremedia-differencing/package.json b/packages/ckeditor5-coremedia-differencing/package.json index 6074a3786..68a4ba9fb 100644 --- a/packages/ckeditor5-coremedia-differencing/package.json +++ b/packages/ckeditor5-coremedia-differencing/package.json @@ -65,7 +65,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest --passWithNoTests", "jest:coverage": "jest --collect-coverage", "npm-check-updates": "npm-check-updates --upgrade" diff --git a/packages/ckeditor5-coremedia-images/package.json b/packages/ckeditor5-coremedia-images/package.json index 10b3efc42..7b02c7d34 100644 --- a/packages/ckeditor5-coremedia-images/package.json +++ b/packages/ckeditor5-coremedia-images/package.json @@ -17,7 +17,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-link/package.json b/packages/ckeditor5-coremedia-link/package.json index 379d811f1..85cd637dd 100644 --- a/packages/ckeditor5-coremedia-link/package.json +++ b/packages/ckeditor5-coremedia-link/package.json @@ -17,7 +17,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-richtext-support/package.json b/packages/ckeditor5-coremedia-richtext-support/package.json index aa493a295..563eb840b 100644 --- a/packages/ckeditor5-coremedia-richtext-support/package.json +++ b/packages/ckeditor5-coremedia-richtext-support/package.json @@ -18,7 +18,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-richtext/package.json b/packages/ckeditor5-coremedia-richtext/package.json index 8df4e2e9b..de379e796 100644 --- a/packages/ckeditor5-coremedia-richtext/package.json +++ b/packages/ckeditor5-coremedia-richtext/package.json @@ -18,7 +18,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-studio-essentials/package.json b/packages/ckeditor5-coremedia-studio-essentials/package.json index 7a08db52e..ca8cc43a3 100644 --- a/packages/ckeditor5-coremedia-studio-essentials/package.json +++ b/packages/ckeditor5-coremedia-studio-essentials/package.json @@ -19,7 +19,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-studio-integration-mock/package.json b/packages/ckeditor5-coremedia-studio-integration-mock/package.json index 752cb0c3b..336902d75 100644 --- a/packages/ckeditor5-coremedia-studio-integration-mock/package.json +++ b/packages/ckeditor5-coremedia-studio-integration-mock/package.json @@ -40,7 +40,7 @@ ], "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-coremedia-studio-integration/package.json b/packages/ckeditor5-coremedia-studio-integration/package.json index e3577416c..d1751f1b3 100644 --- a/packages/ckeditor5-coremedia-studio-integration/package.json +++ b/packages/ckeditor5-coremedia-studio-integration/package.json @@ -37,7 +37,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-data-facade/package.json b/packages/ckeditor5-data-facade/package.json index f9b724d61..5759a1549 100644 --- a/packages/ckeditor5-data-facade/package.json +++ b/packages/ckeditor5-data-facade/package.json @@ -17,7 +17,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-dataprocessor-support/package.json b/packages/ckeditor5-dataprocessor-support/package.json index 12aa6997e..fb8635298 100644 --- a/packages/ckeditor5-dataprocessor-support/package.json +++ b/packages/ckeditor5-dataprocessor-support/package.json @@ -36,7 +36,7 @@ ], "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-dialog-visibility/package.json b/packages/ckeditor5-dialog-visibility/package.json index d77c53ad1..effc13787 100644 --- a/packages/ckeditor5-dialog-visibility/package.json +++ b/packages/ckeditor5-dialog-visibility/package.json @@ -18,7 +18,7 @@ "license": "Apache-2.0", "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-dom-converter/package.json b/packages/ckeditor5-dom-converter/package.json index 1f8d488a2..001d2d658 100644 --- a/packages/ckeditor5-dom-converter/package.json +++ b/packages/ckeditor5-dom-converter/package.json @@ -56,7 +56,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest", "jest:coverage": "jest --collect-coverage" } diff --git a/packages/ckeditor5-dom-support/package.json b/packages/ckeditor5-dom-support/package.json index 55a33b822..c2358bc44 100644 --- a/packages/ckeditor5-dom-support/package.json +++ b/packages/ckeditor5-dom-support/package.json @@ -50,7 +50,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest --passWithNoTests", "jest:coverage": "jest --collect-coverage" } diff --git a/packages/ckeditor5-font-mapper/package.json b/packages/ckeditor5-font-mapper/package.json index 00c2b2502..005c19f6c 100644 --- a/packages/ckeditor5-font-mapper/package.json +++ b/packages/ckeditor5-font-mapper/package.json @@ -56,7 +56,7 @@ }, "scripts": { "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "clean": "pnpm clean:src && pnpm clean:dist", "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", diff --git a/packages/ckeditor5-link-common/package.json b/packages/ckeditor5-link-common/package.json index 016364c21..a5a3f2af3 100644 --- a/packages/ckeditor5-link-common/package.json +++ b/packages/ckeditor5-link-common/package.json @@ -58,7 +58,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest --passWithNoTests", "jest:coverage": "jest --collect-coverage --passWithNoTests", "npm-check-updates": "npm-check-updates --upgrade" diff --git a/packages/ckeditor5-logging/package.json b/packages/ckeditor5-logging/package.json index e6cde2314..4b178417f 100644 --- a/packages/ckeditor5-logging/package.json +++ b/packages/ckeditor5-logging/package.json @@ -48,7 +48,7 @@ "clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"", "clean:dist": "rimraf ./dist", "build": "tsc --project ./tsconfig.release.json", - "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src", + "postbuild": "node prepare-package.cjs && copyfiles ./README.md dist", "jest": "jest", "jest:coverage": "jest --collect-coverage", "npm-check-updates": "npm-check-updates --upgrade" diff --git a/tsconfig.json b/tsconfig.json index be7b01b40..e656e78c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "composite": true, "declaration": true, "emitDeclarationOnly": false, - "declarationMap": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "incremental": true, @@ -23,7 +22,7 @@ "pretty": false, "removeComments": true, "skipLibCheck": true, - "sourceMap": true, + "sourceMap": false, "strict": true, "strictNullChecks": true, "target": "ES2020",