Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unfiltered SWC packages when updating optional #30571

Merged
merged 1 commit into from
Oct 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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