@jterrazz/typescript 6.1.0 → 6.1.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/commands/check.sh +23 -9
- package/package.json +11 -3
package/bin/commands/check.sh
CHANGED
|
@@ -33,16 +33,30 @@ find_binary() {
|
|
|
33
33
|
fi
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
36
|
+
# Type checking uses the official TypeScript 7 Go compiler, pulled in through
|
|
37
|
+
# the per-platform @typescript/typescript-* packages instead of a second
|
|
38
|
+
# package named "typescript": typedoc and eslint-plugin-perfectionist load
|
|
39
|
+
# the JS API from the "typescript" name (v6 here), and any typescript@7 in
|
|
40
|
+
# the tree can hijack that lookup under pnpm's hoist fallback.
|
|
41
41
|
find_tsc() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
local os arch
|
|
43
|
+
case "$(uname -s)" in
|
|
44
|
+
Darwin) os="darwin" ;;
|
|
45
|
+
Linux) os="linux" ;;
|
|
46
|
+
MINGW*|MSYS*|CYGWIN*) os="win32" ;;
|
|
47
|
+
*) os="linux" ;;
|
|
48
|
+
esac
|
|
49
|
+
case "$(uname -m)" in
|
|
50
|
+
arm64|aarch64) arch="arm64" ;;
|
|
51
|
+
armv7l) arch="arm" ;;
|
|
52
|
+
*) arch="x64" ;;
|
|
53
|
+
esac
|
|
54
|
+
|
|
55
|
+
local pkg="@typescript/typescript-$os-$arch"
|
|
56
|
+
if [ -x "$PACKAGE_ROOT/node_modules/$pkg/lib/tsc" ]; then
|
|
57
|
+
echo "$PACKAGE_ROOT/node_modules/$pkg/lib/tsc"
|
|
58
|
+
elif [ -x "$PACKAGE_ROOT/../../$pkg/lib/tsc" ]; then
|
|
59
|
+
echo "$PACKAGE_ROOT/../../$pkg/lib/tsc"
|
|
46
60
|
else
|
|
47
61
|
find_binary tsc
|
|
48
62
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jterrazz/typescript",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,12 +49,20 @@
|
|
|
49
49
|
"tsdown": "^0.22.9",
|
|
50
50
|
"typedoc": "^0.28.20",
|
|
51
51
|
"typedoc-plugin-markdown": "^4.12.0",
|
|
52
|
-
"typescript": "^6.0.0"
|
|
53
|
-
"typescript-go": "npm:typescript@^7.0.2"
|
|
52
|
+
"typescript": "^6.0.0"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@jterrazz/test": "^8.0.0",
|
|
57
56
|
"@types/node": "^26.1.1",
|
|
58
57
|
"vitest": "^4.1.10"
|
|
58
|
+
},
|
|
59
|
+
"optionalDependencies": {
|
|
60
|
+
"@typescript/typescript-darwin-arm64": "^7.0.2",
|
|
61
|
+
"@typescript/typescript-darwin-x64": "^7.0.2",
|
|
62
|
+
"@typescript/typescript-linux-arm": "^7.0.2",
|
|
63
|
+
"@typescript/typescript-linux-arm64": "^7.0.2",
|
|
64
|
+
"@typescript/typescript-linux-x64": "^7.0.2",
|
|
65
|
+
"@typescript/typescript-win32-arm64": "^7.0.2",
|
|
66
|
+
"@typescript/typescript-win32-x64": "^7.0.2"
|
|
59
67
|
}
|
|
60
68
|
}
|