Merge pull request #273084 from l0b0/fix-web-ext

web-ext: Include only production dependencies in build
This commit is contained in:
Robert Schütz 2023-12-10 19:25:15 -08:00 committed by GitHub
commit eec92ca9df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, runCommand
, web-ext
}:
buildNpmPackage rec {
@ -16,6 +18,13 @@ buildNpmPackage rec {
npmDepsHash = "sha256-KPBKUjCxva11w/E+Qhlx+1vikpCL7Hr9MiKenYHEVSU=";
npmBuildFlags = [ "--production" ];
passthru.tests.help = runCommand "${pname}-tests" { } ''
${web-ext}/bin/web-ext --help
touch $out
'';
meta = {
description = "A command line tool to help build, run, and test web extensions";
homepage = "https://github.com/mozilla/web-ext";