Isolated builds of dependencies

This commit is contained in:
Stéphan Kochen
2021-04-30 11:39:05 +02:00
parent 0f378786d6
commit 153254f62a
14 changed files with 578 additions and 133 deletions
+12 -4
View File
@@ -1,10 +1,12 @@
import FetchOneCommand from "./FetchOneCommand";
import InstallBinCommand from "./InstallBinCommand";
import generate from "./generate";
import { Hooks, Plugin, SettingsType } from "@yarnpkg/core";
import FetchOneCommand from "./FetchOneCommand";
import InjectBuildCommand from "./InjectBuildCommand";
import InstallBinCommand from "./InstallBinCommand";
import generate from "./generate";
const plugin: Plugin<Hooks> = {
commands: [FetchOneCommand, InstallBinCommand],
commands: [FetchOneCommand, InjectBuildCommand, InstallBinCommand],
hooks: {
afterAllInstalled: async (project, opts) => {
if (
@@ -36,6 +38,12 @@ const plugin: Plugin<Hooks> = {
type: SettingsType.BOOLEAN,
default: true,
},
isolatedNixBuilds: {
description: `Dependencies with a build step that can be built in an isolated derivation`,
type: SettingsType.STRING,
default: [],
isArray: true,
},
},
};