ci/github-script: default to commonjs
Since all github-scripts need to be written in commonjs, we now default to it by not setting package.json. Support from editors for .js files is slightly better than .cjs. To still allow using module imports in the test runner script, we trick node into loading the script itself as a module again via `--import ./run`.
This commit is contained in:
@@ -10,4 +10,4 @@ To run any of the scripts locally:
|
||||
|
||||
## Labeler
|
||||
|
||||
Run `./run.js labels OWNER REPO`, where OWNER is your username or "NixOS" and REPO the name of your fork or "nixpkgs".
|
||||
Run `./run labels OWNER REPO`, where OWNER is your username or "NixOS" and REPO the name of your fork or "nixpkgs".
|
||||
|
||||
Reference in New Issue
Block a user