@ast-grep/setup-lang 0.0.2 → 0.0.3
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/index.d.ts +0 -2
- package/index.js +2 -2
- package/index.ts +2 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const node_path_1 = __importDefault(require("node:path"));
|
|
|
11
11
|
* Log to console
|
|
12
12
|
*/
|
|
13
13
|
function log(...args) {
|
|
14
|
-
console.debug(
|
|
14
|
+
console.debug('@ast-grep/lang:', ...args);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Move prebuild or build parser
|
|
@@ -53,7 +53,7 @@ const PLATFORM_MAP = {
|
|
|
53
53
|
win32: 'Windows',
|
|
54
54
|
};
|
|
55
55
|
const ARCH_MAP = {
|
|
56
|
-
x64: '
|
|
56
|
+
x64: 'X64',
|
|
57
57
|
arm64: 'ARM64',
|
|
58
58
|
};
|
|
59
59
|
/**
|
package/index.ts
CHANGED
|
@@ -6,14 +6,12 @@ import path from 'node:path'
|
|
|
6
6
|
* Log to console
|
|
7
7
|
*/
|
|
8
8
|
function log(...args: unknown[]) {
|
|
9
|
-
console.debug(
|
|
9
|
+
console.debug('@ast-grep/lang:', ...args)
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
interface SetupConfig {
|
|
13
13
|
/** Directory of the lang package. e.g. __dirname */
|
|
14
14
|
dirname: string
|
|
15
|
-
/** Package name of tree-sitter package. e.g. tree-sitter-css */
|
|
16
|
-
treeSitterPackage: string
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
/**
|
|
@@ -58,7 +56,7 @@ const PLATFORM_MAP: Record<string, string> = {
|
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
const ARCH_MAP: Record<string, string> = {
|
|
61
|
-
x64: '
|
|
59
|
+
x64: 'X64',
|
|
62
60
|
arm64: 'ARM64',
|
|
63
61
|
}
|
|
64
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ast-grep/setup-lang",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"typescript": "^5.7.3",
|
|
16
|
-
"@types/node": "22.
|
|
16
|
+
"@types/node": "22.13.4"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"compile-ts": "tsc"
|