Skip to content

Commit eb98b60

Browse files
authored
add ts-node config to global, remove useless incremental (#620)
1 parent 18dc5b0 commit eb98b60

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"test": "jest",
1515
"test:scripts": "jest --config scripts/jest.config.js",
16-
"lint": "yarn constraints && turbo run lint",
16+
"lint": "yarn constraints && turbo run lint --continue",
1717
"build": "turbo run build --filter='./packages/*'",
1818
"watch": "turbo run watch --filter='./packages/*'",
1919
"dev": "yarn workspace with-next-js run dev",

packages/browser/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/test-helpers/**", "**/tester/**"],
55
"compilerOptions": {
6-
"incremental": false,
76
"outDir": "./dist/pkg",
87
"importHelpers": true,
98
// publish sourceMaps

packages/core/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/*.test.*"],
55
"compilerOptions": {
6-
"incremental": true,
76
"outDir": "./dist/esm",
87
"importHelpers": true,
98
// publish sourceMaps

scripts/clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# Clear build artifacts and build cache
33

4-
find . -type d \( -name ".turbo" -o -name "dist" -o -name ".next" \) ! -path "*/node_modules/*" -print0 | xargs -0 rm -rf
4+
find . \( -name ".turbo" -o -name "dist" -o -name ".next" -o -name "tsconfig.tsbuildinfo" \) ! -path "*/node_modules/*" -print0 | xargs -0 rm -rf
55
rm -rf node_modules/.cache
66

77
echo "Build files and cache deleted."

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"strict": true,
44
"esModuleInterop": true,
55
"skipLibCheck": true,
6-
"incremental": true,
76
"noUnusedLocals": true,
87
"noUnusedParameters": true
8+
},
9+
"ts-node": {
10+
"transpileOnly": true,
11+
"files": true,
12+
"compilerOptions": {
13+
"module": "commonjs" // get rid of "Cannot use import statement outside a module" for local scripts
14+
}
915
}
1016
}

0 commit comments

Comments
 (0)