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
63024d32
Unverified
Commit
63024d32
authored
Oct 28, 2021
by
JJ Kasper
Committed by
GitHub
Oct 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update publish-native to not block on error (#30565)
parent
7077bf8c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
19 deletions
+26
-19
README.md
packages/next/build/swc/npm/.linux-x64-musl/README.md
+0
-0
package.json
packages/next/build/swc/npm/.linux-x64-musl/package.json
+0
-0
README.md
packages/next/build/swc/npm/linux-arm64-musl/README.md
+0
-0
package.json
packages/next/build/swc/npm/linux-arm64-musl/package.json
+0
-0
publish-native.js
scripts/publish-native.js
+26
-19
No files found.
packages/next/build/swc/npm/linux-x64-musl/README.md
→
packages/next/build/swc/npm/
.
linux-x64-musl/README.md
View file @
63024d32
File moved
packages/next/build/swc/npm/linux-x64-musl/package.json
→
packages/next/build/swc/npm/
.
linux-x64-musl/package.json
View file @
63024d32
File moved
packages/next/build/swc/npm/
.
linux-arm64-musl/README.md
→
packages/next/build/swc/npm/linux-arm64-musl/README.md
View file @
63024d32
File moved
packages/next/build/swc/npm/
.
linux-arm64-musl/package.json
→
packages/next/build/swc/npm/linux-arm64-musl/package.json
View file @
63024d32
File moved
scripts/publish-native.js
View file @
63024d32
...
...
@@ -20,25 +20,32 @@ const cwd = process.cwd()
(
name
)
=>
!
name
.
startsWith
(
'.'
)
)
for
(
let
platform
of
platforms
)
{
let
binaryName
=
`next-swc.
${
platform
}
.node`
await
copy
(
path
.
join
(
cwd
,
'packages/next/build/swc/dist'
,
binaryName
),
path
.
join
(
nativePackagesDir
,
platform
,
binaryName
)
)
let
pkg
=
JSON
.
parse
(
await
readFile
(
path
.
join
(
nativePackagesDir
,
platform
,
'package.json'
))
)
pkg
.
version
=
version
await
writeFile
(
path
.
join
(
nativePackagesDir
,
platform
,
'package.json'
),
JSON
.
stringify
(
pkg
,
null
,
2
)
)
execSync
(
`npm publish
${
path
.
join
(
nativePackagesDir
,
platform
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag canary'
:
''
}
`
)
try
{
let
binaryName
=
`next-swc.
${
platform
}
.node`
await
copy
(
path
.
join
(
cwd
,
'packages/next/build/swc/dist'
,
binaryName
),
path
.
join
(
nativePackagesDir
,
platform
,
binaryName
)
)
let
pkg
=
JSON
.
parse
(
await
readFile
(
path
.
join
(
nativePackagesDir
,
platform
,
'package.json'
))
)
pkg
.
version
=
version
await
writeFile
(
path
.
join
(
nativePackagesDir
,
platform
,
'package.json'
),
JSON
.
stringify
(
pkg
,
null
,
2
)
)
execSync
(
`npm publish
${
path
.
join
(
nativePackagesDir
,
platform
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag canary'
:
''
}
`
)
}
catch
(
err
)
{
// don't block publishing other versions on single platform error
console
.
error
(
`Failed to publish`
,
platform
,
err
)
}
// lerna publish in next step will fail if git status is not clean
execSync
(
`git update-index --skip-worktree
${
path
.
join
(
...
...
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