@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.
@@ -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': 0, // conflicts with typescript isolatedModules
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': [
@@ -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 (0, build_util_1.runTSCInFolders)(['.', 'scripts'], ['--noEmit']);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "15.3.0",
3
+ "version": "15.4.1",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",