From d0191984399b784e2928b8fb4c58257bfa857655 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Fri, 20 Oct 2023 22:48:01 +0200 Subject: [PATCH] fix(packaging): Don't advertise non-existent ESM entrypoints (#2022) Fixes #1877. Don't advertise module entrypoints on packages that are implemented in TypeScript as at the moment our webpack configuration does not generate any file called src/index.js. --- plugins/block-dynamic-connection/package.json | 1 - plugins/block-shareable-procedures/package.json | 1 - plugins/content-highlight/package.json | 1 - plugins/field-angle/package.json | 1 - plugins/field-colour-hsv-sliders/package.json | 1 - plugins/field-colour/package.json | 1 - plugins/field-date/package.json | 1 - plugins/field-dependent-dropdown/package.json | 1 - plugins/field-grid-dropdown/package.json | 1 - plugins/field-multilineinput/package.json | 1 - plugins/field-slider/package.json | 1 - plugins/renderer-inline-row-separators/package.json | 1 - plugins/shadow-block-converter/package.json | 1 - plugins/toolbox-search/package.json | 1 - plugins/workspace-backpack/package.json | 1 - plugins/workspace-minimap/package.json | 1 - plugins/workspace-search/package.json | 1 - plugins/zoom-to-fit/package.json | 1 - 18 files changed, 18 deletions(-) diff --git a/plugins/block-dynamic-connection/package.json b/plugins/block-dynamic-connection/package.json index 57970add71..bb92d294c4 100644 --- a/plugins/block-dynamic-connection/package.json +++ b/plugins/block-dynamic-connection/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "", "keywords": [ diff --git a/plugins/block-shareable-procedures/package.json b/plugins/block-shareable-procedures/package.json index 077cdd6578..3cde3bf344 100644 --- a/plugins/block-shareable-procedures/package.json +++ b/plugins/block-shareable-procedures/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/content-highlight/package.json b/plugins/content-highlight/package.json index fefd6f2bf1..72435c115c 100644 --- a/plugins/content-highlight/package.json +++ b/plugins/content-highlight/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-angle/package.json b/plugins/field-angle/package.json index 3cd59e5367..63591cfb81 100644 --- a/plugins/field-angle/package.json +++ b/plugins/field-angle/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-colour-hsv-sliders/package.json b/plugins/field-colour-hsv-sliders/package.json index dfe48ce313..1d10374c57 100644 --- a/plugins/field-colour-hsv-sliders/package.json +++ b/plugins/field-colour-hsv-sliders/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-colour/package.json b/plugins/field-colour/package.json index 398eeb8682..bba17dc7f9 100644 --- a/plugins/field-colour/package.json +++ b/plugins/field-colour/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-date/package.json b/plugins/field-date/package.json index 029f041ca1..5597b36c31 100644 --- a/plugins/field-date/package.json +++ b/plugins/field-date/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-dependent-dropdown/package.json b/plugins/field-dependent-dropdown/package.json index 02264001db..e6a4a3d106 100644 --- a/plugins/field-dependent-dropdown/package.json +++ b/plugins/field-dependent-dropdown/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-grid-dropdown/package.json b/plugins/field-grid-dropdown/package.json index 6b3402a580..21cf5bed11 100644 --- a/plugins/field-grid-dropdown/package.json +++ b/plugins/field-grid-dropdown/package.json @@ -11,7 +11,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-multilineinput/package.json b/plugins/field-multilineinput/package.json index f4b58152d4..a091d25aa4 100644 --- a/plugins/field-multilineinput/package.json +++ b/plugins/field-multilineinput/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/field-slider/package.json b/plugins/field-slider/package.json index f4d92bdfbe..9ab8ee9770 100644 --- a/plugins/field-slider/package.json +++ b/plugins/field-slider/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/renderer-inline-row-separators/package.json b/plugins/renderer-inline-row-separators/package.json index 9230c2622a..98434e3fba 100644 --- a/plugins/renderer-inline-row-separators/package.json +++ b/plugins/renderer-inline-row-separators/package.json @@ -13,7 +13,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/shadow-block-converter/package.json b/plugins/shadow-block-converter/package.json index 03623b4e61..a66c286221 100644 --- a/plugins/shadow-block-converter/package.json +++ b/plugins/shadow-block-converter/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/toolbox-search/package.json b/plugins/toolbox-search/package.json index e837953e5f..44fba666a0 100644 --- a/plugins/toolbox-search/package.json +++ b/plugins/toolbox-search/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "", "keywords": [ diff --git a/plugins/workspace-backpack/package.json b/plugins/workspace-backpack/package.json index 6cb19639b3..cb85dcfb02 100644 --- a/plugins/workspace-backpack/package.json +++ b/plugins/workspace-backpack/package.json @@ -13,7 +13,6 @@ }, "main": "./dist/index.js", "types": "./src/index.d.ts", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/workspace-minimap/package.json b/plugins/workspace-minimap/package.json index a76e8ccb37..be2434e470 100644 --- a/plugins/workspace-minimap/package.json +++ b/plugins/workspace-minimap/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/workspace-search/package.json b/plugins/workspace-search/package.json index 3f31a384ed..f24435b599 100644 --- a/plugins/workspace-search/package.json +++ b/plugins/workspace-search/package.json @@ -12,7 +12,6 @@ "test": "blockly-scripts test" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [ diff --git a/plugins/zoom-to-fit/package.json b/plugins/zoom-to-fit/package.json index 06531124a2..409df68605 100644 --- a/plugins/zoom-to-fit/package.json +++ b/plugins/zoom-to-fit/package.json @@ -11,7 +11,6 @@ "start": "blockly-scripts start" }, "main": "./dist/index.js", - "module": "./src/index.js", "unpkg": "./dist/index.js", "author": "Blockly Team", "keywords": [