mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
build: add gn-check to precommit linting (#19850)
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
"create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
|
||||
"gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
|
||||
"pre-flight": "pre-flight",
|
||||
"gn-check": "node ./script/gn-check.js",
|
||||
"preinstall": "node -e 'process.exit(0)'",
|
||||
"prepack": "check-for-leaks",
|
||||
"repl": "node ./script/start.js --interactive",
|
||||
@@ -115,6 +116,7 @@
|
||||
"remark -qf"
|
||||
],
|
||||
"*.{gn,gni}": [
|
||||
"npm run gn-check",
|
||||
"python script/run-gn-format.py",
|
||||
"git add"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user