@naturalcycles/dev-lib 15.10.1 → 15.11.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/cfg/lint-staged.config.js +8 -0
- package/dist/bin/dev-lib.js +2 -3
- package/package.json +1 -1
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
Supports default configs for `prettier`, `stylelint`, `eslint`, if they are not found in target project.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
const {
|
|
8
|
+
platform,
|
|
9
|
+
arch,
|
|
10
|
+
versions: { node },
|
|
11
|
+
} = process
|
|
12
|
+
|
|
13
|
+
console.log(`lint-staged.config.js runs on node ${node} ${platform} ${arch}`)
|
|
14
|
+
|
|
7
15
|
const fs = require('node:fs')
|
|
8
16
|
const micromatch = require('micromatch')
|
|
9
17
|
const { execSync } = require('node:child_process')
|
package/dist/bin/dev-lib.js
CHANGED
|
@@ -146,13 +146,12 @@ async function tscAll() {
|
|
|
146
146
|
await (0, build_util_1.runTSCInFolders)(['.', 'scripts', 'e2e', 'playwright'], ['--noEmit']);
|
|
147
147
|
}
|
|
148
148
|
function logEnvironment() {
|
|
149
|
-
const { CPU_LIMIT, NODE_OPTIONS = 'not defined' } = process
|
|
150
|
-
const { node } = process.versions;
|
|
149
|
+
const { platform, arch, versions: { node }, env: { CPU_LIMIT, NODE_OPTIONS = 'not defined' }, } = process;
|
|
151
150
|
const cpuLimit = Number(CPU_LIMIT) || undefined;
|
|
152
151
|
const availableParallelism = node_os_1.default.availableParallelism?.();
|
|
153
152
|
const cpus = node_os_1.default.cpus().length;
|
|
154
153
|
console.log((0, nodejs_lib_1.dimGrey)(Object.entries({
|
|
155
|
-
node
|
|
154
|
+
node: `${node} ${platform} ${arch}`,
|
|
156
155
|
NODE_OPTIONS,
|
|
157
156
|
cpus,
|
|
158
157
|
availableParallelism,
|