Skip to content

Commit d223761

Browse files
committed
Switch to importNpmLock / npmConfigHook
1 parent e9626e2 commit d223761

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/start/4.nix-build.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,11 @@ Here's the package definition that builds our JavaScript package:
288288
289289
src = self;
290290
291-
npmDepsHash = "sha256-A/q4C8Ox1InaJ/320+pU9uBUv6zqTKlzzOmJUvzBOnI=";
291+
npmDeps = pkgs.importNpmLock {
292+
npmRoot = ./.;
293+
};
292294
293-
npmBuild = "npm run build";
295+
npmConfigHook = pkgs.importNpmLock.npmConfigHook;
294296
295297
installPhase = ''
296298
mkdir $out

0 commit comments

Comments
 (0)