diff --git a/bin/saiden-config.js b/bin/saiden-config.js new file mode 100755 index 0000000..f49bbef --- /dev/null +++ b/bin/saiden-config.js @@ -0,0 +1,9 @@ +#!/usr/bin/env node +import { spawnSync } from "node:child_process"; +import { fileURLToPath } from "node:url"; +import { resolve, dirname } from "node:path"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const cli = resolve(__dirname, "..", "src", "cli.ts"); +const result = spawnSync("bun", ["run", cli, ...process.argv.slice(2)], { stdio: "inherit" }); +process.exit(result.status ?? 1); diff --git a/package.json b/package.json index 6d27867..a27d07c 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,22 @@ { - "name": "saiden-config", - "version": "0.1.0", + "name": "@madcat-os/saiden-config", + "version": "0.1.5", "type": "module", "bin": { - "saiden-config": "./src/cli.ts" + "saiden-config": "bin/saiden-config.js" + }, + "files": [ + "src/", + "bin/" + ], + "repository": { + "type": "git", + "url": "git+ssh://git@git.saiden.dev:infra/saiden-config.git" + }, + "license": "MIT", + "publishConfig": { + "registry": "https://npm.saiden.dev/api/packages/madcat-os/npm/" }, - "files": ["src/"], "devDependencies": { "@types/bun": "latest" }