Skip to content

Commit fdb3b79

Browse files
authored
Merge pull request #130 from 43081j/rpjf
feat: move to read-package-json-fast
2 parents 8c60208 + 62b8703 commit fdb3b79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/read-package-json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const joinPath = require('path').join
2323
*/
2424
module.exports = function readPackageJson () {
2525
const path = joinPath(process.cwd(), 'package.json')
26-
return import('read-pkg').then(({ readPackage }) => readPackage(path)).then(body => ({
26+
return import('read-package-json-fast').then(({ default: readPackage }) => readPackage(path)).then(body => ({
2727
taskList: Object.keys(body.scripts || {}),
2828
packageInfo: { path, body }
2929
}))

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"memorystream": "^0.3.1",
3232
"minimatch": "^9.0.0",
3333
"pidtree": "^0.6.0",
34-
"read-pkg": "^8.0.0",
34+
"read-package-json-fast": "^3.0.2",
3535
"shell-quote": "^1.7.3"
3636
},
3737
"devDependencies": {
@@ -42,8 +42,8 @@
4242
"jsdoc": "^4.0.0",
4343
"mocha": "^10.0.0",
4444
"p-queue": "^7.3.4",
45-
"yarn": "^1.12.3",
46-
"standard": "^17.1.0"
45+
"standard": "^17.1.0",
46+
"yarn": "^1.12.3"
4747
},
4848
"repository": {
4949
"type": "git",

0 commit comments

Comments
 (0)