Skip to content

Commit e30b644

Browse files
authored
Add missing declarationDir to Rollup config for themes and UI presets… (#7576)
* Add missing declarationDir to Rollup config for themes and UI presets fix #7575 * Refactor UMD config input and directory paths for ui-preset-editor * Remove unused import * Remove unused import from survey-text-worker test file
1 parent b6c322e commit e30b644

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

packages/survey-creator-core/rollup.themes.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default () => {
3232
tsconfig: resolve(__dirname, "tsconfig.themes.json"),
3333
external: ["survey-creator-core"],
3434
dir: resolve(buildPath, "themes"),
35+
declarationDir: resolve(buildPath, "themes"),
3536
globalName: globalName,
3637
exports,
3738
globals: { "survey-creator-core": "SurveyCreatorCore" },

packages/survey-creator-core/rollup.ui-preset-editor.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default () => {
2121
tsconfig: resolve(__dirname, "tsconfig.ui-preset-editor.json"),
2222
external: ["survey-core", "survey-creator-core"],
2323
dir: resolve(buildPath, "ui-preset-editor"),
24+
declarationDir: resolve(buildPath, "ui-preset-editor"),
2425
globals: { "survey-core": "Survey", "survey-creator-core": "SurveyCreatorCore" },
2526
globalName: "SurveyCreatorUIPresetEditorCore",
2627
emitCss: true,

packages/survey-creator-core/rollup.ui-presets.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default () => {
2626
tsconfig: resolve(__dirname, "tsconfig.ui-presets.json"),
2727
external: ["survey-creator-core"],
2828
dir: resolve(buildPath, "ui-presets"),
29+
declarationDir: resolve(buildPath, "ui-presets"),
2930
globalName: globalName,
3031
globals: { "survey-creator-core": "SurveyCreatorCore" },
3132
emitMinified: process.env.emitMinified === "true",

packages/survey-creator-core/tests/survey-text-worker.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { clear } from "console";
21
import { SurveyTextWorker } from "../src/textWorker";
32
import { ILoadFromJSONOptions } from "survey-core";
43

0 commit comments

Comments
 (0)