From fb7c59af2d95cd35350724bb3c36db6931ca4b24 Mon Sep 17 00:00:00 2001 From: Daniel Del Core Date: Mon, 20 Jun 2022 16:20:19 +1000 Subject: [PATCH] Output codemod deps to nested node_modules dir --- .changeset/yellow-snails-exercise.md | 5 +++++ packages/cli/src/main.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/yellow-snails-exercise.md diff --git a/.changeset/yellow-snails-exercise.md b/.changeset/yellow-snails-exercise.md new file mode 100644 index 000000000..181aba5b1 --- /dev/null +++ b/.changeset/yellow-snails-exercise.md @@ -0,0 +1,5 @@ +--- +'@codeshift/cli': patch +--- + +dependencies installed by the CLI will now be output to a nested node_modules dir instead of .plugin_packages diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.ts index a8adff81f..4547e6f33 100644 --- a/packages/cli/src/main.ts +++ b/packages/cli/src/main.ts @@ -16,7 +16,7 @@ import { getTransformPrompt } from './prompt'; export default async function main(paths: string[], flags: Flags) { const packageManager = new PluginManager({ - pluginsPath: path.join(__dirname, '.plugin_packages'), + pluginsPath: path.join(__dirname, 'node_modules'), }); let transforms: string[] = [];