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
b2bc1ed6
Unverified
Commit
b2bc1ed6
authored
Oct 29, 2024
by
Jude Gao
Committed by
GitHub
Oct 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix swc version mismatch when checking out an older version (#71978)
parent
256b662c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
install-native.mjs
scripts/install-native.mjs
+9
-9
No files found.
scripts/install-native.mjs
View file @
b2bc1ed6
...
@@ -43,21 +43,21 @@ import fsp from 'fs/promises'
...
@@ -43,21 +43,21 @@ import fsp from 'fs/promises'
name
:
'dummy-package'
,
name
:
'dummy-package'
,
version
:
'1.0.0'
,
version
:
'1.0.0'
,
optionalDependencies
:
{
optionalDependencies
:
{
'@next/swc-darwin-arm64'
:
'canary'
,
'@next/swc-darwin-arm64'
:
nextVersion
,
'@next/swc-darwin-x64'
:
'canary'
,
'@next/swc-darwin-x64'
:
nextVersion
,
'@next/swc-linux-arm64-gnu'
:
'canary'
,
'@next/swc-linux-arm64-gnu'
:
nextVersion
,
'@next/swc-linux-arm64-musl'
:
'canary'
,
'@next/swc-linux-arm64-musl'
:
nextVersion
,
'@next/swc-linux-x64-gnu'
:
'canary'
,
'@next/swc-linux-x64-gnu'
:
nextVersion
,
'@next/swc-linux-x64-musl'
:
'canary'
,
'@next/swc-linux-x64-musl'
:
nextVersion
,
'@next/swc-win32-arm64-msvc'
:
'canary'
,
'@next/swc-win32-arm64-msvc'
:
nextVersion
,
'@next/swc-win32-x64-msvc'
:
'canary'
,
'@next/swc-win32-x64-msvc'
:
nextVersion
,
},
},
packageManager
,
packageManager
,
}
}
fs
.
writeFileSync
(
path
.
join
(
tmpdir
,
'package.json'
),
JSON
.
stringify
(
pkgJson
))
fs
.
writeFileSync
(
path
.
join
(
tmpdir
,
'package.json'
),
JSON
.
stringify
(
pkgJson
))
fs
.
writeFileSync
(
path
.
join
(
tmpdir
,
'.npmrc'
),
'node-linker=hoisted'
)
fs
.
writeFileSync
(
path
.
join
(
tmpdir
,
'.npmrc'
),
'node-linker=hoisted'
)
let
{
stdout
}
=
await
execa
(
'pnpm'
,
[
'add'
,
'next@canary'
],
{
let
{
stdout
}
=
await
execa
(
'pnpm'
,
[
'add'
,
`next@
${
nextVersion
}
`
],
{
cwd
:
tmpdir
,
cwd
:
tmpdir
,
})
})
console
.
log
(
stdout
)
console
.
log
(
stdout
)
...
...
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