diff --git a/plugins/block-dynamic-connection/tsconfig.json b/plugins/block-dynamic-connection/tsconfig.json index e92371042f..50bb2e4ede 100644 --- a/plugins/block-dynamic-connection/tsconfig.json +++ b/plugins/block-dynamic-connection/tsconfig.json @@ -8,6 +8,10 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. diff --git a/plugins/block-shareable-procedures/tsconfig.json b/plugins/block-shareable-procedures/tsconfig.json index 6e26e186f4..3ab282a1dc 100644 --- a/plugins/block-shareable-procedures/tsconfig.json +++ b/plugins/block-shareable-procedures/tsconfig.json @@ -1,11 +1,16 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es6", "allowJs": true, "sourceMap": true, "lib": ["es6", "dom"], - "moduleResolution": "node" + "moduleResolution": "node", + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/content-highlight/tsconfig.json b/plugins/content-highlight/tsconfig.json index 343d69216d..a727838413 100644 --- a/plugins/content-highlight/tsconfig.json +++ b/plugins/content-highlight/tsconfig.json @@ -1,11 +1,16 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es6", "allowJs": true, "sourceMap": true, "moduleResolution": "nodenext", - "lib": ["es2021", "dom"] + "lib": ["es2021", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/dev-create/templates/typescript-block/template/tsconfig.json b/plugins/dev-create/templates/typescript-block/template/tsconfig.json index 4bd61cf170..4aded0942b 100644 --- a/plugins/dev-create/templates/typescript-block/template/tsconfig.json +++ b/plugins/dev-create/templates/typescript-block/template/tsconfig.json @@ -1,10 +1,15 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es5", "allowJs": true, "sourceMap": true, - "lib": ["es6", "dom"] + "lib": ["es6", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/dev-create/templates/typescript-field/template/tsconfig.json b/plugins/dev-create/templates/typescript-field/template/tsconfig.json index 4bd61cf170..4aded0942b 100644 --- a/plugins/dev-create/templates/typescript-field/template/tsconfig.json +++ b/plugins/dev-create/templates/typescript-field/template/tsconfig.json @@ -1,10 +1,15 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es5", "allowJs": true, "sourceMap": true, - "lib": ["es6", "dom"] + "lib": ["es6", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/dev-create/templates/typescript-plugin/template/tsconfig.json b/plugins/dev-create/templates/typescript-plugin/template/tsconfig.json index 4bd61cf170..4aded0942b 100644 --- a/plugins/dev-create/templates/typescript-plugin/template/tsconfig.json +++ b/plugins/dev-create/templates/typescript-plugin/template/tsconfig.json @@ -1,10 +1,15 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es5", "allowJs": true, "sourceMap": true, - "lib": ["es6", "dom"] + "lib": ["es6", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/dev-create/templates/typescript-theme/template/tsconfig.json b/plugins/dev-create/templates/typescript-theme/template/tsconfig.json index 4bd61cf170..4aded0942b 100644 --- a/plugins/dev-create/templates/typescript-theme/template/tsconfig.json +++ b/plugins/dev-create/templates/typescript-theme/template/tsconfig.json @@ -1,10 +1,15 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es5", "allowJs": true, "sourceMap": true, - "lib": ["es6", "dom"] + "lib": ["es6", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/field-angle/tsconfig.json b/plugins/field-angle/tsconfig.json index 8edc189e3e..e393d391e4 100644 --- a/plugins/field-angle/tsconfig.json +++ b/plugins/field-angle/tsconfig.json @@ -8,8 +8,12 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. "exclude": ["test/**/*"] -} \ No newline at end of file +} diff --git a/plugins/field-colour-hsv-sliders/tsconfig.json b/plugins/field-colour-hsv-sliders/tsconfig.json index e92371042f..50bb2e4ede 100644 --- a/plugins/field-colour-hsv-sliders/tsconfig.json +++ b/plugins/field-colour-hsv-sliders/tsconfig.json @@ -8,6 +8,10 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. diff --git a/plugins/field-colour/tsconfig.json b/plugins/field-colour/tsconfig.json index 8edc189e3e..e393d391e4 100644 --- a/plugins/field-colour/tsconfig.json +++ b/plugins/field-colour/tsconfig.json @@ -8,8 +8,12 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. "exclude": ["test/**/*"] -} \ No newline at end of file +} diff --git a/plugins/field-date/tsconfig.json b/plugins/field-date/tsconfig.json index 8527da78d0..67d6a0467f 100644 --- a/plugins/field-date/tsconfig.json +++ b/plugins/field-date/tsconfig.json @@ -8,8 +8,12 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. "exclude": ["test/**/*", "dist/**/*", "build/**/*"] -} \ No newline at end of file +} diff --git a/plugins/field-dependent-dropdown/tsconfig.json b/plugins/field-dependent-dropdown/tsconfig.json index e92371042f..50bb2e4ede 100644 --- a/plugins/field-dependent-dropdown/tsconfig.json +++ b/plugins/field-dependent-dropdown/tsconfig.json @@ -8,6 +8,10 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. diff --git a/plugins/field-grid-dropdown/tsconfig.json b/plugins/field-grid-dropdown/tsconfig.json index adf2bbebf7..111847a316 100644 --- a/plugins/field-grid-dropdown/tsconfig.json +++ b/plugins/field-grid-dropdown/tsconfig.json @@ -8,8 +8,12 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. "exclude": ["test/**/*", "dist/**/*", "build/**/*"] -} \ No newline at end of file +} diff --git a/plugins/field-multilineinput/tsconfig.json b/plugins/field-multilineinput/tsconfig.json index 8edc189e3e..e393d391e4 100644 --- a/plugins/field-multilineinput/tsconfig.json +++ b/plugins/field-multilineinput/tsconfig.json @@ -8,8 +8,12 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. "exclude": ["test/**/*"] -} \ No newline at end of file +} diff --git a/plugins/field-slider/tsconfig.json b/plugins/field-slider/tsconfig.json index adf2bbebf7..111847a316 100644 --- a/plugins/field-slider/tsconfig.json +++ b/plugins/field-slider/tsconfig.json @@ -8,8 +8,12 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. "exclude": ["test/**/*", "dist/**/*", "build/**/*"] -} \ No newline at end of file +} diff --git a/plugins/renderer-inline-row-separators/tsconfig.json b/plugins/renderer-inline-row-separators/tsconfig.json index e92371042f..50bb2e4ede 100644 --- a/plugins/renderer-inline-row-separators/tsconfig.json +++ b/plugins/renderer-inline-row-separators/tsconfig.json @@ -8,6 +8,10 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. diff --git a/plugins/shadow-block-converter/tsconfig.json b/plugins/shadow-block-converter/tsconfig.json index e92371042f..50bb2e4ede 100644 --- a/plugins/shadow-block-converter/tsconfig.json +++ b/plugins/shadow-block-converter/tsconfig.json @@ -8,6 +8,10 @@ "moduleResolution": "node", "target": "ES2015", "strict": true, + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, // NOTE: `test/**/*` is automatically included in `blockly-scripts start`. // Only src matters for production builds. diff --git a/plugins/toolbox-search/tsconfig.json b/plugins/toolbox-search/tsconfig.json index 343d69216d..a727838413 100644 --- a/plugins/toolbox-search/tsconfig.json +++ b/plugins/toolbox-search/tsconfig.json @@ -1,11 +1,16 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es6", "allowJs": true, "sourceMap": true, "moduleResolution": "nodenext", - "lib": ["es2021", "dom"] + "lib": ["es2021", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/workspace-minimap/tsconfig.json b/plugins/workspace-minimap/tsconfig.json index ca446e7186..df78291c4f 100644 --- a/plugins/workspace-minimap/tsconfig.json +++ b/plugins/workspace-minimap/tsconfig.json @@ -1,10 +1,15 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es5", "allowJs": true, "sourceMap": true, - "lib": ["es6", "dom"] + "lib": ["es6", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/workspace-search/tsconfig.json b/plugins/workspace-search/tsconfig.json index 343d69216d..a727838413 100644 --- a/plugins/workspace-search/tsconfig.json +++ b/plugins/workspace-search/tsconfig.json @@ -1,11 +1,16 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es6", "allowJs": true, "sourceMap": true, "moduleResolution": "nodenext", - "lib": ["es2021", "dom"] + "lib": ["es2021", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test" diff --git a/plugins/zoom-to-fit/tsconfig.json b/plugins/zoom-to-fit/tsconfig.json index 343d69216d..a727838413 100644 --- a/plugins/zoom-to-fit/tsconfig.json +++ b/plugins/zoom-to-fit/tsconfig.json @@ -1,11 +1,16 @@ { "compilerOptions": { + "baseUrl": "./", "outDir": "build", "target": "es6", "allowJs": true, "sourceMap": true, "moduleResolution": "nodenext", - "lib": ["es2021", "dom"] + "lib": ["es2021", "dom"], + // Point at the local Blockly. See #1934. Remove if we add hoisting. + "paths": { + "blockly/*": ["node_modules/blockly/*"] + } }, "include": [ "src", "test"