Skip to content

Commit

Permalink
fix script path
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Sep 14, 2023
1 parent d0860f3 commit 098e01a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ function InsertRootdirFilesPath2TSconfig() {

function InseartLintFixCommand2PkgJson() {
const pkgJsonPath = join(userCurrentDir, 'package.json')
const pkgJson = JSON.parse(pkgJsonPath)
const pkgJsonFile = readFileSync(pkgJsonPath, 'utf-8')
const pkgJson = JSON.parse(pkgJsonFile)
pkgJson.scripts.lint = 'eslint . --ext .ts,.tsx,.js,jsx,cjs,mjs'
pkgJson.scripts['lint:fix'] = 'eslint . --ext .ts,.tsx,.js,jsx,cjs,mjs --fix'
writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2))
Expand Down

0 comments on commit 098e01a

Please sign in to comment.