@naturalcycles/dev-lib 15.3.0 → 15.4.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/cfg/eslint-rules.js +1 -1
- package/dist/bin/dev-lib.js +10 -1
- package/package.json +1 -1
package/cfg/eslint-rules.js
CHANGED
|
@@ -319,7 +319,7 @@ module.exports = {
|
|
|
319
319
|
'guard-for-in': 2,
|
|
320
320
|
'jest/expect-expect': 0,
|
|
321
321
|
'jest/no-commented-out-tests': 0,
|
|
322
|
-
'jest/no-export':
|
|
322
|
+
'jest/no-export': 2,
|
|
323
323
|
'jest/no-conditional-expect': 0,
|
|
324
324
|
'jest/no-disabled-tests': 0,
|
|
325
325
|
'@typescript-eslint/no-namespace': [
|
package/dist/bin/dev-lib.js
CHANGED
|
@@ -30,6 +30,11 @@ const commands = [
|
|
|
30
30
|
desc: 'Clean ./dist and ./dist-esm, then run "tsc" in CJS and ESM modes.',
|
|
31
31
|
cliOnly: true,
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
name: 'tsc',
|
|
35
|
+
fn: tscAll,
|
|
36
|
+
desc: 'Run tsc in folders (src, scripts, e2e, playwright) if there is tsconfig.json present',
|
|
37
|
+
},
|
|
33
38
|
{ name: 'bt', fn: bt, desc: 'Build & Test: run "build" and then "test".' },
|
|
34
39
|
{ name: 'lbt', fn: lbt, desc: 'Lint/Build/Test: run "lint", then "build", then "test".' },
|
|
35
40
|
new prompts_1.Separator(), // test
|
|
@@ -122,9 +127,13 @@ async function lbt() {
|
|
|
122
127
|
await bt();
|
|
123
128
|
}
|
|
124
129
|
async function bt() {
|
|
125
|
-
await (
|
|
130
|
+
await tscAll();
|
|
126
131
|
(0, test_util_1.runJest)();
|
|
127
132
|
}
|
|
133
|
+
async function tscAll() {
|
|
134
|
+
// todo: remove playwright after it fully moves to e2e
|
|
135
|
+
await (0, build_util_1.runTSCInFolders)(['.', 'scripts', 'e2e', 'playwright'], ['--noEmit']);
|
|
136
|
+
}
|
|
128
137
|
function logEnvironment() {
|
|
129
138
|
const { CPU_LIMIT, NODE_OPTIONS = 'not defined' } = process.env;
|
|
130
139
|
const { node } = process.versions;
|