We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb3b79 commit 605ca15Copy full SHA for 605ca15
lib/read-package-json.js
@@ -6,6 +6,8 @@
6
*/
7
'use strict'
8
9
+const readPackage = require('read-package-json-fast')
10
+
11
// ------------------------------------------------------------------------------
12
// Requirements
13
@@ -23,7 +25,7 @@ const joinPath = require('path').join
23
25
24
26
module.exports = function readPackageJson () {
27
const path = joinPath(process.cwd(), 'package.json')
- return import('read-package-json-fast').then(({ default: readPackage }) => readPackage(path)).then(body => ({
28
+ return readPackage(path).then(body => ({
29
taskList: Object.keys(body.scripts || {}),
30
packageInfo: { path, body }
31
}))
0 commit comments