Unverified Commit 4c38c89c authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Use unfiltered SWC packages when updating optional (#30571)

parent 450552dd
...@@ -16,15 +16,14 @@ const cwd = process.cwd() ...@@ -16,15 +16,14 @@ const cwd = process.cwd()
// Copy binaries to package folders, update version, and publish // Copy binaries to package folders, update version, and publish
let nativePackagesDir = path.join(cwd, 'packages/next/build/swc/npm') let nativePackagesDir = path.join(cwd, 'packages/next/build/swc/npm')
let platforms = (await readdir(nativePackagesDir)).filter( let platforms = await readdir(nativePackagesDir)
(name) => !name.startsWith('.') const filteredPlatforms = platforms.filter((name) => !name.startsWith('.'))
)
const publishedPkgs = new Set() const publishedPkgs = new Set()
// TODO: update to latest version where all pacakges were // TODO: update to latest version where all pacakges were
// successfully published // successfully published
const fallbackVersion = `12.0.1` const fallbackVersion = `12.0.1`
for (let platform of platforms) { for (let platform of filteredPlatforms) {
try { try {
let binaryName = `next-swc.${platform}.node` let binaryName = `next-swc.${platform}.node`
await copy( await copy(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment