Use a combined cache derivation by default
This commit is contained in:
+8
-2
@@ -1,7 +1,7 @@
|
||||
import { Hooks, Plugin, SettingsType } from "@yarnpkg/core";
|
||||
import { PortablePath } from "@yarnpkg/fslib";
|
||||
|
||||
import FetchOneCommand from "./FetchOneCommand";
|
||||
import FetchCommand from "./FetchCommand";
|
||||
import InjectBuildCommand from "./InjectBuildCommand";
|
||||
import InstallBinCommand from "./InstallBinCommand";
|
||||
import generate from "./generate";
|
||||
@@ -12,13 +12,14 @@ declare module "@yarnpkg/core" {
|
||||
nixExprPath: PortablePath;
|
||||
generateDefaultNix: boolean;
|
||||
enableNixPreload: boolean;
|
||||
individualNixPackaging: boolean;
|
||||
isolatedNixBuilds: string[];
|
||||
installNixBinariesForDependencies: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
const plugin: Plugin<Hooks> = {
|
||||
commands: [FetchOneCommand, InjectBuildCommand, InstallBinCommand],
|
||||
commands: [FetchCommand, InjectBuildCommand, InstallBinCommand],
|
||||
hooks: {
|
||||
afterAllInstalled: async (project, opts) => {
|
||||
if (
|
||||
@@ -50,6 +51,11 @@ const plugin: Plugin<Hooks> = {
|
||||
type: SettingsType.BOOLEAN,
|
||||
default: true,
|
||||
},
|
||||
individualNixPackaging: {
|
||||
description: `If true, generate one Nix derivation per package. If false, use a single derivation for the entire cache folder.`,
|
||||
type: SettingsType.BOOLEAN,
|
||||
default: false,
|
||||
},
|
||||
isolatedNixBuilds: {
|
||||
description: `Dependencies with a build step that can be built in an isolated derivation`,
|
||||
type: SettingsType.STRING,
|
||||
|
||||
Reference in New Issue
Block a user