DEV: pnpm ember-template-lint should not use run command (#28726)
On pre-commit, various people were getting an error like this: > ERR_PNPM_NO_SCRIPT Missing script: ember-template-lint This was because in our lefthook config we were doing `pnpm run ember-template-lint` rather than the correct `pnpm ember-template-lint`
This commit is contained in:
parent
fdcf4698fc
commit
36fc587f4c
|
@ -29,7 +29,7 @@ pre-commit:
|
||||||
ember-template-lint:
|
ember-template-lint:
|
||||||
glob: "*.hbs"
|
glob: "*.hbs"
|
||||||
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
||||||
run: pnpm run ember-template-lint {staged_files}
|
run: pnpm ember-template-lint {staged_files}
|
||||||
yaml-syntax:
|
yaml-syntax:
|
||||||
glob: "*.{yaml,yml}"
|
glob: "*.{yaml,yml}"
|
||||||
# database.yml is an erb file not a yaml file
|
# database.yml is an erb file not a yaml file
|
||||||
|
@ -66,7 +66,7 @@ lints:
|
||||||
eslint:
|
eslint:
|
||||||
run: pnpm eslint -f compact --quiet --ext .js .
|
run: pnpm eslint -f compact --quiet --ext .js .
|
||||||
ember-template-lint:
|
ember-template-lint:
|
||||||
run: pnpm run ember-template-lint .
|
run: pnpm ember-template-lint .
|
||||||
yaml-syntax:
|
yaml-syntax:
|
||||||
glob: "*.{yaml,yml}"
|
glob: "*.{yaml,yml}"
|
||||||
# database.yml is an erb file not a yaml file
|
# database.yml is an erb file not a yaml file
|
||||||
|
|
Loading…
Reference in New Issue