Skip to content

Commit 2df705b

Browse files
committed
chore: convert get.grammars to ts
1 parent 921dee6 commit 2df705b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"tsc.dev": "tsc -p src/tsconfig.json --watch",
3131
"build": "npm run tsc",
3232
"dev": "npm run tsc.dev",
33-
"get.grammars": "node ./scripts/get-grammars.js",
33+
"get.grammars": "ts-node -P ./scripts/tsconfig.json ./scripts/get-grammars.ts",
3434
"get.servers": "ts-node -P ./scripts/tsconfig.json ./scripts/get-servers.ts",
3535
"build-commit": "build-commit -o dist",
3636
"prepare": "npm run get.servers && npm run build"

scripts/get-grammars.js renamed to scripts/get-grammars.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { download, extract } = require("gitly")
2-
const { dirname, join } = require("path")
3-
const { remove, ensureDir, move } = require("fs-extra")
1+
import { download, extract } from "gitly"
2+
import { dirname, join } from "path"
3+
import { remove, ensureDir, move } from "fs-extra"
44

55
;(async function main() {
66
const source = await download("Pure-D/code-d")

0 commit comments

Comments
 (0)