Skip to content

Commit

Permalink
change the path for storing temporary backup package.json file and up…
Browse files Browse the repository at this point in the history
…date .gitignore
  • Loading branch information
mlgq committed Apr 25, 2024
1 parent 7276395 commit 53082a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ tmp/
dist/
coverage/
.tmp/
bin/.backup-package.json
2 changes: 1 addition & 1 deletion bin/publish.mjs
Expand Up @@ -6,7 +6,7 @@ const publishHookType = process.argv[2]

const __dirname = fileURLToPath(import.meta.url)
const packageJsonPath = path.resolve(__dirname, "../../package.json")
const backupPath = path.resolve(__dirname, "../../.backup-package.json")
const backupPath = path.resolve(__dirname, "../.backup-package.json")

const readFile = (path) => fs.readFileSync(path, "utf-8")
const writeFile = (path, content) => fs.writeFileSync(path, content, "utf-8")
Expand Down

0 comments on commit 53082a0

Please sign in to comment.