@naturalcycles/dev-lib 13.44.6 → 13.44.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cfg/eslint-rules.js
CHANGED
|
@@ -13,7 +13,7 @@ const localConfig = `${cwd}/commitlint.config.js`;
|
|
|
13
13
|
const sharedConfig = `${paths_cnst_1.cfgDir}/commitlint.config.js`;
|
|
14
14
|
const config = node_fs_1.default.existsSync(localConfig) ? localConfig : sharedConfig;
|
|
15
15
|
const env = {
|
|
16
|
-
...process.env,
|
|
16
|
+
...process.env, // important to pass it through, to preserve $PATH
|
|
17
17
|
GIT_BRANCH: (0, nodejs_lib_1.gitCurrentBranchName)(),
|
|
18
18
|
};
|
|
19
19
|
// await execWithArgs(`commitlint`, [`--edit`, editMsg, `--config`, config], { env })
|
|
@@ -66,6 +66,9 @@ async function runKTLint() {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
function runActionLint() {
|
|
69
|
+
// Only run if there is a folder of `.github/workflows`, otherwise actionlint will fail
|
|
70
|
+
if (!node_fs_1.default.existsSync('.github/workflows'))
|
|
71
|
+
return;
|
|
69
72
|
if (canRunBinary('actionlint')) {
|
|
70
73
|
const started = Date.now();
|
|
71
74
|
(0, nodejs_lib_1.execVoidCommandSync)(`actionlint`);
|