fix npm install

This commit is contained in:
nebulatgs 2023-03-04 09:25:40 -05:00
parent ce001c1b6d
commit 894c440470
No known key found for this signature in database
GPG key ID: 10F57782EEBBEC9A
3 changed files with 17 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
/target
node_modules
bin
bin/railway

16
bin/railway.js Normal file
View 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);
}

View file

@ -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