@naturalcycles/dev-lib 13.5.0 → 13.6.1

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
@@ -9,7 +9,7 @@ const tsc_util_1 = require("../util/tsc.util");
9
9
  (0, script_1.runScript)(async () => {
10
10
  fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
11
11
  // fs.rmSync('./dist', { recursive: true, force: true })
12
- await (0, tsc_util_1.tsc)();
12
+ await (0, tsc_util_1.tsc)(true);
13
13
  await (0, tsc_scripts_command_1.tscScriptsCommand)();
14
14
  await (0, jest_util_1.runJest)();
15
15
  });
package/dist/bin/btl.js CHANGED
@@ -11,7 +11,7 @@ const tsc_util_1 = require("../util/tsc.util");
11
11
  await (0, lint_all_command_1.lintAllCommand)();
12
12
  fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
13
13
  // fs.rmSync('./dist', { recursive: true, force: true })
14
- await (0, tsc_util_1.tsc)();
14
+ await (0, tsc_util_1.tsc)(true);
15
15
  await (0, tsc_scripts_command_1.tscScriptsCommand)();
16
16
  await (0, jest_util_1.runJest)();
17
17
  });
package/dist/bin/build.js CHANGED
@@ -8,6 +8,6 @@ const tsc_util_1 = require("../util/tsc.util");
8
8
  (0, script_1.runScript)(async () => {
9
9
  fs.emptyDirSync('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
10
10
  // fs.rmSync('./dist', { recursive: true, force: true })
11
- await (0, tsc_util_1.tsc)();
11
+ await (0, tsc_util_1.tsc)(true);
12
12
  await (0, tsc_scripts_command_1.tscScriptsCommand)();
13
13
  });
@@ -1,4 +1,4 @@
1
- export declare function tsc(): Promise<void>;
1
+ export declare function tsc(noEmit?: boolean): Promise<void>;
2
2
  /**
3
3
  * Returns path to /scripts/tsconfig.json
4
4
  */
@@ -7,9 +7,10 @@ const colors_1 = require("@naturalcycles/nodejs-lib/dist/colors");
7
7
  const exec_1 = require("@naturalcycles/nodejs-lib/dist/exec");
8
8
  const fs_1 = require("@naturalcycles/nodejs-lib/dist/fs");
9
9
  const paths_cnst_1 = require("../cnst/paths.cnst");
10
- async function tsc() {
10
+ async function tsc(noEmit = false) {
11
11
  const started = Date.now();
12
- await (0, exec_1.execCommand)('tsc');
12
+ const cmd = ['tsc', noEmit && '--noEmit'].filter(Boolean).join(' ');
13
+ await (0, exec_1.execCommand)(cmd);
13
14
  console.log(`${(0, colors_1.boldGrey)('tsc')} ${(0, colors_1.dimGrey)(`took ` + (0, js_lib_1._since)(started))}`);
14
15
  }
15
16
  exports.tsc = tsc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.5.0",
3
+ "version": "13.6.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -47,7 +47,7 @@
47
47
  "eslint-plugin-import": "^2.22.1",
48
48
  "eslint-plugin-jest": "^27.0.1",
49
49
  "eslint-plugin-jsdoc": "^39.1.0",
50
- "eslint-plugin-unicorn": "^43.0.0",
50
+ "eslint-plugin-unicorn": "^44.0.0",
51
51
  "eslint-plugin-unused-imports": "^2.0.0",
52
52
  "eslint-plugin-vue": "^9.0.0",
53
53
  "execa": "^5.0.0",