@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.
@@ -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')
@@ -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.env;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "15.10.1",
3
+ "version": "15.11.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",