Skip to content

Commit

Permalink
fix(vue): move vue-tsc in devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsonicus committed Oct 20, 2023
1 parent e20860d commit 328081e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ exports[`init should add vue dependencies 1`] = `
"dependencies": {
"vue": "^3.3.4",
"vue-router": "^4.2.4",
"vue-tsc": "^1.8.8",
},
"devDependencies": {
"@nx/js": "0.0.1",
Expand All @@ -17,6 +16,7 @@ exports[`init should add vue dependencies 1`] = `
"@vue/tsconfig": "^0.4.0",
"prettier": "^2.6.2",
"typescript": "~5.1.3",
"vue-tsc": "^1.8.8",
},
"name": "@proj/source",
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function updateDependencies(host: Tree, schema: InitSchema) {

let dependencies: { [key: string]: string } = {
vue: vueVersion,
'vue-tsc': vueTscVersion,
};

let devDependencies: { [key: string]: string } = {
'@nx/vue': nxVersion,
'@vue/tsconfig': vueTsconfigVersion,
'@vue/test-utils': vueTestUtilsVersion,
'@vitejs/plugin-vue': vitePluginVueVersion,
'vue-tsc': vueTscVersion,
};

if (schema.routing) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ exports[`lib should add correct jest.config.ts and dependencies to package.json
"dependencies": {
"tslib": "^2.3.0",
"vue": "^3.3.4",
"vue-tsc": "^1.8.8",
},
"devDependencies": {
"@nx/cypress": "0.0.1",
Expand Down Expand Up @@ -65,6 +64,7 @@ exports[`lib should add correct jest.config.ts and dependencies to package.json
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.1.3",
"vue-tsc": "^1.8.8",
},
"name": "@proj/source",
}
Expand Down Expand Up @@ -232,7 +232,6 @@ exports[`lib should add vue, vite and vitest to package.json 1`] = `
{
"dependencies": {
"vue": "^3.3.4",
"vue-tsc": "^1.8.8",
},
"devDependencies": {
"@nx/cypress": "0.0.1",
Expand Down Expand Up @@ -261,6 +260,7 @@ exports[`lib should add vue, vite and vitest to package.json 1`] = `
"typescript": "~5.1.3",
"vite": "~4.3.9",
"vitest": "~0.32.0",
"vue-tsc": "^1.8.8",
},
"name": "@proj/source",
}
Expand Down

0 comments on commit 328081e

Please sign in to comment.