@naturalcycles/dev-lib 20.49.3 → 20.50.0
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/dist/check.util.js +4 -4
- package/package.json +2 -2
package/dist/check.util.js
CHANGED
|
@@ -9,11 +9,11 @@ import { _assert } from '@naturalcycles/js-lib/error/assert.js';
|
|
|
9
9
|
import { _filterFalsyValues } from '@naturalcycles/js-lib/object/object.util.js';
|
|
10
10
|
import { semver2 } from '@naturalcycles/js-lib/semver';
|
|
11
11
|
import { _stringMapEntries } from '@naturalcycles/js-lib/types';
|
|
12
|
+
import { _parseArgs } from '@naturalcycles/nodejs-lib/args';
|
|
12
13
|
import { dimGrey, white } from '@naturalcycles/nodejs-lib/colors';
|
|
13
14
|
import { exec2 } from '@naturalcycles/nodejs-lib/exec2';
|
|
14
15
|
import { fs2 } from '@naturalcycles/nodejs-lib/fs2';
|
|
15
16
|
import { kpySync } from '@naturalcycles/nodejs-lib/kpy';
|
|
16
|
-
import { _yargs } from '@naturalcycles/nodejs-lib/yargs';
|
|
17
17
|
import { eslintExtensions, lintExclude, minActionlintVersion, prettierDirs, stylelintExtensions, } from '../cfg/_cnst.js';
|
|
18
18
|
import { cfgDir } from './paths.js';
|
|
19
19
|
const { CI } = process.env;
|
|
@@ -137,7 +137,7 @@ export async function runCheck(opt = {}) {
|
|
|
137
137
|
* Returns true if it ran
|
|
138
138
|
*/
|
|
139
139
|
export function eslintAll(opt) {
|
|
140
|
-
const
|
|
140
|
+
const argv = _parseArgs({
|
|
141
141
|
ext: {
|
|
142
142
|
type: 'string',
|
|
143
143
|
default: eslintExtensions,
|
|
@@ -249,12 +249,12 @@ const stylelintPaths = [
|
|
|
249
249
|
* Returns true if it ran.
|
|
250
250
|
*/
|
|
251
251
|
export function stylelintAll(fix) {
|
|
252
|
-
const argv =
|
|
252
|
+
const argv = _parseArgs({
|
|
253
253
|
fix: {
|
|
254
254
|
type: 'boolean',
|
|
255
255
|
default: !CI, // defaults to false in CI, true otherwise
|
|
256
256
|
},
|
|
257
|
-
})
|
|
257
|
+
});
|
|
258
258
|
fix ??= argv.fix;
|
|
259
259
|
const config = [`./stylelint.config.js`].find(f => existsSync(f));
|
|
260
260
|
if (!config) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.50.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@naturalcycles/js-lib": "^15",
|
|
7
7
|
"@naturalcycles/nodejs-lib": "^15",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"lint-staged": "^17",
|
|
12
12
|
"oxfmt": "^0",
|
|
13
13
|
"oxlint": "^1",
|
|
14
|
-
"oxlint-tsgolint": "
|
|
14
|
+
"oxlint-tsgolint": "0.23.0",
|
|
15
15
|
"picomatch": "^4",
|
|
16
16
|
"prompts": "^2",
|
|
17
17
|
"std-env": "^4"
|