From 31d1484b3d9d6c1098fbf274fd143745d02eba5c Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Mon, 2 Dec 2024 17:47:43 +0800 Subject: [PATCH] test: pin TS version and update snapshot --- .../tsc/tests/__snapshots__/dts.spec.ts.snap | 16 ++++------------ pnpm-lock.yaml | 11 +++++++++-- test-workspace/package.json | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/tsc/tests/__snapshots__/dts.spec.ts.snap b/packages/tsc/tests/__snapshots__/dts.spec.ts.snap index ba17f1516c..b6d0bb7f7c 100644 --- a/packages/tsc/tests/__snapshots__/dts.spec.ts.snap +++ b/packages/tsc/tests/__snapshots__/dts.spec.ts.snap @@ -17,9 +17,7 @@ declare const _default: (__VLS_props: NonNullable) => import("vue").VNode & { +}>) => import("vue").VNode & { __ctx?: Awaited; }; export default _default; @@ -76,9 +74,7 @@ exports[`vue-tsc-dts > Input: events/component-generic.vue, Output: events/compo attrs: any; slots: {}; emit: (evt: "foo", value: string) => void; -}>) => import("vue").VNode & { +}>) => import("vue").VNode & { __ctx?: Awaited; }; export default _default; @@ -112,9 +108,7 @@ exports[`vue-tsc-dts > Input: generic/component.vue, Output: generic/component.v }): any; }; emit: ((e: "bar", data: number) => void) & ((evt: "update:title", value: string) => void); -}>) => import("vue").VNode & { +}>) => import("vue").VNode & { __ctx?: Awaited; }; export default _default; @@ -148,9 +142,7 @@ exports[`vue-tsc-dts > Input: generic/custom-extension-component.cext, Output: g }): any; }; emit: ((e: "bar", data: number) => void) & ((evt: "update:title", value: string) => void); -}>) => import("vue").VNode & { +}>) => import("vue").VNode & { __ctx?: Awaited; }; export default _default; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b3800f60c..f73e9b1fbe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -305,8 +305,8 @@ importers: specifier: npm:typescript@5.7.0-dev.20240926 version: typescript@5.7.0-dev.20240926 typescript-stable: - specifier: npm:typescript@latest - version: typescript@5.7.2 + specifier: npm:typescript@~5.6.0 + version: typescript@5.6.3 vue: specifier: ^3.5.0 version: 3.5.13(typescript@5.7.2) @@ -2843,6 +2843,11 @@ packages: typescript-auto-import-cache@0.3.5: resolution: {integrity: sha512-fAIveQKsoYj55CozUiBoj4b/7WpN0i4o74wiGY5JVUEoD0XiqDk1tJqTEjgzL2/AizKQrXxyRosSebyDzBZKjw==} + typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} + engines: {node: '>=14.17'} + hasBin: true + typescript@5.7.0-dev.20240926: resolution: {integrity: sha512-urjGXo3L23oEcK2thBaZ71DdA6My+NeeTuNIUJfYszrplyk//HIgV1yl40S+eQcya4vwmH14dhDDDH4vl4dlng==} engines: {node: '>=14.17'} @@ -6070,6 +6075,8 @@ snapshots: dependencies: semver: 7.6.3 + typescript@5.6.3: {} + typescript@5.7.0-dev.20240926: {} typescript@5.7.2: {} diff --git a/test-workspace/package.json b/test-workspace/package.json index e800113bd8..cc9f2f00e4 100644 --- a/test-workspace/package.json +++ b/test-workspace/package.json @@ -3,7 +3,7 @@ "version": "2.1.10", "devDependencies": { "typescript-next": "npm:typescript@5.7.0-dev.20240926", - "typescript-stable": "npm:typescript@latest", + "typescript-stable": "npm:typescript@~5.6.0", "vue": "^3.5.0", "vue-component-type-helpers": "2.1.10", "vue2": "npm:vue@2.7.16",