Unverified Commit cdfd6124 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure wasm package.json is written before publish (#31568)

parent 2a5e605a
...@@ -69,6 +69,11 @@ const cwd = process.cwd() ...@@ -69,6 +69,11 @@ const cwd = process.cwd()
) )
wasmPkg.name = `@next/swc-wasm-${wasmTarget}` wasmPkg.name = `@next/swc-wasm-${wasmTarget}`
wasmPkg.version = version wasmPkg.version = version
await writeFile(
path.join(wasmDir, `pkg-${wasmTarget}/package.json`),
JSON.stringify(wasmPkg, null, 2)
)
execSync( execSync(
`npm publish ${path.join( `npm publish ${path.join(
wasmDir, wasmDir,
......
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