Is there a way to pass an extra flag to the `install` command?
Is there a way in
Nixpacks
to pass an extra flag? For example, I would like to skip the postInstall
when running pnpm install
and add the --ignore-scripts
flag.
Is there a way to do that in railway.toml
?17 Replies
Project ID:
660f85e6-f8fa-467e-8c57-d93f8eb3304e
660f85e6-f8fa-467e-8c57-d93f8eb3304e
to give me a better idea of what currently happens show me the table at the top of the build logs
What happens is, in a monorepo, a build will fail in a situation like this:
Project A
- ENV: a,b
Project B
- ENV: c
The
postinstall
script will run all the time for every project in the monorepo. If the postinstall script expect env a,b
then Project B will always fail during the postinstall
phase.I'd like to add after
--frozen-lockfile
the flag --ignore-scripts
yeah we can do that
how?
not at my computer at the moment unfortunately
can you provide me with your current railway.json file, if you dont have one in your project you can find it in the details tab of your latest deployment
This is the toml file at the moment:
did you have that as a file in your project
@Ryan the Temp
yes
well i only know how to do this with railway.json, so i hope you dont have an attachment to toml
I can try json
im doing that for you
delete your railway.toml file and use this railway.json file instead
oh ok, I see. thx I'll try that
yeah just check the build table to make sure the command is what you want and if everything is in the right order
think it goes without saying, but the railway.json i provided was untested by me
let me know how it goes