@naturalcycles/dev-lib 13.5.0 → 13.6.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.
- package/dist/bin/bt.js +1 -1
- package/dist/bin/btl.js +1 -1
- package/dist/bin/build.js +1 -1
- package/dist/util/tsc.util.d.ts +1 -1
- package/dist/util/tsc.util.js +3 -2
- package/package.json +1 -1
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
|
});
|
package/dist/util/tsc.util.d.ts
CHANGED
package/dist/util/tsc.util.js
CHANGED
|
@@ -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
|
-
|
|
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;
|