build: pin @vue/compiler-sfc for the cli-plugin-typescript shim
The shim's bare require expects the vue-3 parse shape but declares no dependency, so it resolved through pnpm's hidden hoist — which could pick vue 2.7's legacy-shaped 2.7.16 (CI) or 3.5.41 (local) depending on layout. packageExtensions makes it deterministic.
This commit is contained in:
parent
7484d8eef0
commit
87d81d14d0
2 changed files with 13 additions and 0 deletions
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
|
|
@ -4,6 +4,8 @@ settings:
|
|||
autoInstallPeers: false
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
packageExtensionsChecksum: sha256-00qAjbZKW5ZUQ9vzlY/TpeXMvkYJise4VKJxePABdVI=
|
||||
|
||||
importers:
|
||||
.:
|
||||
devDependencies:
|
||||
|
|
@ -12010,6 +12012,7 @@ snapshots:
|
|||
'@types/webpack-env': 1.18.8
|
||||
'@vue/cli-service': 4.4.6(@vue/compiler-sfc@3.5.41)(bluebird@3.7.2)(lodash@4.18.1)(prettier@2.8.8)(sass-loader@8.0.2(sass@1.102.0)(webpack@4.47.0(supports-color@7.2.0)))(supports-color@7.2.0)(typescript@4.9.5)(vue-template-compiler@2.7.16)
|
||||
'@vue/cli-shared-utils': 4.5.19
|
||||
'@vue/compiler-sfc': 3.5.41
|
||||
babel-loader: 8.4.1(@babel/core@7.29.7(supports-color@7.2.0))(webpack@4.47.0(supports-color@7.2.0))
|
||||
cache-loader: 4.1.0(webpack@4.47.0(supports-color@7.2.0))
|
||||
fork-ts-checker-webpack-plugin: 3.1.1(eslint@7.32.0(supports-color@6.1.0))(supports-color@7.2.0)(typescript@4.9.5)(vue-template-compiler@2.7.16)(webpack@4.47.0(supports-color@7.2.0))
|
||||
|
|
|
|||
|
|
@ -15,3 +15,13 @@ allowBuilds:
|
|||
# (vue 3) peer and the cli-plugin-typescript shim crashes the viewer build (CI-only,
|
||||
# fresh installs). vue-template-compiler is the correct vue2 path.
|
||||
autoInstallPeers: false
|
||||
|
||||
# The cli-plugin-typescript fork-ts-checker shim does a bare
|
||||
# require('@vue/compiler-sfc') expecting the vue-3 parse shape ({descriptor}).
|
||||
# It declares no such dependency, so resolution falls back to pnpm's hidden
|
||||
# hoist, where EITHER 3.5.41 (works) or vue 2.7's 2.7.16 (legacy shape,
|
||||
# crashes the build) may win depending on layout. Pin it explicitly.
|
||||
packageExtensions:
|
||||
'@vue/cli-plugin-typescript':
|
||||
dependencies:
|
||||
'@vue/compiler-sfc': ^3.5.41
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue