Unverified Commit 18fc5488 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix publish native including non-packages (#30589)

parent c4ee78f2
...@@ -16,14 +16,16 @@ const cwd = process.cwd() ...@@ -16,14 +16,16 @@ 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) let platforms = (await readdir(nativePackagesDir)).filter(
const filteredPlatforms = platforms.filter((name) => !name.startsWith('.')) (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 filteredPlatforms) { for (let platform of platforms) {
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