Fix bin entry for npm publish, v0.1.5
This commit is contained in:
Executable
+9
@@ -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);
|
||||||
+15
-4
@@ -1,11 +1,22 @@
|
|||||||
{
|
{
|
||||||
"name": "saiden-config",
|
"name": "@madcat-os/saiden-config",
|
||||||
"version": "0.1.0",
|
"version": "0.1.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"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": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest"
|
"@types/bun": "latest"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user