From 4ded7eea86302f11a1e769df253a4424ab8e6194 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sat, 15 Aug 2026 21:52:47 -0400 Subject: [PATCH] Scaffold tools/build package and root Buildfile project wiring Co-Authored-By: Claude Fable 5 --- .gitignore | 2 +- package.json | 1 + pnpm-lock.yaml | 21 +++++++++++++++++++++ tools/build/package.json | 14 ++++++++++++++ tools/build/tsconfig.json | 3 +++ tsconfig-workspace.json | 2 ++ tsconfig.json | 7 +++++++ 7 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 tools/build/package.json create mode 100644 tools/build/tsconfig.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index b3c2fa85..5eb4e277 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build/ +/build/ .tup node_modules pnpm-debug.log diff --git a/package.json b/package.json index 7c1650c1..70aa6824 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "type": "module", "scripts": { "build": "tsc --build tsconfig-workspace.json" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b02f6bb..a93935d6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,27 @@ importers: specifier: ^24.10.7 version: 24.13.3 + tools/build: + dependencies: + '@types/better-sqlite3': + specifier: ^7.6.13 + version: 7.6.13 + '@types/debug': + specifier: ^4.1.5 + version: 4.1.13 + '@types/node': + specifier: ^24.10.7 + version: 24.13.3 + better-sqlite3: + specifier: ^12.4.1 + version: 12.11.1 + commander: + specifier: ^5.1.0 + version: 5.1.0 + debug: + specifier: ^4.1.1 + version: 4.4.3 + tools/deploy: dependencies: '@smogon/sprite-data': diff --git a/tools/build/package.json b/tools/build/package.json new file mode 100644 index 00000000..bc8e929b --- /dev/null +++ b/tools/build/package.json @@ -0,0 +1,14 @@ +{ + "dependencies": { + "@types/better-sqlite3": "^7.6.13", + "@types/debug": "^4.1.5", + "@types/node": "^24.10.7", + "better-sqlite3": "^12.4.1", + "commander": "^5.1.0", + "debug": "^4.1.1" + }, + "scripts": { + "test": "node --test test/*.test.ts" + }, + "type": "module" +} diff --git a/tools/build/tsconfig.json b/tools/build/tsconfig.json new file mode 100644 index 00000000..3e88c180 --- /dev/null +++ b/tools/build/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tsconfig-base" +} diff --git a/tsconfig-workspace.json b/tsconfig-workspace.json index 6be29924..d6f94958 100644 --- a/tsconfig-workspace.json +++ b/tsconfig-workspace.json @@ -1,6 +1,8 @@ { "files": [], "references": [ + {"path": "./tsconfig.json"}, + {"path": "tools/build"}, {"path": "tools/tupctime"}, {"path": "tools/deploy"}, {"path": "tools/sheet"}, diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..e9de82ef --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig-base", + "files": ["Buildfile.ts"], + "references": [ + {"path": "tools/build"} + ] +}