Skip to content

Commit

Permalink
chore: enhance prepare package script
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Mar 17, 2023
1 parent 742ad60 commit e0f18db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source-code/ide-extension/scripts/preparePackage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import("node:fs").then((fs) => {
// change name of package
// see https://github.com/microsoft/vscode-vsce/issues/186
const packageJson = JSON.parse(fs.readFileSync("./package.json"))
packageJson.name = "vs-code-extension"
fs.writeFileSync("./package.json", JSON.stringify(packageJson, undefined, 2))
})
import fs from "node:fs"

// change name of package
// see https://github.com/microsoft/vscode-vsce/issues/186
const packageJson = JSON.parse(fs.readFileSync("./package.json"))
packageJson.name = "vs-code-extension"
fs.writeFileSync("./package.json", JSON.stringify(packageJson, undefined, 2))

0 comments on commit e0f18db

Please sign in to comment.