From 328081e4d01f245a531d13e9d2a7bdb12ef17f5b Mon Sep 17 00:00:00 2001 From: Pavel Fedorin Date: Fri, 20 Oct 2023 23:44:49 +0300 Subject: [PATCH] fix(vue): move vue-tsc in devDependencies --- .../vue/src/generators/init/__snapshots__/init.spec.ts.snap | 2 +- packages/vue/src/generators/init/init.ts | 2 +- .../src/generators/library/__snapshots__/library.spec.ts.snap | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vue/src/generators/init/__snapshots__/init.spec.ts.snap b/packages/vue/src/generators/init/__snapshots__/init.spec.ts.snap index 3cddc31b16801..ad677c244e8f5 100644 --- a/packages/vue/src/generators/init/__snapshots__/init.spec.ts.snap +++ b/packages/vue/src/generators/init/__snapshots__/init.spec.ts.snap @@ -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", @@ -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", } diff --git a/packages/vue/src/generators/init/init.ts b/packages/vue/src/generators/init/init.ts index 4af08d8cf204a..f33112a249011 100755 --- a/packages/vue/src/generators/init/init.ts +++ b/packages/vue/src/generators/init/init.ts @@ -25,7 +25,6 @@ function updateDependencies(host: Tree, schema: InitSchema) { let dependencies: { [key: string]: string } = { vue: vueVersion, - 'vue-tsc': vueTscVersion, }; let devDependencies: { [key: string]: string } = { @@ -33,6 +32,7 @@ function updateDependencies(host: Tree, schema: InitSchema) { '@vue/tsconfig': vueTsconfigVersion, '@vue/test-utils': vueTestUtilsVersion, '@vitejs/plugin-vue': vitePluginVueVersion, + 'vue-tsc': vueTscVersion, }; if (schema.routing) { diff --git a/packages/vue/src/generators/library/__snapshots__/library.spec.ts.snap b/packages/vue/src/generators/library/__snapshots__/library.spec.ts.snap index 276041b18a763..10935e3927fe4 100644 --- a/packages/vue/src/generators/library/__snapshots__/library.spec.ts.snap +++ b/packages/vue/src/generators/library/__snapshots__/library.spec.ts.snap @@ -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", @@ -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", } @@ -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", @@ -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", }