Skip to content

Commit 0ac86d2

Browse files
authored
Merge branch 'main' into bwsy/fix/suspense
2 parents d3d3d96 + 650f5c2 commit 0ac86d2

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

rollup.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ function createConfig(format, output, plugins = []) {
102102
const isServerRenderer = name === 'server-renderer'
103103
const isNodeBuild = format === 'cjs'
104104
const isGlobalBuild = /global/.test(format)
105-
const isCompatPackage = pkg.name === '@vue/compat'
105+
const isCompatPackage =
106+
pkg.name === '@vue/compat' || pkg.name === '@vue/compat-canary'
106107
const isCompatBuild = !!packageOptions.compat
107108
const isBrowserBuild =
108109
(isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) &&
@@ -240,7 +241,10 @@ function createConfig(format, output, plugins = []) {
240241
// we are bundling forked consolidate.js in compiler-sfc which dynamically
241242
// requires a ton of template engines which should be ignored.
242243
let cjsIgnores = []
243-
if (pkg.name === '@vue/compiler-sfc') {
244+
if (
245+
pkg.name === '@vue/compiler-sfc' ||
246+
pkg.name === '@vue/compiler-sfc-canary'
247+
) {
244248
cjsIgnores = [
245249
...Object.keys(consolidatePkg.devDependencies),
246250
'vm',

scripts/release.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,21 @@ async function main() {
9595
['view', `${pkgName}@~${canaryVersion}`, 'version', '--json'],
9696
{ stdio: 'pipe' }
9797
)
98-
const versions = JSON.parse(stdout)
98+
let versions = JSON.parse(stdout)
99+
versions = Array.isArray(versions) ? versions : [versions]
99100
const latestSameDayPatch = /** @type {string} */ (
100101
semver.maxSatisfying(versions, `~${canaryVersion}`)
101102
)
102103
canaryVersion = /** @type {string} */ (
103104
semver.inc(latestSameDayPatch, 'patch')
104105
)
105-
} catch (e) {}
106+
} catch (e) {
107+
if (/E404/.test(e.message)) {
108+
// the first patch version on that day
109+
} else {
110+
throw e
111+
}
112+
}
106113

107114
targetVersion = canaryVersion
108115
}

0 commit comments

Comments
 (0)