@naturalcycles/dev-lib 13.44.9 → 13.44.11

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/bin/bt.js CHANGED
@@ -5,7 +5,7 @@ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const jest_util_1 = require("../util/jest.util");
6
6
  const tsc_util_1 = require("../util/tsc.util");
7
7
  (0, nodejs_lib_1.runScript)(async () => {
8
- (0, nodejs_lib_1._emptyDirSync)('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
8
+ nodejs_lib_1.fs2.emptyDir('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
9
9
  // fs.rmSync('./dist', { recursive: true, force: true })
10
10
  await (0, tsc_util_1.tscMainAndScripts)(true);
11
11
  (0, jest_util_1.runJest)();
package/dist/bin/btl.js CHANGED
@@ -7,7 +7,7 @@ const jest_util_1 = require("../util/jest.util");
7
7
  const tsc_util_1 = require("../util/tsc.util");
8
8
  (0, nodejs_lib_1.runScript)(async () => {
9
9
  await (0, lint_all_command_1.lintAllCommand)();
10
- (0, nodejs_lib_1._emptyDirSync)('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
10
+ nodejs_lib_1.fs2.emptyDir('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
11
11
  // fs.rmSync('./dist', { recursive: true, force: true })
12
12
  await (0, tsc_util_1.tscMainAndScripts)(true);
13
13
  (0, jest_util_1.runJest)();
package/dist/bin/build.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const tsc_util_1 = require("../util/tsc.util");
6
6
  (0, nodejs_lib_1.runScript)(async () => {
7
- (0, nodejs_lib_1._emptyDirSync)('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
7
+ nodejs_lib_1.fs2.emptyDir('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
8
8
  // fs.rmSync('./dist', { recursive: true, force: true })
9
9
  await (0, tsc_util_1.tscMainAndScripts)(true);
10
10
  });
@@ -7,13 +7,11 @@ const TSCONF_CJS_PATH = `./tsconfig.cjs.prod.json`;
7
7
  const TSCONF_ESM_PATH = `./tsconfig.esm.prod.json`;
8
8
  const TSCONF_PATH = `./tsconfig.prod.json`;
9
9
  async function buildProdESMCJSCommand() {
10
- const cjsExists = (0, nodejs_lib_1._pathExistsSync)(TSCONF_CJS_PATH);
11
- const esmExists = (0, nodejs_lib_1._pathExistsSync)(TSCONF_ESM_PATH);
10
+ const cjsExists = nodejs_lib_1.fs2.pathExists(TSCONF_CJS_PATH);
11
+ const esmExists = nodejs_lib_1.fs2.pathExists(TSCONF_ESM_PATH);
12
12
  // it doesn't delete the dir itself, to prevent IDE jumping
13
- (0, nodejs_lib_1._emptyDirSync)('./dist');
14
- (0, nodejs_lib_1._emptyDirSync)('./dist-esm');
15
- // fs.rmSync('./dist', { recursive: true, force: true }),
16
- // fs.rmSync('./dist-esm', { recursive: true, force: true }),
13
+ nodejs_lib_1.fs2.emptyDir('./dist');
14
+ nodejs_lib_1.fs2.emptyDir('./dist-esm');
17
15
  const cjsPath = cjsExists ? TSCONF_CJS_PATH : TSCONF_PATH;
18
16
  const esmPath = esmExists ? TSCONF_ESM_PATH : TSCONF_PATH;
19
17
  await Promise.all([
@@ -5,7 +5,7 @@ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const build_copy_command_1 = require("./build-copy.command");
6
6
  const tsc_prod_command_1 = require("./tsc-prod.command");
7
7
  function buildProdCommand() {
8
- (0, nodejs_lib_1._emptyDirSync)('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
8
+ nodejs_lib_1.fs2.emptyDir('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
9
9
  // fs.rmSync('./dist', { recursive: true, force: true })
10
10
  (0, build_copy_command_1.buildCopyCommand)();
11
11
  (0, tsc_prod_command_1.tscProdCommand)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.44.9",
3
+ "version": "13.44.11",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -43,7 +43,7 @@
43
43
  "eslint-config-prettier": "^9.0.0",
44
44
  "eslint-plugin-import": "^2.22.1",
45
45
  "eslint-plugin-jest": "^27.0.1",
46
- "eslint-plugin-jsdoc": "^46.0.0",
46
+ "eslint-plugin-jsdoc": "^48.0.1",
47
47
  "eslint-plugin-unicorn": "^50.0.1",
48
48
  "eslint-plugin-unused-imports": "^3.0.0",
49
49
  "eslint-plugin-vue": "^9.0.0",
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "jest": "^29.0.0",
64
64
  "stylelint": "^16.0.2",
65
- "stylelint-config-standard-scss": "^12.0.0"
65
+ "stylelint-config-standard-scss": "^13.0.0"
66
66
  },
67
67
  "files": [
68
68
  "dist",