@jterrazz/typescript 1.9.4 → 1.9.6
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/swc-compile.sh +3 -0
- package/bin/swc-watch.sh +3 -0
- package/package.json +1 -1
- package/tsconfig/expo.json +2 -9
- package/tsconfig/node-esm.json +2 -4
package/bin/swc-compile.sh
CHANGED
|
@@ -18,6 +18,9 @@ if [ $? -ne 0 ]; then
|
|
|
18
18
|
echo "$0: Can't create temporary .swcrc file"
|
|
19
19
|
exit 1
|
|
20
20
|
fi
|
|
21
|
+
|
|
22
|
+
# Ensure we're in the project root directory for TypeScript configuration
|
|
23
|
+
cd "$PROJECT_ROOT"
|
|
21
24
|
npx tsconfig-to-swcconfig --output="$TMP_SWCRC"
|
|
22
25
|
|
|
23
26
|
# Create typescript declaration files
|
package/bin/swc-watch.sh
CHANGED
|
@@ -18,6 +18,9 @@ if [ $? -ne 0 ]; then
|
|
|
18
18
|
echo "$0: Can't create temporary .swcrc file"
|
|
19
19
|
exit 1
|
|
20
20
|
fi
|
|
21
|
+
|
|
22
|
+
# Ensure we're in the project root directory for TypeScript configuration
|
|
23
|
+
cd "$PROJECT_ROOT"
|
|
21
24
|
npx tsconfig-to-swcconfig --output="$TMP_SWCRC"
|
|
22
25
|
|
|
23
26
|
# Watch for changes in the src directory, compile and run
|
package/package.json
CHANGED
package/tsconfig/expo.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"display": "Expo",
|
|
3
|
-
"include": ["
|
|
3
|
+
"include": ["../../../../src/"],
|
|
4
4
|
|
|
5
5
|
"compilerOptions": {
|
|
6
6
|
"allowJs": true,
|
|
@@ -12,12 +12,5 @@
|
|
|
12
12
|
"resolveJsonModule": true,
|
|
13
13
|
"skipLibCheck": true,
|
|
14
14
|
"target": "ESNext"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
"exclude": [
|
|
18
|
-
"node_modules",
|
|
19
|
-
"babel.config.js",
|
|
20
|
-
"metro.config.js",
|
|
21
|
-
"jest.config.js"
|
|
22
|
-
]
|
|
15
|
+
}
|
|
23
16
|
}
|
package/tsconfig/node-esm.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"display": "ESM",
|
|
3
|
-
"include": ["
|
|
3
|
+
"include": ["../../../../src/"],
|
|
4
4
|
|
|
5
5
|
"compilerOptions": {
|
|
6
6
|
"moduleResolution": "bundler",
|
|
@@ -11,7 +11,5 @@
|
|
|
11
11
|
"esModuleInterop": true,
|
|
12
12
|
"resolveJsonModule": true,
|
|
13
13
|
"skipLibCheck": true
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
|
|
14
|
+
}
|
|
17
15
|
}
|