Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
4c38c89c
Unverified
Commit
4c38c89c
authored
Oct 28, 2021
by
JJ Kasper
Committed by
GitHub
Oct 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unfiltered SWC packages when updating optional (#30571)
parent
450552dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
publish-native.js
scripts/publish-native.js
+3
-4
No files found.
scripts/publish-native.js
View file @
4c38c89c
...
...
@@ -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
p
latforms
)
{
for
(
let
platform
of
filteredP
latforms
)
{
try
{
let
binaryName
=
`next-swc.
${
platform
}
.node`
await
copy
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment