Skip to content

Commit

Permalink
Fix/vulnerability (#1)
Browse files Browse the repository at this point in the history
* fix: bump pacote

* refactor: ts-check file

* chore: version bump
  • Loading branch information
jkoenig134 committed Feb 15, 2024
1 parent c22c902 commit 5e2e24a
Show file tree
Hide file tree
Showing 3 changed files with 1,443 additions and 1,274 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env node

// @ts-check

const { spawn } = require("child_process")
const { readFileSync } = require("fs")
const pacote = require("pacote")

function getPackageInfo() {
const pJson = JSON.parse(readFileSync("./package.json"))
const pJson = JSON.parse(readFileSync("./package.json", "utf8"))

return {
name: pJson.name,
Expand Down Expand Up @@ -56,7 +58,7 @@ async function run() {
}

const child = spawn("npm", ["publish", ...args], { stdio: "inherit" })
child.on("exit", (code) => process.exit(code))
child.on("exit", (code) => process.exit(code ?? 0))
}

run()
Loading

0 comments on commit 5e2e24a

Please # to comment.