Skip to content

Commit

Permalink
fix(react): install tsconfig-paths-webpack-plugin when converting CRA… (
Browse files Browse the repository at this point in the history
#14442)

(cherry picked from commit 91b653e)
  • Loading branch information
jaysoo authored and FrozenPandaz committed Jan 17, 2023
1 parent dfd2916 commit 2bc9e35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/cra-to-nx/src/lib/cra-to-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@ async function reorgnizeWorkspaceStructure(options: NormalizedOptions) {
addDependencies(options.pmc, 'vite', 'vitest', '@vitejs/plugin-react');
removeDependencies(options.pmc, '@nrwl/jest');
} else {
addDependencies(options.pmc, '@craco/craco', 'cross-env', 'react-scripts');
addDependencies(
options.pmc,
'@craco/craco',
'cross-env',
'react-scripts',
'tsconfig-paths-webpack-plugin'
);
}

output.log({ title: '🎉 Done!' });
Expand Down

0 comments on commit 2bc9e35

Please sign in to comment.