diff --git a/.gitignore b/.gitignore index af8a838..6d084a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /target node_modules -bin \ No newline at end of file +bin/railway \ No newline at end of file diff --git a/bin/railway.js b/bin/railway.js new file mode 100644 index 0000000..2f0e563 --- /dev/null +++ b/bin/railway.js @@ -0,0 +1,16 @@ +#!/usr/bin/env node +import { execFileSync } from "child_process"; +import path from "path"; +import { exit } from "process"; +import { fileURLToPath } from "url"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +try { + execFileSync(path.resolve(`${__dirname}/railway`), process.argv.slice(2), { + stdio: "inherit", + }); +} catch (e) { + exit(1); +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c11b4f4..71ccf42 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2,13 +2,11 @@ lockfileVersion: 5.4 specifiers: '@napi-rs/triples': ^1.1.0 - '@railway/cli': 'link:' node-fetch: ^3.1.0 tar: ^6.1.11 dependencies: '@napi-rs/triples': 1.1.0 - '@railway/cli': 'link:' node-fetch: 3.3.0 tar: 6.1.13