Skip to content

Commit

Permalink
fix(changePackageVersion): fix after ESM update
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Oct 28, 2023
1 parent 391586d commit 1b27039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"type": "module",
"main": "main.js",
"exports":{
"exports": {
"./dest/*": "./dest/*",
"./src/*": "./src/*"
},
Expand Down Expand Up @@ -184,4 +184,4 @@
"npx jsonlint"
]
}
}
}
2 changes: 1 addition & 1 deletion tools/changePackageVersion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs'

import pkg from '../package.json'
import pkg from '../package.json' assert { type: "json" };

fs.writeFileSync('./package.json', JSON.stringify({ ...pkg, version: process.argv[2] }, null, 2));

0 comments on commit 1b27039

Please sign in to comment.