Skip to content

Commit

Permalink
Use unfiltered SWC packages when updating optional (#30571)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Oct 28, 2021
1 parent 450552d commit 4c38c89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/publish-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ const cwd = process.cwd()

// Copy binaries to package folders, update version, and publish
let nativePackagesDir = path.join(cwd, 'packages/next/build/swc/npm')
let platforms = (await readdir(nativePackagesDir)).filter(
(name) => !name.startsWith('.')
)
let platforms = await readdir(nativePackagesDir)
const filteredPlatforms = platforms.filter((name) => !name.startsWith('.'))
const publishedPkgs = new Set()
// TODO: update to latest version where all pacakges were
// successfully published
const fallbackVersion = `12.0.1`

for (let platform of platforms) {
for (let platform of filteredPlatforms) {
try {
let binaryName = `next-swc.${platform}.node`
await copy(
Expand Down

0 comments on commit 4c38c89

Please sign in to comment.