Unverified Commit ce2e2265 authored by Steven's avatar Steven Committed by GitHub

Add missing `repository` prop to package.json in swc-wasm (#48805)

- Follow up to https://github.com/vercel/next.js/pull/48803

Fixes
https://github.com/vercel/next.js/actions/runs/4791615248/jobs/8523283909#step:10:258
parent 2f6ff0da
......@@ -84,7 +84,8 @@ const cwd = process.cwd()
)
// Update name/version of wasm packages and publish
let wasmDir = path.join(cwd, 'packages/next-swc/crates/wasm')
const pkgDirectory = 'packages/next-swc/crates/wasm'
let wasmDir = path.join(cwd, pkgDirectory)
await Promise.all(
['web', 'nodejs'].map(async (wasmTarget) => {
......@@ -95,6 +96,11 @@ const cwd = process.cwd()
)
wasmPkg.name = `@next/swc-wasm-${wasmTarget}`
wasmPkg.version = version
wasmPkg.repository = {
type: 'git',
url: 'https://github.com/vercel/next.js',
directory: pkgDirectory,
}
await writeFile(
path.join(wasmDir, `pkg-${wasmTarget}/package.json`),
......
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