Skip to content

Commit

Permalink
feat(npm): add lint task to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 12, 2021
1 parent f9fab24 commit 33823a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/npm/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ function addScript(cmd, existing) {
async function addBuildScripts(manifest, {basePath}) {
const originalScripts = manifest.scripts || {}
const scripts = {...originalScripts}
scripts.lint = addScript(`eslint .`, scripts.lint)
scripts.build = addScript(`${pkg.binname} build`, scripts.build)
scripts.watch = addScript(`${pkg.binname} build --watch`, scripts.watch)
scripts.prepublishOnly = addScript(`${pkg.binname} build`, scripts.prepublishOnly)
Expand Down

0 comments on commit 33823a7

Please sign in to comment.