Open dzmitry-lahoda opened 1 year ago
Will donate equivalent of 123 USD in crypto for this issue solved.
I tried several NPM solutions hard during several weeks, read all what happened during years.
We do not really have at all a reasonable way to build NPM from real world now.
Is it possible to replace homegrown npm vendor fetch to some third party maintained by npm community?
So I just tested this and the only reason it does not work, is because the dist
files are not specified as files to install in package.json: https://docs.npmjs.com/cli/v9/configuring-npm/package-json?v=true#files
However, we do need to be installing the file specified by the main
field accoridng to that doc, so I'll make a PR that fixes that
This is not an issue that has anything to do with workspaces
Fwiw, you could update the package.json
file to fix that or you could just use a custom installPhase
to work around it (just don't forget to prune)
Omitting the field will make it default to ["*"], which means it will include all files.
is default for files and it works when I set it.
@lilyinstarlight than you for pointing to spec. updated issue to align with spec. actually after NPM will align, nix will build out of box a lot more NPM project without fuss.
so real ultimate support of nix when nix will be extended with NPM fetcher which given all deps have SRI, respects that SRI so no need to do deps hash updates all the time
Describe the bug
I have tried to
buildNpmPackage
of https://github.com/paritytech/zombienet and failed.Steps To Reproduce
Steps to reproduce the behavior:
postBuild
andpostInstall
fromflake-module.nix
nix run
Expected behavior
NPM builder does
Omitting the field will make it default to ["*"], which means it will include all files. i
Screenshots
Additional context
This PR https://github.com/paritytech/zombienet/pull/772
Builds and copies dist files directly.
So it is workaround
Notify maintainers
@yu-re-ka @SuperSandro2000 @winterqt @happysalada @lilyinstarlight
Metadata