Skip to content

Commit 25e7d36

Browse files
committed
fix: add --noEmit to tsc type-check scripts to prevent JS file generation
Without --noEmit, tsc outputs .js files next to the .ts sources. Rollup then resolves the CJS .js files instead of the .ts sources and fails with 'default is not exported' on the CommonJS interop boundary.
1 parent 3ce6075 commit 25e7d36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"watch": "strapi-plugin watch",
2828
"watch:link": "strapi-plugin watch:link",
2929
"verify": "strapi-plugin verify",
30-
"test:ts:front": "npx tsc -p admin/tsconfig.json",
31-
"test:ts:back": "npx tsc -p server/tsconfig.json"
30+
"test:ts:front": "npx tsc -p admin/tsconfig.json --noEmit",
31+
"test:ts:back": "npx tsc -p server/tsconfig.json --noEmit"
3232
},
3333
"dependencies": {
3434
"@dnd-kit/core": "^6.3.1",

0 commit comments

Comments
 (0)