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:
Wolfgang Walther
2025-07-14 10:35:18 +02:00
parent aaaabe0cb7
commit d11eba1e1d
6 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
# TODO: Move to <top-level>/.editorconfig, once ci/.editorconfig has made its way through staging.
[*.cjs]
[run]
indent_style = space
indent_size = 2