From 62e9d367bf6c50b73eaff570f002330fc7ad6e19 Mon Sep 17 00:00:00 2001 From: EatThePooh Date: Wed, 25 Feb 2026 17:20:13 +0700 Subject: [PATCH] janitoring --- README.md | 4 +- flake.nix | 4 +- package-lock.json | 136 ++++++---------------------------------------- package.json | 6 +- src/index.ts | 2 +- 5 files changed, 23 insertions(+), 129 deletions(-) diff --git a/README.md b/README.md index 5bdd801..9355ae2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A minimal CLI template using Stricli and Dax. ## Quick Start ```bash -nix develop # optional: provides Node.js, TypeScript, biome +nix develop # optional: provides Node.js, TypeScript npm install npm run build node dist/index.mjs --help @@ -20,7 +20,7 @@ nix shell . --command name-placeholder --help # provides CLI in PATH ## Development -Uses TypeScript and Biome for checks: +Uses Biome for checks (installed via npm): ```bash npm run check diff --git a/flake.nix b/flake.nix index 63adb5b..5024aa2 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,4 @@ { - description = "name-placeholder"; - inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; @@ -21,7 +19,7 @@ pname = packageJson.name; version = packageJson.version; src = ./.; - npmDepsHash = "sha256-EvM5ZyNQEW8RYFCfI7Bkju1qL+1y8nleXPAX3IKce78="; + npmDepsHash = "sha256-qZIr0vUhSx/B64kNRAwLPuOTSEBs5wtbEn9rRUAXtaA="; npmBuildScript = "build"; }; in diff --git a/package-lock.json b/package-lock.json index 97cebc3..cfc10d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.1.0", "dependencies": { "@stricli/core": "^1.2.5", - "dax": "^0.45.0" + "dax": "^0.45.0", + "typescript": "^5.9.3" }, "bin": { "name-placeholder": "dist/index.mjs" @@ -17,7 +18,6 @@ "devDependencies": { "@biomejs/biome": "^2.4.3", "@types/node": "^25.2.3", - "@typescript/native-preview": "^7.0.0-dev.20260220.1", "tsdown": "^0.20.3" } }, @@ -650,124 +650,6 @@ "undici-types": "~7.18.0" } }, - "node_modules/@typescript/native-preview": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview/-/native-preview-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-trYXlG98/C7Q7pqnPrKo+ksXrWqWVMncCy2x0VftD2llfL99Z//g2mpB9TmzWeKgb4d1659ESvxTowCGnzMccw==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "bin": { - "tsgo": "bin/tsgo.js" - }, - "optionalDependencies": { - "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260220.1", - "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260220.1", - "@typescript/native-preview-linux-arm": "7.0.0-dev.20260220.1", - "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260220.1", - "@typescript/native-preview-linux-x64": "7.0.0-dev.20260220.1", - "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260220.1", - "@typescript/native-preview-win32-x64": "7.0.0-dev.20260220.1" - } - }, - "node_modules/@typescript/native-preview-darwin-arm64": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-VZQHVaLYTpa3wfCLcFD5cfnegr4iDtzBxV6yh3tys+HYePi4TXuAqct/dmziW0cpCo/UQ2KqAPGxwVO3YMDYJA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@typescript/native-preview-darwin-x64": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-ieGtyz904rlme8YWauDpCqGbnOQQ5dzUyRKU25I7MNIaoZFf0vK5gMh3SLjHC7ayWxjrCa2ezH4ka8UmyWQcPg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@typescript/native-preview-linux-arm": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-wMA63N6XLAkO0Ibq1Qz2zkQHF6oLynYh5+q1YayzWxp1FOas0oJUdNgVbiWeisAT4IEI9SmYtVwJJNTm/cwrwg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@typescript/native-preview-linux-arm64": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-nlOOABSQUe6ix/KOsZS3ALZ/sg9rhtp6SKtQnXO8X4+2XUlwVYS6nIrAQ5jG4+OsCvcESttNeHhBw817uNrsuA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@typescript/native-preview-linux-x64": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-W7R/5ct/BGuPAmJuKFU0ZuLU2nzLA26XfoaoUHHoTLYRMMuY3LBv+7zKSUTlSGjayeWQ5KtDrfrY72LarWAXkQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@typescript/native-preview-win32-arm64": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-FNXTr2lS1QLUB05jWjkBVwrDierNuxKduQq9ayloENJrsC8GfG1sXkfy8R021+ozP/D1LI/CFUn3hkB2vPXTsQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@typescript/native-preview-win32-x64": { - "version": "7.0.0-dev.20260220.1", - "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20260220.1.tgz", - "integrity": "sha512-byHRyf4dOuKOADrs43tWyPhmAgqk+XrA/XOsJnGsxUKxPwots+gf9x5kg/IxTbB3QjPsVe/V9QdMl3//sUTCmQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/ansis": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.2.0.tgz", @@ -1210,6 +1092,20 @@ "license": "0BSD", "optional": true }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/unconfig-core": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/unconfig-core/-/unconfig-core-7.5.0.tgz", diff --git a/package.json b/package.json index 5b4a1c6..db2ab74 100644 --- a/package.json +++ b/package.json @@ -7,16 +7,16 @@ }, "dependencies": { "@stricli/core": "^1.2.5", - "dax": "^0.45.0" + "dax": "^0.45.0", + "typescript": "^5.9.3" }, "devDependencies": { "@biomejs/biome": "^2.4.3", "@types/node": "^25.2.3", - "@typescript/native-preview": "^7.0.0-dev.20260220.1", "tsdown": "^0.20.3" }, "scripts": { "build": "npx tsdown src/index.ts --format esm --clean", - "check": "npx tsgo --project tsconfig.json --types node --noEmit && npx @biomejs/biome check ." + "check": "npx tsc --noEmit && npx @biomejs/biome check ." } } diff --git a/src/index.ts b/src/index.ts index 94d805a..2b3e7bb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,5 @@ #!/usr/bin/env node -import packageJson from "../package.json" with { type: "json" }; import { buildApplication, buildCommand, @@ -9,6 +8,7 @@ import { run, } from "@stricli/core"; import { $, CommandBuilder } from "dax"; +import packageJson from "../package.json" with { type: "json" }; $.setPrintCommand(true);