npx snowpack build doesn't exit the process on completion #921
-
Hey! It seems like when I try and build a production build with snowpack, it'll the cli functions return but don't process.exit(0) anywhere - effectively hanging my prod builds in CI. I've reproduced this on both Windows 10, and in WSL2-Ubuntu (in case it's some weirdness with platform support). Digging through the code, it appears like This seems to come from your TypeScript source here - https://github.com/pikapkg/snowpack/blob/05fcc8c1ad0700ed99638a89077004a27ca45ea2/snowpack/src/index.ts#L107 and I hope I'm not misunderstanding something and looking like a fool, but I've scoured the docs, and I can't see a way to make this work in a CI scenario. I presume the intention is for non-watching non-HMR uses of snowpack to just do their thing and exit? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
When Node is done running your program, it should just exit. This is how it works normally, at least. some plugin may be hanging, do you define any custom plugins that could be causing this? |
Beta Was this translation helpful? Give feedback.
When Node is done running your program, it should just exit. This is how it works normally, at least.
some plugin may be hanging, do you define any custom plugins that could be causing this?