@xylabs/ts-scripts-yarn3 6.0.1 → 6.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/ts-scripts-yarn3",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "TypeScript project scripts",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -62,8 +62,8 @@
62
62
  "@swc/core": "^1.11.8",
63
63
  "@types/node": "^22.13.10",
64
64
  "@types/yargs": "^17.0.33",
65
- "@xylabs/tsconfig": "^6.0.1",
66
- "@xylabs/tsconfig-dom": "^6.0.1",
65
+ "@xylabs/tsconfig": "^6.0.3",
66
+ "@xylabs/tsconfig-dom": "^6.0.3",
67
67
  "async-mutex": "^0.5.0",
68
68
  "chalk": "^5.4.1",
69
69
  "cosmiconfig": "^9.0.0",
@@ -105,7 +105,7 @@
105
105
  "@types/license-checker": "^25.0.6",
106
106
  "@types/parse-git-config": "^3.0.4",
107
107
  "@types/picomatch": "^3.0.2",
108
- "@xylabs/tsconfig": "^6.0.1",
108
+ "@xylabs/tsconfig": "^6.0.3",
109
109
  "publint": "^0.3.9",
110
110
  "rimraf": "^6.0.1",
111
111
  "typescript": "^5.8.2"
@@ -58,7 +58,7 @@ function getFiles(dir: string, ignoreFolders: string[]): string[] {
58
58
  })
59
59
  }
60
60
 
61
- export const packageLint = async (fix = false) => {
61
+ export const packageLint = async (fix = false, verbose = false, cache = true) => {
62
62
  const pkg = process.env.INIT_CWD
63
63
  const configPath = await getRootESLintConfig()
64
64
  const { default: eslintConfig } = await import(configPath.href)
@@ -67,11 +67,13 @@ export const packageLint = async (fix = false) => {
67
67
  const ignoreFolders = ['node_modules', 'dist', 'packages', '.git', 'build', '.yarn', '.vscode', '.github']
68
68
 
69
69
  const engine = new ESLint({
70
- baseConfig: [...eslintConfig], fix, warnIgnored: false,
70
+ baseConfig: [...eslintConfig], fix, warnIgnored: false, cache,
71
71
  })
72
72
 
73
73
  const files = getFiles(cwd(), ignoreFolders)
74
- console.log(chalk.green(`Linting ${pkg} [${files.length}]`))
74
+ if (verbose) {
75
+ console.log(chalk.green(`Linting ${pkg} [files = ${files.length}]`))
76
+ }
75
77
  const lintResults = await engine.lintFiles(files)
76
78
 
77
79
  dumpMessages(lintResults)