Skip to content

Commit

Permalink
fix(core): remove unnecessary packages from workspace preset
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Oct 25, 2024
1 parent 96f36d3 commit 924730c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/workspace/src/generators/new/generate-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ function getPresetDependencies({
dependencies: {},
dev: {
'@nx/vue': nxVersion,
'@nx/cypress': e2eTestRunner === 'cypress' ? nxVersion : undefined,
'@nx/playwright':
e2eTestRunner === 'playwright' ? nxVersion : undefined,
'@nx/vite': nxVersion,
},
};
Expand All @@ -149,9 +146,6 @@ function getPresetDependencies({
dependencies: {},
dev: {
'@nx/nuxt': nxVersion,
'@nx/cypress': e2eTestRunner === 'cypress' ? nxVersion : undefined,
'@nx/playwright':
e2eTestRunner === 'playwright' ? nxVersion : undefined,
},
};

Expand All @@ -161,10 +155,6 @@ function getPresetDependencies({
dependencies: {},
dev: {
'@nx/react': nxVersion,
'@nx/cypress': e2eTestRunner !== 'none' ? nxVersion : undefined,
'@nx/jest': bundler !== 'vite' ? nxVersion : undefined,
'@nx/vite': bundler === 'vite' ? nxVersion : undefined,
'@nx/webpack': bundler === 'webpack' ? nxVersion : undefined,
},
};

Expand All @@ -186,7 +176,6 @@ function getPresetDependencies({
dependencies: {},
dev: {
'@nx/node': nxVersion,
'@nx/webpack': bundler === 'webpack' ? nxVersion : undefined,
},
};

Expand Down

0 comments on commit 924730c

Please sign in to comment.