@naturalcycles/dev-lib 20.0.1 → 20.0.2

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.
@@ -26,12 +26,12 @@ export async function runTSCInFolders(tsconfigPaths, args = [], parallel = true)
26
26
  * Pass 'src' to run in root.
27
27
  */
28
28
  export async function runTSCInFolder(dir, args = []) {
29
- let configDir = dir;
29
+ let mod = dir;
30
30
  if (dir === 'src') {
31
- configDir = '';
31
+ mod = '';
32
32
  }
33
- const tsconfigPath = [configDir, `tsconfig.json`].filter(Boolean).join('/');
34
- if (!fs2.pathExists(tsconfigPath)) {
33
+ const tsconfigPath = ['tsconfig', mod, `json`].filter(Boolean).join('.');
34
+ if (!fs2.pathExists(tsconfigPath) || !fs2.pathExists(dir)) {
35
35
  // console.log(`Skipping to run tsc for ${tsconfigPath}, as it doesn't exist`)
36
36
  return;
37
37
  }
package/dist/lint.util.js CHANGED
@@ -79,7 +79,6 @@ export async function lintAllCommand() {
79
79
  * Runs `eslint` command for all predefined paths (e.g /src, /scripts, etc).
80
80
  */
81
81
  export async function eslintAll(opt) {
82
- const started = Date.now();
83
82
  const { argv } = _yargs().options({
84
83
  ext: {
85
84
  type: 'string',
@@ -96,7 +95,6 @@ export async function eslintAll(opt) {
96
95
  };
97
96
  const extensions = ext.split(',');
98
97
  await runESLint(extensions, fix);
99
- console.log(`${check(true)}${white(`eslint-all`)} ${dimGrey(`took ` + _since(started))}`);
100
98
  }
101
99
  async function runESLint(extensions = eslintExtensions.split(','), fix = true) {
102
100
  const eslintConfigPath = `eslint.config.js`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.0.1",
4
+ "version": "20.0.2",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^19",