emscripten: fix node modules

This commit is contained in:
Gabriel Ebner 2020-08-29 11:35:11 +02:00
parent beb0339ce5
commit 3f30e70d29
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
nodeModules = mkYarnModules { nodeModules = mkYarnModules {
name = "emscripten-node-modules-${version}"; name = "emscripten-node-modules-${version}";
inherit pname version; inherit pname version;
# it is vitally important the the package.json has name and version fields
packageJSON = ./package.json; packageJSON = ./package.json;
yarnLock = ./yarn.lock; yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix; yarnNix = ./yarn.nix;

View File

@ -1,4 +1,6 @@
{ {
"name": "emscripten",
"version": "2.0.1",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"ws": "~0.4.28" "ws": "~0.4.28"