We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3fc76 commit 5ace072Copy full SHA for 5ace072
lib/cli/commands/validate.js
@@ -15,11 +15,8 @@ module.exports = function (opts) {
15
},
16
handler: async function (argv) {
17
let userPackageJson
18
- let packageJsonPath
19
try {
20
- const jsonFile = path.join(process.cwd(), 'package.json')
21
- packageJsonPath = path.dirname(jsonFile)
22
- userPackageJson = await fs.readJSON(jsonFile)
+ userPackageJson = await fs.readJSON(path.join(process.cwd(), 'package.json'))
23
} catch (error) {
24
argv.log.error(error)
25
return
0 commit comments