@naturalcycles/dev-lib 13.25.7 → 13.25.9

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
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const fs = require("fs-extra");
4
+ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
6
6
  const tsc_scripts_command_1 = require("../cmd/tsc-scripts.command");
7
7
  const jest_util_1 = require("../util/jest.util");
8
8
  const tsc_util_1 = require("../util/tsc.util");
9
9
  (0, script_1.runScript)(async () => {
10
- fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
10
+ (0, nodejs_lib_1._emptyDirSync)('./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.tsc)(true);
13
13
  await (0, tsc_scripts_command_1.tscScriptsCommand)();
package/dist/bin/btl.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const fs = require("fs-extra");
4
+ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
6
6
  const lint_all_command_1 = require("../cmd/lint-all.command");
7
7
  const tsc_scripts_command_1 = require("../cmd/tsc-scripts.command");
@@ -9,7 +9,7 @@ const jest_util_1 = require("../util/jest.util");
9
9
  const tsc_util_1 = require("../util/tsc.util");
10
10
  (0, script_1.runScript)(async () => {
11
11
  await (0, lint_all_command_1.lintAllCommand)();
12
- fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
12
+ (0, nodejs_lib_1._emptyDirSync)('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
13
13
  // fs.rmSync('./dist', { recursive: true, force: true })
14
14
  await (0, tsc_util_1.tsc)(true);
15
15
  await (0, tsc_scripts_command_1.tscScriptsCommand)();
package/dist/bin/build.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const fs = require("fs-extra");
4
+ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
6
6
  const tsc_scripts_command_1 = require("../cmd/tsc-scripts.command");
7
7
  const tsc_util_1 = require("../util/tsc.util");
8
8
  (0, script_1.runScript)(async () => {
9
- fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
9
+ (0, nodejs_lib_1._emptyDirSync)('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
10
10
  // fs.rmSync('./dist', { recursive: true, force: true })
11
11
  await (0, tsc_util_1.tsc)(true);
12
12
  await (0, tsc_scripts_command_1.tscScriptsCommand)();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildProdESMCJSCommand = void 0;
4
- const fs = require("fs-extra");
4
+ const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
5
5
  const exec_1 = require("@naturalcycles/nodejs-lib/dist/exec");
6
6
  // You cannot have a shared `tsconfig.prod.json` because of relative paths for `include`
7
7
  const TSCONF_CJS_PATH = `./tsconfig.cjs.prod.json`;
@@ -9,14 +9,14 @@ const TSCONF_ESM_PATH = `./tsconfig.esm.prod.json`;
9
9
  const TSCONF_PATH = `./tsconfig.prod.json`;
10
10
  async function buildProdESMCJSCommand() {
11
11
  const [cjsExists, esmExists] = [
12
- fs.existsSync(TSCONF_CJS_PATH),
13
- fs.existsSync(TSCONF_ESM_PATH),
14
- // it doesn't delete the dir itself, to prevent IDE jumping
15
- fs.emptyDirSync('./dist'),
16
- fs.emptyDirSync('./dist-esm'),
17
- // fs.rmSync('./dist', { recursive: true, force: true }),
18
- // fs.rmSync('./dist-esm', { recursive: true, force: true }),
12
+ (0, nodejs_lib_1._pathExistsSync)(TSCONF_CJS_PATH),
13
+ (0, nodejs_lib_1._pathExistsSync)(TSCONF_ESM_PATH),
19
14
  ];
15
+ // it doesn't delete the dir itself, to prevent IDE jumping
16
+ (0, nodejs_lib_1._emptyDirSync)('./dist');
17
+ (0, nodejs_lib_1._emptyDirSync)('./dist-esm');
18
+ // fs.rmSync('./dist', { recursive: true, force: true }),
19
+ // fs.rmSync('./dist-esm', { recursive: true, force: true }),
20
20
  const cjsPath = cjsExists ? TSCONF_CJS_PATH : TSCONF_PATH;
21
21
  const esmPath = esmExists ? TSCONF_ESM_PATH : TSCONF_PATH;
22
22
  await Promise.all([
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildProdCommand = void 0;
4
- const fs = require("fs-extra");
4
+ 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
  async function buildProdCommand() {
8
- fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
8
+ (0, nodejs_lib_1._emptyDirSync)('./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
  await (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.25.7",
3
+ "version": "13.25.9",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -34,7 +34,6 @@
34
34
  "@naturalcycles/cli": "^1.0.0",
35
35
  "@naturalcycles/js-lib": "^14.0.0",
36
36
  "@naturalcycles/nodejs-lib": "^12.0.0",
37
- "@types/fs-extra": "^11.0.0",
38
37
  "@types/jest": "^29.0.0",
39
38
  "@types/node": "^20.1.0",
40
39
  "@types/yargs": "^16.0.0",
@@ -44,13 +43,12 @@
44
43
  "eslint-config-prettier": "^8.3.0",
45
44
  "eslint-plugin-import": "^2.22.1",
46
45
  "eslint-plugin-jest": "^27.0.1",
47
- "eslint-plugin-jsdoc": "^44.2.3",
46
+ "eslint-plugin-jsdoc": "^45.0.0",
48
47
  "eslint-plugin-unicorn": "^47.0.0",
49
48
  "eslint-plugin-unused-imports": "^2.0.0",
50
49
  "eslint-plugin-vue": "^9.0.0",
51
50
  "execa": "^5.0.0",
52
51
  "expect-type": "^0.15.0",
53
- "fs-extra": "^11.0.0",
54
52
  "husky": "^8.0.1",
55
53
  "jest-junit": "^16.0.0",
56
54
  "lint-staged": "^13.0.0",