@naturalcycles/dev-lib 19.7.0 → 19.8.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.
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { select, Separator } from '@inquirer/prompts';
3
- import { _assert, _by } from '@naturalcycles/js-lib';
3
+ import { _by } from '@naturalcycles/js-lib';
4
+ import { _assert } from '@naturalcycles/js-lib/error';
4
5
  import { runScript } from '@naturalcycles/nodejs-lib';
5
6
  import { fs2 } from '@naturalcycles/nodejs-lib/fs2';
6
7
  import { buildCopy, buildProd, runTSCInFolders } from '../build.util.js';
@@ -1,4 +1,4 @@
1
- import type { SemVerString } from '@naturalcycles/js-lib';
1
+ import type { SemVerString } from '@naturalcycles/js-lib/types';
2
2
  /**
3
3
  * Run all linters.
4
4
  */
package/dist/lint.util.js CHANGED
@@ -2,7 +2,11 @@ import { execSync } from 'node:child_process';
2
2
  import { existsSync } from 'node:fs';
3
3
  import { createRequire } from 'node:module';
4
4
  import path from 'node:path';
5
- import { _assert, _isTruthy, _since, _truncate, semver2 } from '@naturalcycles/js-lib';
5
+ import { _isTruthy } from '@naturalcycles/js-lib';
6
+ import { _since } from '@naturalcycles/js-lib/datetime';
7
+ import { _assert } from '@naturalcycles/js-lib/error';
8
+ import { semver2 } from '@naturalcycles/js-lib/semver';
9
+ import { _truncate } from '@naturalcycles/js-lib/string';
6
10
  import { git2 } from '@naturalcycles/nodejs-lib';
7
11
  import { boldGrey, dimGrey } from '@naturalcycles/nodejs-lib/colors';
8
12
  import { exec2 } from '@naturalcycles/nodejs-lib/exec2';
@@ -1,4 +1,4 @@
1
- import { AppError } from '@naturalcycles/js-lib';
1
+ import { AppError } from '@naturalcycles/js-lib/error';
2
2
  export const mockAllKindsOfThings = () => {
3
3
  const errorWithCode = new Error('Error with code');
4
4
  Object.assign(errorWithCode, {
@@ -1,3 +1,3 @@
1
1
  export declare function silentConsole(): void;
2
- export declare const testLogger: import("@naturalcycles/js-lib").CommonLogger;
3
- export declare const testLog: import("@naturalcycles/js-lib").CommonLogFunction;
2
+ export declare const testLogger: import("@naturalcycles/js-lib/log").CommonLogger;
3
+ export declare const testLog: import("@naturalcycles/js-lib/log").CommonLogFunction;
@@ -1,4 +1,4 @@
1
- import { commonLoggerCreate } from '@naturalcycles/js-lib';
1
+ import { commonLoggerCreate } from '@naturalcycles/js-lib/log';
2
2
  import { _inspect } from '@naturalcycles/nodejs-lib';
3
3
  export function silentConsole() {
4
4
  console.log = () => { };
@@ -1,4 +1,4 @@
1
- import type { UnixTimestamp } from '@naturalcycles/js-lib';
1
+ import type { UnixTimestamp } from '@naturalcycles/js-lib/types';
2
2
  export declare const MOCK_TS_2018_06_21: UnixTimestamp;
3
3
  /**
4
4
  * Locks time-related functions to return always same time.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "19.7.0",
4
+ "version": "19.8.0",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^19",