mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
fix npm install
This commit is contained in:
parent
ce001c1b6d
commit
894c440470
3 changed files with 17 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,3 @@
|
|||
/target
|
||||
node_modules
|
||||
bin
|
||||
bin/railway
|
||||
16
bin/railway.js
Normal file
16
bin/railway.js
Normal file
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue