Skip to content

Commit aa7fd0e

Browse files
authored
chore: rename tsconfig in new package script (SAP#11322)
The `vite.config.js` file collects and processes all `tsconfig.json` files. During this process, it also detects newly added `tsconfig.json` files inside the `create-package/template` folder, which leads to errors being shown in the console when the development server starts. To address this, the files are now renamed to `tsconfig.template.json` and are reverted back to `tsconfig.json` when the generation script is executed.
1 parent 2472d5a commit aa7fd0e

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

packages/create-package/create-package.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const SRC_DIR = "template";
2222
const FILES_TO_RENAME = {
2323
"npmrc": ".npmrc",
2424
"gitignore": ".gitignore",
25+
"tsconfig.template.json": "tsconfig.json",
26+
"cypress/tsconfig.template.json": "cypress/tsconfig.json"
2527
};
2628
const FILES_TO_COPY = ["test/pages/img/logo.png"];
2729

0 commit comments

Comments
 (0)