Skip to content

Commit c97deca

Browse files
authored
eslint: avoid dev dependencies to reduce closure size (#392126)
2 parents 60b853d + 6ff9fa9 commit c97deca

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkgs/by-name/es/eslint/package.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ buildNpmPackage' rec {
3131
'';
3232

3333
npmDepsHash = "sha256-F3EUANBvniczR7QxNfo1LlksYPxXt16uqJDFzN6u64Y=";
34+
npmInstallFlags = [ "--omit=dev" ];
3435

3536
dontNpmBuild = true;
3637
dontNpmPrune = true;
3738

38-
postFixup = ''
39-
# Remove broken symlink
40-
rm $out/lib/node_modules/eslint/node_modules/eslint-config-eslint
41-
'';
42-
4339
meta = {
4440
description = "Find and fix problems in your JavaScript code";
4541
homepage = "https://eslint.org";

0 commit comments

Comments
 (0)