Files
yarn-plugin-nixify-patched/src/index.ts
T
2020-08-25 18:56:49 +02:00

18 lines
476 B
TypeScript

import FetchOneCommand from "./FetchOneCommand";
import InstallBinCommand from "./InstallBinCommand";
import generate from "./generate";
import { Hooks, Plugin } from "@yarnpkg/core";
const plugin: Plugin<Hooks> = {
commands: [FetchOneCommand, InstallBinCommand],
hooks: {
afterAllInstalled: async (project, opts) => {
if (opts.persistProject !== false) {
await generate(project, opts.cache, opts.report);
}
},
},
};
export default plugin;