Skip to content

Commit

Permalink
fix(nuxt): init generator should add @nx/vite to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Feb 21, 2024
1 parent abc0cf8 commit 744a92e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/workspace-create/src/create-nx-workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
getSelectedPackageManager,
packageManagerLockFile,
readJson,
runCLI,
runCommand,
runCreateWorkspace,
uniq,
Expand Down
3 changes: 2 additions & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"@nx/devkit": "file:../devkit",
"@nx/js": "file:../js",
"@nx/eslint": "file:../eslint",
"@nx/vue": "file:../vue"
"@nx/vue": "file:../vue",
"@nx/vite": "file:../vite"
},
"peerDependencies": {},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`init should install required dependencies 1`] = `
"dependencies": {},
"devDependencies": {
"@nx/nuxt": "0.0.1",
"@nx/vite": "0.0.1",
"nuxt": "^3.10.0",
},
"name": "@proj/source",
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt/src/generators/init/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function updateDependencies(host: Tree, schema: InitSchema) {
{
'@nx/nuxt': nxVersion,
nuxt: nuxtVersion,
'@nx/vite': nxVersion,
},
undefined,
schema.keepExistingVersions
Expand Down

0 comments on commit 744a92e

Please sign in to comment.