diff --git a/docs/src/codebase/structure/testing.md b/docs/src/codebase/structure/testing.md index a10112094..c4256f976 100644 --- a/docs/src/codebase/structure/testing.md +++ b/docs/src/codebase/structure/testing.md @@ -19,14 +19,8 @@ This will execute every test, and also perform coverage analysis. !!! bug - This may or may not impact you depending on how - dependencies install, but `tap` requires `ts-node` - and `typescript` to also be installed. - - Otherwise, you will get a - `cannot use import outside of module` - error, which indicates that our typescript hasn't - been transpiled. + Use the workspace Vitest entrypoints (`bun test`, `just test-typescript`, …) rather than running `node` + directly on `.ts` files. Bun invokes Vitest without a separate transpiler for day-to-day runs. ## Writing Tests diff --git a/docs/src/contributing/cookbook/ddr-mdb.md b/docs/src/contributing/cookbook/ddr-mdb.md index d8ed35417..e73b8ac9b 100644 --- a/docs/src/contributing/cookbook/ddr-mdb.md +++ b/docs/src/contributing/cookbook/ddr-mdb.md @@ -18,10 +18,10 @@ The file you're looking to run is `parse-gameData-xml.ts`, but it needs two argu - `--input`, which is the location of the `musicdb.xml` file you're looking to parse. - `--version`, what version of the game this music db is from. For a list of versions, see the [DDR Config](../../game-support/games/ddr-SP.md#versions). -You can run this script by typing `ts-node parse-gameData-xml.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. +You can run this script by typing `bun parse-gameData-xml.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. For example, if your file is in the same directory as the script, and you're importing from DDR World: -`ts-node parse-gameData-xml.ts --input ./musicdb.xml --version world` +`bun parse-gameData-xml.ts --input ./musicdb.xml --version world` !!! warning "Warning" @@ -50,7 +50,7 @@ For example, if your file is in the same directory as the script, and you're imp Step counts are generated from SSQ files. You're on your own to find them. Place all of your SSQ files in the `ssq` folder. The name of each file should correspond to the `basename` of each song, which is a 4~5 characters identifier. -Then, run `ts-node parse-charts.ts` +Then, run `bun parse-charts.ts` ## Using a JSON file @@ -71,7 +71,7 @@ The file you're looking to run is `parse-gameData-json.ts`, but it needs two arg - `--input`, which is the location of the JSON file you're looking to parse. - `--version`, what version of the game this music db is from. For a list of versions, see the [DDR Config](../../game-support/games/ddr-SP.md#versions). -You can run this script by typing `ts-node parse-gameData-json.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. +You can run this script by typing `bun parse-gameData-json.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. For example, if your file is in the same directory as the script, and you're importing from DDR Konaste: -`ts-node parse-gameData-json.ts --input ./music.json --version konaste` \ No newline at end of file +`bun parse-gameData-json.ts --input ./music.json --version konaste` \ No newline at end of file diff --git a/docs/src/contributing/cookbook/iidx-mdb.md b/docs/src/contributing/cookbook/iidx-mdb.md index dbdc3e12d..400f5db38 100644 --- a/docs/src/contributing/cookbook/iidx-mdb.md +++ b/docs/src/contributing/cookbook/iidx-mdb.md @@ -13,7 +13,7 @@ You will need `ifstools` in your `$PATH`. You can do this by installing `python3 Navigate to `seeds/scripts/rerunners/iidx/iidx-mdb-parse`. -Run `ts-node merge-mdb.ts --help` for information on what arguments are needed. +Run `bun merge-mdb.ts --help` for information on what arguments are needed. Fill out those arguments, and run the script in the terminal. If everything has gone correctly, `charts-iidx.json` and `songs-iidx.json` will be updated accordingly. @@ -21,6 +21,3 @@ Fill out those arguments, and run the script in the terminal. If everything has Sometimes, you might want to exclude certain charts from the parser. Edit `blacklist.txt` accordingly. - -!!! tip - Make sure you have `ts-node` installed. If you don't, you can get it with `pnpm add -g ts-node`. diff --git a/docs/src/contributing/cookbook/sdvx-mdb.md b/docs/src/contributing/cookbook/sdvx-mdb.md index 5da756545..a3021e40c 100644 --- a/docs/src/contributing/cookbook/sdvx-mdb.md +++ b/docs/src/contributing/cookbook/sdvx-mdb.md @@ -17,4 +17,4 @@ The file you're looking to run is `merge-mdb.ts`, but it needs two arguments: - `--input`, which is the location of the `music_db.xml` file you're looking to parse. - `--version`, what version of the game this music db is from. For a list of versions, see the [SDVX Config](../../game-support/games/sdvx-Single.md#versions). -You can run this script by typing `ts-node merge-mdb.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. +You can run this script by typing `bun merge-mdb.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. diff --git a/old-docs/docs/codebase/structure/testing.md b/old-docs/docs/codebase/structure/testing.md index a10112094..c4256f976 100644 --- a/old-docs/docs/codebase/structure/testing.md +++ b/old-docs/docs/codebase/structure/testing.md @@ -19,14 +19,8 @@ This will execute every test, and also perform coverage analysis. !!! bug - This may or may not impact you depending on how - dependencies install, but `tap` requires `ts-node` - and `typescript` to also be installed. - - Otherwise, you will get a - `cannot use import outside of module` - error, which indicates that our typescript hasn't - been transpiled. + Use the workspace Vitest entrypoints (`bun test`, `just test-typescript`, …) rather than running `node` + directly on `.ts` files. Bun invokes Vitest without a separate transpiler for day-to-day runs. ## Writing Tests diff --git a/old-docs/docs/contributing/cookbook/ddr-mdb.md b/old-docs/docs/contributing/cookbook/ddr-mdb.md index d8ed35417..e73b8ac9b 100644 --- a/old-docs/docs/contributing/cookbook/ddr-mdb.md +++ b/old-docs/docs/contributing/cookbook/ddr-mdb.md @@ -18,10 +18,10 @@ The file you're looking to run is `parse-gameData-xml.ts`, but it needs two argu - `--input`, which is the location of the `musicdb.xml` file you're looking to parse. - `--version`, what version of the game this music db is from. For a list of versions, see the [DDR Config](../../game-support/games/ddr-SP.md#versions). -You can run this script by typing `ts-node parse-gameData-xml.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. +You can run this script by typing `bun parse-gameData-xml.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. For example, if your file is in the same directory as the script, and you're importing from DDR World: -`ts-node parse-gameData-xml.ts --input ./musicdb.xml --version world` +`bun parse-gameData-xml.ts --input ./musicdb.xml --version world` !!! warning "Warning" @@ -50,7 +50,7 @@ For example, if your file is in the same directory as the script, and you're imp Step counts are generated from SSQ files. You're on your own to find them. Place all of your SSQ files in the `ssq` folder. The name of each file should correspond to the `basename` of each song, which is a 4~5 characters identifier. -Then, run `ts-node parse-charts.ts` +Then, run `bun parse-charts.ts` ## Using a JSON file @@ -71,7 +71,7 @@ The file you're looking to run is `parse-gameData-json.ts`, but it needs two arg - `--input`, which is the location of the JSON file you're looking to parse. - `--version`, what version of the game this music db is from. For a list of versions, see the [DDR Config](../../game-support/games/ddr-SP.md#versions). -You can run this script by typing `ts-node parse-gameData-json.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. +You can run this script by typing `bun parse-gameData-json.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. For example, if your file is in the same directory as the script, and you're importing from DDR Konaste: -`ts-node parse-gameData-json.ts --input ./music.json --version konaste` \ No newline at end of file +`bun parse-gameData-json.ts --input ./music.json --version konaste` \ No newline at end of file diff --git a/old-docs/docs/contributing/cookbook/iidx-mdb.md b/old-docs/docs/contributing/cookbook/iidx-mdb.md index dbdc3e12d..1ecaf0105 100644 --- a/old-docs/docs/contributing/cookbook/iidx-mdb.md +++ b/old-docs/docs/contributing/cookbook/iidx-mdb.md @@ -13,7 +13,7 @@ You will need `ifstools` in your `$PATH`. You can do this by installing `python3 Navigate to `seeds/scripts/rerunners/iidx/iidx-mdb-parse`. -Run `ts-node merge-mdb.ts --help` for information on what arguments are needed. +Run `bun merge-mdb.ts --help` for information on what arguments are needed. Fill out those arguments, and run the script in the terminal. If everything has gone correctly, `charts-iidx.json` and `songs-iidx.json` will be updated accordingly. @@ -22,5 +22,3 @@ Fill out those arguments, and run the script in the terminal. If everything has Sometimes, you might want to exclude certain charts from the parser. Edit `blacklist.txt` accordingly. -!!! tip - Make sure you have `ts-node` installed. If you don't, you can get it with `pnpm add -g ts-node`. diff --git a/old-docs/docs/contributing/cookbook/sdvx-mdb.md b/old-docs/docs/contributing/cookbook/sdvx-mdb.md index 5da756545..a3021e40c 100644 --- a/old-docs/docs/contributing/cookbook/sdvx-mdb.md +++ b/old-docs/docs/contributing/cookbook/sdvx-mdb.md @@ -17,4 +17,4 @@ The file you're looking to run is `merge-mdb.ts`, but it needs two arguments: - `--input`, which is the location of the `music_db.xml` file you're looking to parse. - `--version`, what version of the game this music db is from. For a list of versions, see the [SDVX Config](../../game-support/games/sdvx-Single.md#versions). -You can run this script by typing `ts-node merge-mdb.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. +You can run this script by typing `bun merge-mdb.ts --input YOUR_INPUT_HERE --version YOUR_VERSION_HERE` in the terminal. diff --git a/typescript/bliss/package.json b/typescript/bliss/package.json index 568062fd5..7890df94c 100644 --- a/typescript/bliss/package.json +++ b/typescript/bliss/package.json @@ -17,7 +17,7 @@ "lint": "eslint .", "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "publishConfig": { "main": "./build/index.js", diff --git a/typescript/client/package.json b/typescript/client/package.json index 75179554f..1041a6a56 100644 --- a/typescript/client/package.json +++ b/typescript/client/package.json @@ -11,7 +11,7 @@ "lint-fix": "eslint src --fix", "preview": "vite build && vite preview", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "browserslist": { "production": [ diff --git a/typescript/db-cli/package.json b/typescript/db-cli/package.json index b16e3be3f..346d9833f 100644 --- a/typescript/db-cli/package.json +++ b/typescript/db-cli/package.json @@ -11,7 +11,7 @@ "lint": "eslint .", "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "dependencies": { "commander": "catalog:", diff --git a/typescript/db-migration-engine/package.json b/typescript/db-migration-engine/package.json index eb5c521f5..ae3fca178 100644 --- a/typescript/db-migration-engine/package.json +++ b/typescript/db-migration-engine/package.json @@ -18,7 +18,7 @@ "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", "build": "tsgo -p tsconfig.build.json", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "dependencies": { "pg": "catalog:" diff --git a/typescript/db/package.json b/typescript/db/package.json index e62343326..7d22043a0 100644 --- a/typescript/db/package.json +++ b/typescript/db/package.json @@ -7,7 +7,7 @@ "type": "module", "scripts": { "build": "tsgo -b", - "start": "tsgo -b && node js/main.js", + "start": "tsgo -b && bun js/main.js", "typecheck": "tsgo --noEmit", "test": "vitest", "bench": "vitest bench" diff --git a/typescript/docs-autogen-scripts/package.json b/typescript/docs-autogen-scripts/package.json index c7f699391..61c8f139f 100644 --- a/typescript/docs-autogen-scripts/package.json +++ b/typescript/docs-autogen-scripts/package.json @@ -9,7 +9,7 @@ "lint-fix": "eslint . --fix", "run": "bun run src/main.ts", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "keywords": [], "author": "zk", diff --git a/typescript/eslint-config/package.json b/typescript/eslint-config/package.json index a93a6ac38..b200f9865 100644 --- a/typescript/eslint-config/package.json +++ b/typescript/eslint-config/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "type": "module", "scripts": { - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "exports": { ".": { diff --git a/typescript/github-bot/package.json b/typescript/github-bot/package.json index d04eba7a7..bcea95433 100644 --- a/typescript/github-bot/package.json +++ b/typescript/github-bot/package.json @@ -7,11 +7,11 @@ "type": "module", "scripts": { "build": "tsgo -b", - "start": "tsgo -b && node js/main.js", + "start": "tsgo -b && bun js/main.js", "lint": "eslint .", "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "dependencies": { "@octokit/app": "catalog:", diff --git a/typescript/rg-stats/package.json b/typescript/rg-stats/package.json index c7273f5e2..c2b3d46af 100644 --- a/typescript/rg-stats/package.json +++ b/typescript/rg-stats/package.json @@ -21,7 +21,7 @@ "lint": "eslint .", "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "publishConfig": { "main": "./build/index.js", diff --git a/typescript/seeds-scripts/package.json b/typescript/seeds-scripts/package.json index 29f9c167d..ddd5f08c1 100644 --- a/typescript/seeds-scripts/package.json +++ b/typescript/seeds-scripts/package.json @@ -12,7 +12,7 @@ "sort": "bun ./sort-seeds.js", "sort-check": "bun ./sort-seeds.js --check", "test": "./run-tests.sh", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "author": "zk", "license": "MIT", diff --git a/typescript/seeds-scripts/rerunners/arcaea/wikiwiki-arcaea/_README.md b/typescript/seeds-scripts/rerunners/arcaea/wikiwiki-arcaea/_README.md index a3bfc73cd..f8ef99677 100644 --- a/typescript/seeds-scripts/rerunners/arcaea/wikiwiki-arcaea/_README.md +++ b/typescript/seeds-scripts/rerunners/arcaea/wikiwiki-arcaea/_README.md @@ -104,7 +104,7 @@ of this script in the browser console: Chart constant data will now be copied into your clipboard. Paste them into `upper.json` and `lower.json` respectively. -Run `node parse-scraped-data.js` +Run `bun parse-scraped-data.js` ## Note counts Go to [ノーツ数順](https://wikiwiki.jp/arcaea/%E3%83%8E%E3%83%BC%E3%83%84%E6%95%B0%E9%A0%86) and paste this script @@ -158,4 +158,4 @@ into the browser console: Notecount data will be copied to your clipboard. Paste the contents into `notecount.json`. -Run `node parse-scraped-data.js`. +Run `bun parse-scraped-data.js`. diff --git a/typescript/seeds-scripts/rerunners/chunithm/README.md b/typescript/seeds-scripts/rerunners/chunithm/README.md index aea9316ad..8e0a58004 100644 --- a/typescript/seeds-scripts/rerunners/chunithm/README.md +++ b/typescript/seeds-scripts/rerunners/chunithm/README.md @@ -5,10 +5,10 @@ These instructions assume you've already set up the [development container](http 1. Navigate to `seeds/scripts/rerunners/chunithm` and run the `merge-options.ts` script: ```shell -ts-node merge-options.ts --version --input /path/to/chunithm/App/data /path/to/chunithm/Option +bun merge-options.ts --version --input /path/to/chunithm/App/data /path/to/chunithm/Option ``` -2. In the same directory, reorder the versions by running `node sort-versions.js`. +2. In the same directory, reorder the versions by running `bun sort-versions.js`. 3. Check the logs to see if the script changed anything unexpected, and fix if it happens. 4. Manually add search terms in `seeds/collections/songs-chunithm.json`. At a minimum, songs with Japanese titles should be romanized. @@ -32,8 +32,8 @@ This step only needs to be done once. 2. Navigate to `seeds/scripts/rerunners/ongeki` and run the `parse-song-duration.ts` script: ``` -ts-node parse-song-duration.ts -v "$(which vgmstream-cli)" -d /path/to/chunithm/App/data -g chunithm -ts-node parse-song-duration.ts -v "$(which vgmstream-cli)" -d /path/to/chunithm/Option -g chunithm +bun parse-song-duration.ts -v "$(which vgmstream-cli)" -d /path/to/chunithm/App/data -g chunithm +bun parse-song-duration.ts -v "$(which vgmstream-cli)" -d /path/to/chunithm/Option -g chunithm ``` 3. In the root project folder, run `just seeds test`. @@ -52,7 +52,7 @@ to adjust the constants for the version you're adding. 3. Deactivate old tables using `seeds/scripts/rerunners/toggle-table-inactive.js`: ``` -node toggle-table-inactive.js -t chunithm-Single--levels +bun toggle-table-inactive.js -t chunithm-Single--levels ``` Keep tables for the current and last (aka n-1) versions. diff --git a/typescript/seeds-scripts/rerunners/chunithm/merge-options.ts b/typescript/seeds-scripts/rerunners/chunithm/merge-options.ts index 8722408d2..2747b3b9a 100644 --- a/typescript/seeds-scripts/rerunners/chunithm/merge-options.ts +++ b/typescript/seeds-scripts/rerunners/chunithm/merge-options.ts @@ -122,9 +122,7 @@ function randomHex(byteLength: number): string { } if (require.main !== module) { - throw new Error( - `This is a script. It should be ran directly from the command line with ts-node.`, - ); + throw new Error(`This is a script. It should be ran directly from the command line with bun.`); } const program = new Command() diff --git a/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/HOWTO.md b/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/HOWTO.md index 05d8db910..acbf02fd4 100644 --- a/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/HOWTO.md +++ b/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/HOWTO.md @@ -2,7 +2,7 @@ [Make sure you have the repository set up.](https://docs.tachi.ac/contributing/setup/) -With that done, run `pnpx ts-node merge-mdb.ts --help`. Provide the right data for `--basedir, --index and --version`. +With that done, run `bun merge-mdb.ts --help`. Provide the right data for `--basedir, --index and --version`. Make sure you have `ifstools` installed in your PATH. You'll need python3 installed. diff --git a/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/merge-mdb.ts b/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/merge-mdb.ts index a8ed8b290..198d4a99e 100644 --- a/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/merge-mdb.ts +++ b/typescript/seeds-scripts/rerunners/iidx/iidx-mdb-parse/merge-mdb.ts @@ -21,9 +21,7 @@ import { import { ParseIIDXData } from "./convert"; if (require.main !== module) { - throw new Error( - `This is a script. It should be ran directly from the command line with ts-node.`, - ); + throw new Error(`This is a script. It should be ran directly from the command line with bun.`); } const program = new Command(); diff --git a/typescript/seeds-scripts/rerunners/maimaidx/README.md b/typescript/seeds-scripts/rerunners/maimaidx/README.md index a67d34f93..61babd0d3 100644 --- a/typescript/seeds-scripts/rerunners/maimaidx/README.md +++ b/typescript/seeds-scripts/rerunners/maimaidx/README.md @@ -18,7 +18,7 @@ This step only needs to be done once. 2. Navigate to `seeds/scripts/rerunners/maimaidx` and run the `merge-options.ts` script: ```shell -ts-node merge-options.ts --version --input /path/to/maimai/App/Package/Sinmai_Data/StreamingAssets /path/to/maimai/Option +bun merge-options.ts --version --input /path/to/maimai/App/Package/Sinmai_Data/StreamingAssets /path/to/maimai/Option ``` 3. Check the logs to see if the script changed anything unexpected, and fix if it happens. @@ -36,7 +36,7 @@ to adjust the constants for the version you're adding. 3. Deactivate old tables using `seeds/scripts/rerunners/toggle-table-inactive.js`: ``` -node toggle-table-inactive.js -t maimaidx-Single--levels +bun toggle-table-inactive.js -t maimaidx-Single--levels ``` Keep tables for the current and last (aka n-1) versions. diff --git a/typescript/seeds-scripts/rerunners/maimaidx/merge-options.ts b/typescript/seeds-scripts/rerunners/maimaidx/merge-options.ts index 630730d52..ebc688584 100644 --- a/typescript/seeds-scripts/rerunners/maimaidx/merge-options.ts +++ b/typescript/seeds-scripts/rerunners/maimaidx/merge-options.ts @@ -102,9 +102,7 @@ function calculateLevelNum(data: Pick) { } if (require.main !== module) { - throw new Error( - `This is a script. It should be ran directly from the command line with ts-node.`, - ); + throw new Error(`This is a script. It should be ran directly from the command line with bun.`); } const options = new Command() diff --git a/typescript/seeds-scripts/rerunners/ongeki/README.md b/typescript/seeds-scripts/rerunners/ongeki/README.md index 3b29a3eb6..aedda7d74 100644 --- a/typescript/seeds-scripts/rerunners/ongeki/README.md +++ b/typescript/seeds-scripts/rerunners/ongeki/README.md @@ -1,13 +1,13 @@ 1. Have a working Tachi Docker container. 2. Parse music data 1. Generate `music.json` (you should know how) without omnimixes or custom charts, then put it in `seeds/scripts/rerunners/ongeki/ongeki`. - 2. In the container, in `seeds/scripts/rerunners/ongeki`, run `npx ts-node parse-music-data.ts`. + 2. In the container, in `seeds/scripts/rerunners/ongeki`, run `bun parse-music-data.ts`. 3. Check if `parse-music-data-output.json` doesn't list anything unexpected, then delete it. 3. Parse song durations 1. Download `vgmstream-cli` and put it somewhere in the container. - 2. Run `npx ts-node parse-song-duration.ts -v -d -g ongeki`. + 2. Run `bun parse-song-duration.ts -v -d -g ongeki`. 4. Scrape sdvx.in links (optional) - 1. Run `npx ts-node scrape-sdvx-in.ts`. + 1. Run `bun scrape-sdvx-in.ts`. 2. Fix any missing entries manually in `seeds/collections/charts-ongeki.json` (refer to `songs-ongeki.json` for `songID`s). 5. Manually add search terms in `songs-ongeki.json`, especially romanizations (optional) 6. In the root project folder, run `just seeds test`. diff --git a/typescript/seeds-scripts/rerunners/ongeki/parse-music-data.ts b/typescript/seeds-scripts/rerunners/ongeki/parse-music-data.ts index 40afec7dd..0769c10ba 100644 --- a/typescript/seeds-scripts/rerunners/ongeki/parse-music-data.ts +++ b/typescript/seeds-scripts/rerunners/ongeki/parse-music-data.ts @@ -1,4 +1,4 @@ -// usage: cd rerunners && npx ts-node ongeki/parse-music-data.ts +// usage: cd typescript/seeds-scripts/rerunners && bun ongeki/parse-music-data.ts import fs from "fs/promises"; import { type ChartDocument, type Difficulties, type SongDocument } from "tachi-common"; diff --git a/typescript/seeds-webui/package.json b/typescript/seeds-webui/package.json index c54badb11..8e90dddb9 100644 --- a/typescript/seeds-webui/package.json +++ b/typescript/seeds-webui/package.json @@ -12,7 +12,7 @@ "lint": "eslint .", "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "dependencies": { "@codemirror/lang-sql": "catalog:", diff --git a/typescript/sieglinde/README.md b/typescript/sieglinde/README.md index cec3eda88..26321cfe6 100644 --- a/typescript/sieglinde/README.md +++ b/typescript/sieglinde/README.md @@ -20,4 +20,4 @@ pnpm calc-v1 ## Synchronising with seeds -Run `ts-node seeds/scripts/rerunners/bms-pms/apply-sieglinde`. \ No newline at end of file +Run `bun typescript/seeds-scripts/rerunners/bms-pms/apply-sieglinde.js` from the repository root (or run the same path after `cd` to the repo). \ No newline at end of file diff --git a/typescript/sieglinde/package.json b/typescript/sieglinde/package.json index 513eb2b26..067298ccb 100644 --- a/typescript/sieglinde/package.json +++ b/typescript/sieglinde/package.json @@ -11,7 +11,7 @@ "lint-fix": "eslint . --fix", "typecheck": "tsgo --noEmit", "test": "vitest", - "bench": "node -e \"process.exit(0)\"" + "bench": "bun -e \"process.exit(0)\"" }, "author": "zk", "license": "MIT",