Skip to content

Commit ed90af2

Browse files
committed
g
1 parent 34edd33 commit ed90af2

5 files changed

Lines changed: 33 additions & 22 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@playwright/test": "1.59.1",
41+
"@types/detect-node": "^2.0.2",
4142
"@types/express": "^5.0.6",
4243
"@types/gitignore-parser": "^0.0.3",
4344
"@types/lodash": "^4.17.24",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsc.ignore

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
# for tsc.sh
22

33
tsc.ignore.ts
4-
5-
6-
74
node_modules
5+
86
es.ts
9-
tsc.ignore.ts
107
bash/tee.ts
118
vitest.config.ts
129
esbuild.ts
10+
pages/typescript/node/transform-types.ts
11+
pages/typescript/node/lib.ts
12+
pages/typescript/node/tstest.ts
13+
scripts/template.ts
14+
scripts/template.v2.ts
15+
server-template.ts
16+
bash/fs/relative.ts
1317

14-
# server-template.ts
15-
# bash/fs/relative.ts
16-
# scripts/template.ts
17-
# scripts/template.v2.ts
1818
# pages/online_services/generator/index.ts
1919
# pages/js/flipget/dataFactory.ts
20-
# pages/typescript/node/transform-types.ts
21-
# pages/typescript/node/lib.ts
22-
# pages/typescript/node/tstest.ts
2320
# pages/bookmarklets/gmail/extract.ts
2421
# pages/node/libs/lib.ts
2522
# pages/node/libs/tstest.ts

tsc.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11

22

33
# to find all ts files
4-
find . \( \
5-
-type d -name node_modules -prune -o \
6-
-type d -name .git -prune -o \
7-
-type d -name coverage -prune -o \
8-
-type d -name noprettier -prune \
9-
\) \
10-
-o \
11-
\( -type f \( -name "*.ts" \) -print \)
4+
# find . \( \
5+
# -type d -name node_modules -prune -o \
6+
# -type d -name .git -prune -o \
7+
# -type d -name coverage -prune -o \
8+
# -type d -name noprettier -prune \
9+
# \) \
10+
# -o \
11+
# \( -type f \( -name "*.ts" \) -print \)
1212

13+
TSCONFIG=tsc.ignore.tsconfig.json
1314

14-
NODE_OPTIONS= node tsc.ignore.ts "tsc.ignore" tsconfig.json tsc.ignore.tsconfig.json
15+
NODE_OPTIONS= node tsc.ignore.ts "tsc.ignore" tsconfig.json "${TSCONFIG}"
1516

16-
npx tsc -p tsconfig.json
17+
# typechecking more file
18+
npx tsc -p tsconfig.json --noEmit
19+
20+
# # but transpiling only subset of files
21+
# npx tsc -p ${TSCONFIG} "$@"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"rootDir": "./",
1212
"allowJs": false
1313
},
14-
"include": ["**/module*.ts"],
14+
"include": ["**/*.ts"],
1515
"exclude": ["node_modules"]
1616
}

0 commit comments

Comments
 (0)