@naturalcycles/dev-lib 13.11.2 → 13.11.4
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lintAllCommand = void 0;
|
|
4
4
|
const fs = require("node:fs");
|
|
5
|
+
const js_lib_1 = require("@naturalcycles/js-lib");
|
|
5
6
|
const yargs = require("yargs");
|
|
6
7
|
const git_util_1 = require("../util/git.util");
|
|
7
8
|
const prettier_util_1 = require("../util/prettier.util");
|
|
@@ -38,7 +39,9 @@ async function lintAllCommand() {
|
|
|
38
39
|
console.log(`lint-all: there are changes before running lint-all, will not commit`);
|
|
39
40
|
}
|
|
40
41
|
else {
|
|
41
|
-
const msg = 'style(ci): ' +
|
|
42
|
+
const msg = 'style(ci): ' +
|
|
43
|
+
(0, js_lib_1._truncate)((0, git_util_1.commitMessageToTitleMessage)(await (0, git_util_1.getLastGitCommitMsg)()), 60) +
|
|
44
|
+
'\n\n[skip ci]';
|
|
42
45
|
// pull, commit, push changes
|
|
43
46
|
await (0, git_util_1.gitPull)();
|
|
44
47
|
await (0, git_util_1.gitCommitAll)(msg);
|
|
@@ -17,7 +17,7 @@ async function runPrettier() {
|
|
|
17
17
|
// If there's no `prettier.config.js` in target project - pass `./cfg/prettier.config.js`
|
|
18
18
|
const prettierConfigPath = [`./prettier.config.js`].find(f => fs.existsSync(f)) || `${paths_cnst_1.cfgDir}/prettier.config.js`;
|
|
19
19
|
// prettier --write 'src/**/*.{js,ts,css,scss,graphql}'
|
|
20
|
-
const args = [`--write`, `--config`, prettierConfigPath, ...prettierPaths];
|
|
20
|
+
const args = [`--write`, `--loglevel=warn`, `--config`, prettierConfigPath, ...prettierPaths];
|
|
21
21
|
await (0, exec_1.execWithArgs)('prettier', args);
|
|
22
22
|
}
|
|
23
23
|
exports.runPrettier = runPrettier;
|