Unverified Commit a07559ea authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #198950 from SuperSandro2000/yarn2nix-script

parents c1d12de2 95567a12
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ in rec {
    "--offline"
    "--frozen-lockfile"
    "--ignore-engines"
    "--ignore-scripts"
  ];

  mkYarnModules = {
@@ -70,6 +69,7 @@ in rec {
    yarnNix ? mkYarnNix { inherit yarnLock; },
    offlineCache ? importOfflineCache yarnNix,
    yarnFlags ? [ ],
    ignoreScripts ? true,
    pkgConfig ? {},
    preBuild ? "",
    postBuild ? "",
@@ -141,7 +141,7 @@ in rec {

        ${workspaceDependencyLinks}

        yarn install ${lib.escapeShellArgs (defaultYarnFlags ++ yarnFlags)}
        yarn install ${lib.escapeShellArgs (defaultYarnFlags ++ lib.optional ignoreScripts "--ignore-scripts" ++ yarnFlags)}

        ${lib.concatStringsSep "\n" postInstall}

@@ -413,7 +413,7 @@ in rec {
    # we import package.json from the unfiltered source
    packageJSON = ./package.json;

    yarnFlags = defaultYarnFlags ++ ["--production=true"];
    yarnFlags = defaultYarnFlags ++ [ "--ignore-scripts" "--production=true" ];

    nativeBuildInputs = [ pkgs.makeWrapper ];