Skip to content

Commit 33c2884

Browse files
committed
Update scripts and use tsc instead of tsx
1 parent 981e150 commit 33c2884

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"docs:build": "pnpm --filter docs build",
1818
"docs:start": "pnpm --filter docs start",
1919
"docs:clear": "pnpm --filter docs clear",
20+
"demos:link": "tsc -b scripts && node scripts/dist/demos-use-workspace.js",
2021
"format": "prettier --write .",
2122
"lint": "eslint .",
2223
"release": "pnpm build:packages:prod && pnpm changeset publish",

scripts/demos-use-workspace.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ const linkDemo = async (demoName: string) => {
7777
}
7878

7979
if (changes) {
80-
// Save copy of original package.json to package.json.bak
81-
fs.copyFileSync(packageJsonPath, packageJsonPath + '.bak');
8280
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`, 'utf8');
8381
} else {
8482
console.log('- No changes');

scripts/tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"module": "nodenext",
4+
"target": "esnext",
5+
6+
// For nodejs:
7+
"lib": ["esnext"],
8+
"types": ["node"],
9+
10+
"outDir": "./dist",
11+
"isolatedModules": true,
12+
"noUncheckedSideEffectImports": true,
13+
"moduleDetection": "force"
14+
}
15+
}

0 commit comments

Comments
 (0)