@jterrazz/typescript 2.3.5 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ts-watch.sh +2 -3
- package/package.json +1 -1
- package/tsconfig/next.json +24 -0
package/bin/ts-watch.sh
CHANGED
|
@@ -42,16 +42,15 @@ printf "${GREEN}✓ Successfully converted tsconfig.json to .swcrc${NC}\n"
|
|
|
42
42
|
|
|
43
43
|
printf "\n${CYAN_BG}${BRIGHT_WHITE} RUN ${NC} Starting watch mode with nodemon\n\n"
|
|
44
44
|
printf "Watching for changes in: %s\n" "$IN_PATH"
|
|
45
|
-
printf "Changes will trigger automatic recompilation and execution\n\n"
|
|
46
45
|
|
|
47
46
|
# Watch for changes in the src directory, compile and run
|
|
48
47
|
npx nodemon --quiet \
|
|
49
48
|
--watch "$IN_PATH" \
|
|
50
49
|
--ext '*' \
|
|
51
|
-
--exec "printf 'File change detected,
|
|
50
|
+
--exec "printf 'File change detected, rebuilding\\n' && npx swc $IN_PATH \
|
|
52
51
|
--source-maps \
|
|
53
52
|
--copy-files \
|
|
54
53
|
--config-file $TMP_SWCRC \
|
|
55
54
|
--out-dir $OUT_PATH \
|
|
56
55
|
--strip-leading-paths \
|
|
57
|
-
&& printf '${GREEN}✓
|
|
56
|
+
&& printf '${GREEN}✓ Completed${NC}\\n\n' && node --enable-source-maps $OUT_PATH/index.js"
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": false,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"incremental": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"jsx": "preserve",
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
|
|
23
|
+
"exclude": ["node_modules"]
|
|
24
|
+
}
|