@bytecodealliance/wizer
Advanced tools
Comparing version 7.0.2 to 7.0.4
{ | ||
"name": "@bytecodealliance/wizer", | ||
"version": "7.0.2", | ||
"version": "7.0.4", | ||
"description": "The WebAssembly Pre-Initializer", | ||
"type": "module", | ||
"scripts": { | ||
"version": "node ./update.js $npm_package_version" | ||
}, | ||
"devDependencies": { | ||
@@ -23,8 +20,8 @@ "decompress": "^4.2.1", | ||
"optionalDependencies": { | ||
"@bytecodealliance/wizer-darwin-arm64": "6.0.0", | ||
"@bytecodealliance/wizer-darwin-x64": "6.0.0", | ||
"@bytecodealliance/wizer-linux-x64": "6.0.0", | ||
"@bytecodealliance/wizer-linux-arm64": "6.0.0", | ||
"@bytecodealliance/wizer-linux-s390x": "6.0.0", | ||
"@bytecodealliance/wizer-win32-x64": "6.0.0" | ||
"@bytecodealliance/wizer-darwin-arm64": "7.0.4", | ||
"@bytecodealliance/wizer-darwin-x64": "7.0.4", | ||
"@bytecodealliance/wizer-linux-x64": "7.0.4", | ||
"@bytecodealliance/wizer-linux-arm64": "7.0.4", | ||
"@bytecodealliance/wizer-linux-s390x": "7.0.4", | ||
"@bytecodealliance/wizer-win32-x64": "7.0.4" | ||
}, | ||
@@ -40,2 +37,2 @@ "license": "Apache-2.0", | ||
"homepage": "https://github.com/bytecodealliance/wizer#readme" | ||
} | ||
} |
@@ -5,3 +5,3 @@ #!/usr/bin/env node | ||
import { dirname, join, parse } from 'node:path'; | ||
import { mkdir, writeFile } from "node:fs/promises"; | ||
import { mkdir, writeFile, readFile } from "node:fs/promises"; | ||
import decompress from 'decompress'; | ||
@@ -12,5 +12,13 @@ import decompressUnzip from 'decompress-unzip'; | ||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
const input = process.argv.slice(2).at(0); | ||
const tag = input ? `v${input}` : 'dev'; | ||
const tag = process.argv.slice(2).at(0).trim() || 'dev'; | ||
const version = tag.startsWith('v') ? tag.slice(1) : tag; | ||
const pjson = JSON.parse(await readFile('package.json')); | ||
pjson.version = version; | ||
delete pjson.private; | ||
for (const dep of Object.keys(pjson.optionalDependencies)) { | ||
pjson.optionalDependencies[dep] = version; | ||
} | ||
await writeFile('package.json', JSON.stringify(pjson, null, 2)); | ||
let packages = { | ||
@@ -17,0 +25,0 @@ 'wizer-darwin-arm64': { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22058
193