Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions npm/wizer/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ for (const [packageName, info] of Object.entries(packages)) {
}

await decompress(
Buffer.from(downloadBytes),
packageDirectory,
Buffer.from(downloadBytes),
packageDirectory,
{
// Remove the leading directory from the extracted file.
strip: 1,
Expand All @@ -137,7 +137,7 @@ export default location
`
}
function packageJson(name, version, description, os, cpu) {
version = version.startsWith('v') ? version.replace('v','') : version
version = version.startsWith('v') ? version.replace('v','') : version;
return JSON.stringify({
name: `@bytecodealliance/${name}`,
bin: {
Expand All @@ -147,6 +147,9 @@ function packageJson(name, version, description, os, cpu) {
version,
main: "index.js",
description,
repository: {
url: "https://github.com/bytecodealliance/wizer",
},
license: "Apache-2.0",
preferUnplugged: false,
os: [os],
Expand Down
Loading