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:
Martin Brennan 2024-09-04 16:19:11 +10:00 committed by GitHub
parent fdcf4698fc
commit 36fc587f4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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