@anolilab/lint-staged-config 2.1.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## @anolilab/lint-staged-config [2.1.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@2.1.0...@anolilab/lint-staged-config@2.1.1) (2023-10-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fixed exclude checking ([461c524](https://github.com/anolilab/javascript-style-guide/commit/461c524c548295e141cc3216dc4a055494532b84))
7
+
1
8
  ## @anolilab/lint-staged-config [2.1.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/lint-staged-config@2.0.15...@anolilab/lint-staged-config@2.1.0) (2023-10-09)
2
9
 
3
10
 
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkOYUEMN5Q_js = require('./chunk-OYUEMN5Q.js');
4
+ var chunkVU6SMFTD_js = require('./chunk-VU6SMFTD.js');
5
+ var chunkP4FK54EG_js = require('./chunk-P4FK54EG.js');
6
+ var process = require('process');
7
+
8
+ var i=chunkOYUEMN5Q_js.a?.typescript??{},f={[`**/*.{${["ts","mts","cts"].join(",")}}`]:g=>{let r=new Set;return g.forEach(e=>{if(i?.exclude&&Array.isArray(i.exclude)){let t=!1;if(i.exclude.forEach(a=>{!t&&e.includes(a)&&(t=!0);}),t){process.env.DEBUG&&console.info(`Skipping ${e} as it's excluded in the settings.`);return}}try{let t=chunkVU6SMFTD_js.a("tsconfig.json",e);r.add(`${chunkP4FK54EG_js.a()} exec tsc --noEmit --project ${t}`);}catch(t){process.env.DEBUG&&console.error(t);}}),[...r]}},u=f;
9
+
10
+ exports.a = u;
11
+ //# sourceMappingURL=out.js.map
12
+ //# sourceMappingURL=chunk-DVFT7GIT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/groups/typescript.ts"],"names":["env","typescriptSettings","lint_staged_config_default","group","filenames","commands","filePath","exclude","value","tsconfigPath","get_nearest_config_path_default","get_package_manager_default","error","typescript_default"],"mappings":"wHAAA,OAAS,OAAAA,MAAW,UAiBpB,IAAMC,EAAwCC,GAA2C,YAAe,CAAC,EAEnGC,EAAgB,CAClB,CAAC,SAAS,CAAC,KAAM,MAAO,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG,EAAIC,GAAwB,CACnE,IAAMC,EAAW,IAAI,IAErB,OAAAD,EAAU,QAASE,GAAa,CAE5B,GAAIL,GAAoB,SAAW,MAAM,QAAQA,EAAmB,OAAO,EAAG,CAC1E,IAAIM,EAAU,GASd,GAPAN,EAAmB,QAAQ,QAASO,GAAU,CACtC,CAACD,GAAWD,EAAS,SAASE,CAAK,IACnCD,EAAU,GAElB,CAAC,EAGGA,EAAS,CACLP,EAAI,OACJ,QAAQ,KAAK,YAAYM,CAAQ,oCAAoC,EAGzE,MACJ,CACJ,CAEA,GAAI,CAEA,IAAMG,EAAeC,EAAqB,gBAAiBJ,CAAwB,EAEnFD,EAAS,IAAI,GAAGM,EAAkB,CAAC,gCAAgCF,CAAY,EAAE,CACrF,OAASG,EAAO,CACRZ,EAAI,OACJ,QAAQ,MAAMY,CAAK,CAE3B,CACJ,CAAC,EAEM,CAAC,GAAGP,CAAQ,CACvB,CACJ,EAEOQ,EAAQV","sourcesContent":["import { env } from \"node:process\";\n\nimport type { Config } from \"lint-staged\";\n\nimport getNearestConfigPath from \"../utils/get-nearest-config-path\";\nimport getPackageManager from \"../utils/get-package-manager\";\nimport anolilabLintStagedConfig from \"../utils/lint-staged-config\";\n\ninterface TypescriptConfig {\n exclude?: string[];\n}\n\ninterface StagedConfig {\n typescript?: TypescriptConfig;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nconst typescriptSettings: TypescriptConfig = (anolilabLintStagedConfig as StagedConfig)?.typescript ?? ({} as TypescriptConfig);\n\nconst group: Config = {\n [`**/*.{${[\"ts\", \"mts\", \"cts\"].join(\",\")}}`]: (filenames: string[]) => {\n const commands = new Set<string>();\n\n filenames.forEach((filePath) => {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (typescriptSettings?.exclude && Array.isArray(typescriptSettings.exclude)) {\n let exclude = false;\n\n typescriptSettings.exclude.forEach((value) => {\n if (!exclude && filePath.includes(value)) {\n exclude = true;\n }\n });\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (exclude) {\n if (env[\"DEBUG\"]) {\n console.info(`Skipping ${filePath} as it's excluded in the settings.`);\n }\n\n return;\n }\n }\n\n try {\n // eslint-disable-next-line no-template-curly-in-string\n const tsconfigPath = getNearestConfigPath(\"tsconfig.json\", filePath as \"/${string}\") as string;\n\n commands.add(`${getPackageManager()} exec tsc --noEmit --project ${tsconfigPath}`);\n } catch (error) {\n if (env[\"DEBUG\"]) {\n console.error(error);\n }\n }\n });\n\n return [...commands];\n },\n};\n\nexport default group;\n"]}
@@ -0,0 +1,10 @@
1
+ import { a } from './chunk-AVDVT4B7.mjs';
2
+ import { a as a$1 } from './chunk-HGDREIGE.mjs';
3
+ import { a as a$2 } from './chunk-COM4XKFJ.mjs';
4
+ import { env } from 'process';
5
+
6
+ var i=a?.typescript??{},f={[`**/*.{${["ts","mts","cts"].join(",")}}`]:g=>{let r=new Set;return g.forEach(e=>{if(i?.exclude&&Array.isArray(i.exclude)){let t=!1;if(i.exclude.forEach(a=>{!t&&e.includes(a)&&(t=!0);}),t){env.DEBUG&&console.info(`Skipping ${e} as it's excluded in the settings.`);return}}try{let t=a$1("tsconfig.json",e);r.add(`${a$2()} exec tsc --noEmit --project ${t}`);}catch(t){env.DEBUG&&console.error(t);}}),[...r]}},u=f;
7
+
8
+ export { u as a };
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=chunk-H67RQHXB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/groups/typescript.ts"],"names":["env","typescriptSettings","lint_staged_config_default","group","filenames","commands","filePath","exclude","value","tsconfigPath","get_nearest_config_path_default","get_package_manager_default","error","typescript_default"],"mappings":"2HAAA,OAAS,OAAAA,MAAW,UAiBpB,IAAMC,EAAwCC,GAA2C,YAAe,CAAC,EAEnGC,EAAgB,CAClB,CAAC,SAAS,CAAC,KAAM,MAAO,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG,EAAIC,GAAwB,CACnE,IAAMC,EAAW,IAAI,IAErB,OAAAD,EAAU,QAASE,GAAa,CAE5B,GAAIL,GAAoB,SAAW,MAAM,QAAQA,EAAmB,OAAO,EAAG,CAC1E,IAAIM,EAAU,GASd,GAPAN,EAAmB,QAAQ,QAASO,GAAU,CACtC,CAACD,GAAWD,EAAS,SAASE,CAAK,IACnCD,EAAU,GAElB,CAAC,EAGGA,EAAS,CACLP,EAAI,OACJ,QAAQ,KAAK,YAAYM,CAAQ,oCAAoC,EAGzE,MACJ,CACJ,CAEA,GAAI,CAEA,IAAMG,EAAeC,EAAqB,gBAAiBJ,CAAwB,EAEnFD,EAAS,IAAI,GAAGM,EAAkB,CAAC,gCAAgCF,CAAY,EAAE,CACrF,OAASG,EAAO,CACRZ,EAAI,OACJ,QAAQ,MAAMY,CAAK,CAE3B,CACJ,CAAC,EAEM,CAAC,GAAGP,CAAQ,CACvB,CACJ,EAEOQ,EAAQV","sourcesContent":["import { env } from \"node:process\";\n\nimport type { Config } from \"lint-staged\";\n\nimport getNearestConfigPath from \"../utils/get-nearest-config-path\";\nimport getPackageManager from \"../utils/get-package-manager\";\nimport anolilabLintStagedConfig from \"../utils/lint-staged-config\";\n\ninterface TypescriptConfig {\n exclude?: string[];\n}\n\ninterface StagedConfig {\n typescript?: TypescriptConfig;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nconst typescriptSettings: TypescriptConfig = (anolilabLintStagedConfig as StagedConfig)?.typescript ?? ({} as TypescriptConfig);\n\nconst group: Config = {\n [`**/*.{${[\"ts\", \"mts\", \"cts\"].join(\",\")}}`]: (filenames: string[]) => {\n const commands = new Set<string>();\n\n filenames.forEach((filePath) => {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (typescriptSettings?.exclude && Array.isArray(typescriptSettings.exclude)) {\n let exclude = false;\n\n typescriptSettings.exclude.forEach((value) => {\n if (!exclude && filePath.includes(value)) {\n exclude = true;\n }\n });\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (exclude) {\n if (env[\"DEBUG\"]) {\n console.info(`Skipping ${filePath} as it's excluded in the settings.`);\n }\n\n return;\n }\n }\n\n try {\n // eslint-disable-next-line no-template-curly-in-string\n const tsconfigPath = getNearestConfigPath(\"tsconfig.json\", filePath as \"/${string}\") as string;\n\n commands.add(`${getPackageManager()} exec tsc --noEmit --project ${tsconfigPath}`);\n } catch (error) {\n if (env[\"DEBUG\"]) {\n console.error(error);\n }\n }\n });\n\n return [...commands];\n },\n};\n\nexport default group;\n"]}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkUR56W6TT_js = require('../chunk-UR56W6TT.js');
3
+ var chunkDVFT7GIT_js = require('../chunk-DVFT7GIT.js');
4
4
  require('../chunk-OYUEMN5Q.js');
5
5
  require('../chunk-VU6SMFTD.js');
6
6
  require('../chunk-P4FK54EG.js');
7
7
 
8
8
 
9
9
 
10
- module.exports = chunkUR56W6TT_js.a;
10
+ module.exports = chunkDVFT7GIT_js.a;
11
11
  //# sourceMappingURL=out.js.map
12
12
  //# sourceMappingURL=typescript.js.map
@@ -1,4 +1,4 @@
1
- export { a as default } from '../chunk-SM3HOCTK.mjs';
1
+ export { a as default } from '../chunk-H67RQHXB.mjs';
2
2
  import '../chunk-AVDVT4B7.mjs';
3
3
  import '../chunk-HGDREIGE.mjs';
4
4
  import '../chunk-COM4XKFJ.mjs';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUR56W6TT_js = require('./chunk-UR56W6TT.js');
3
+ var chunkDVFT7GIT_js = require('./chunk-DVFT7GIT.js');
4
4
  var chunkOHF7NDU3_js = require('./chunk-OHF7NDU3.js');
5
5
  var chunkOYUEMN5Q_js = require('./chunk-OYUEMN5Q.js');
6
6
  require('./chunk-VU6SMFTD.js');
@@ -14,7 +14,7 @@ require('./chunk-P4FK54EG.js');
14
14
  var process = require('process');
15
15
  var packageJsonUtils = require('@anolilab/package-json-utils');
16
16
 
17
- var y=[{config:chunkOHF7NDU3_js.a,configName:"eslint",dependencies:["prettier","eslint"]},{config:chunkTNK6LFGX_js.a,configName:"json",dependencies:["prettier","sort-package-json"]},{config:chunk4PAU4XRY_js.a,configName:"markdown",dependencies:["prettier","markdownlint-cli","markdownlint-cli2"]},{config:chunk6IRNLWX6_js.a,configName:"secretlint",dependencies:["secretlint"]},{config:chunk5J6LVG23_js.a,configName:"stylesheets",dependencies:["stylelint"]},{config:chunkAUGHUNNL_js.a,configName:"tests",dependencies:["vite","jest","ava"]},{config:chunkUR56W6TT_js.a,configName:"typescript",dependencies:["typescript"]}],g={},r=[],a={};y.forEach(t=>{let{config:n,configName:i,dependencies:l}=t;if(chunkOYUEMN5Q_js.a.plugin?.[i]!==!1){let s=[];l.forEach(e=>{(packageJsonUtils.hasDependency(e)||packageJsonUtils.hasDevDependency(e))&&s.push(e);}),s.length>0?(g={...g,...n},r.push(i)):(a[i]={},l.forEach(e=>{a[i][e]=packageJsonUtils.hasDependency(e)||packageJsonUtils.hasDevDependency(e);}));}});var w={...g};var j=()=>{},k=t=>process.env.NO_LOGS?j:n=>console.log(`${t}${n}`),O=k(""),o=O;if(!global.hasAnolilabStagedLintConfigLoaded){process.env.DEBUG&&(o(`
17
+ var y=[{config:chunkOHF7NDU3_js.a,configName:"eslint",dependencies:["prettier","eslint"]},{config:chunkTNK6LFGX_js.a,configName:"json",dependencies:["prettier","sort-package-json"]},{config:chunk4PAU4XRY_js.a,configName:"markdown",dependencies:["prettier","markdownlint-cli","markdownlint-cli2"]},{config:chunk6IRNLWX6_js.a,configName:"secretlint",dependencies:["secretlint"]},{config:chunk5J6LVG23_js.a,configName:"stylesheets",dependencies:["stylelint"]},{config:chunkAUGHUNNL_js.a,configName:"tests",dependencies:["vite","jest","ava"]},{config:chunkDVFT7GIT_js.a,configName:"typescript",dependencies:["typescript"]}],g={},r=[],a={};y.forEach(t=>{let{config:n,configName:i,dependencies:l}=t;if(chunkOYUEMN5Q_js.a.plugin?.[i]!==!1){let s=[];l.forEach(e=>{(packageJsonUtils.hasDependency(e)||packageJsonUtils.hasDevDependency(e))&&s.push(e);}),s.length>0?(g={...g,...n},r.push(i)):(a[i]={},l.forEach(e=>{a[i][e]=packageJsonUtils.hasDependency(e)||packageJsonUtils.hasDevDependency(e);}));}});var w={...g};var j=()=>{},k=t=>process.env.NO_LOGS?j:n=>console.log(`${t}${n}`),O=k(""),o=O;if(!global.hasAnolilabStagedLintConfigLoaded){process.env.DEBUG&&(o(`
18
18
  @anolilab/lint-stage-config loaded the following plugins:
19
19
  `),r.forEach(n=>{o(` ${n}`);}));let t=!1;Object.entries(a).forEach(([n,i])=>{Object.values(i).some(Boolean)&&(t=!0,o(`
20
20
  Your package.json container dependencies for the "${n}" plugin, please add the following dependencies with your chosen package manager to enable this plugin:`),Object.entries(i).forEach(([s,e])=>{e||o(` ${s}`);}));}),t&&(o(`
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as a$8 } from './chunk-SM3HOCTK.mjs';
1
+ import { a as a$8 } from './chunk-H67RQHXB.mjs';
2
2
  import { a as a$2 } from './chunk-GTUWYYHD.mjs';
3
3
  import { a as a$1 } from './chunk-AVDVT4B7.mjs';
4
4
  import './chunk-HGDREIGE.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/lint-staged-config",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Shareable Lint-Staged Config for any project.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -1,10 +0,0 @@
1
- import { a } from './chunk-AVDVT4B7.mjs';
2
- import { a as a$1 } from './chunk-HGDREIGE.mjs';
3
- import { a as a$2 } from './chunk-COM4XKFJ.mjs';
4
- import { env } from 'process';
5
-
6
- var g=a?.typescript??{},p={[`**/*.{${["ts","mts","cts"].join(",")}}`]:c=>{let e=new Set;return c.forEach(t=>{if(g.exclude?.includes(t)){env.DEBUG&&console.info(`Skipping ${t} as it's excluded in the settings.`);return}try{let i=a$1("tsconfig.json",t);e.add(`${a$2()} exec tsc --noEmit --project ${i}`);}catch(i){env.DEBUG&&console.error(i);}}),[...e]}},C=p;
7
-
8
- export { C as a };
9
- //# sourceMappingURL=out.js.map
10
- //# sourceMappingURL=chunk-SM3HOCTK.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/groups/typescript.ts"],"names":["env","typescriptSettings","lint_staged_config_default","group","filenames","commands","filePath","tsconfigPath","get_nearest_config_path_default","get_package_manager_default","error","typescript_default"],"mappings":"2HAAA,OAAS,OAAAA,MAAW,UAiBpB,IAAMC,EAAwCC,GAA2C,YAAe,CAAC,EAEnGC,EAAgB,CAClB,CAAC,SAAS,CAAC,KAAM,MAAO,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG,EAAIC,GAAwB,CACnE,IAAMC,EAAW,IAAI,IAErB,OAAAD,EAAU,QAASE,GAAa,CAC5B,GAAIL,EAAmB,SAAS,SAASK,CAAQ,EAAG,CAC5CN,EAAI,OACJ,QAAQ,KAAK,YAAYM,CAAQ,oCAAoC,EAGzE,MACJ,CAEA,GAAI,CAEA,IAAMC,EAAeC,EAAqB,gBAAiBF,CAAwB,EAEnFD,EAAS,IAAI,GAAGI,EAAkB,CAAC,gCAAgCF,CAAY,EAAE,CACrF,OAASG,EAAO,CACRV,EAAI,OACJ,QAAQ,MAAMU,CAAK,CAE3B,CACJ,CAAC,EAEM,CAAC,GAAGL,CAAQ,CACvB,CACJ,EAEOM,EAAQR","sourcesContent":["import { env } from \"node:process\";\n\nimport type { Config } from \"lint-staged\";\n\nimport getNearestConfigPath from \"../utils/get-nearest-config-path\";\nimport getPackageManager from \"../utils/get-package-manager\";\nimport anolilabLintStagedConfig from \"../utils/lint-staged-config\";\n\ninterface TypescriptConfig {\n exclude?: string[];\n}\n\ninterface StagedConfig {\n typescript?: TypescriptConfig;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nconst typescriptSettings: TypescriptConfig = (anolilabLintStagedConfig as StagedConfig)?.typescript ?? ({} as TypescriptConfig);\n\nconst group: Config = {\n [`**/*.{${[\"ts\", \"mts\", \"cts\"].join(\",\")}}`]: (filenames: string[]) => {\n const commands = new Set<string>();\n\n filenames.forEach((filePath) => {\n if (typescriptSettings.exclude?.includes(filePath)) {\n if (env[\"DEBUG\"]) {\n console.info(`Skipping ${filePath} as it's excluded in the settings.`);\n }\n\n return;\n }\n\n try {\n // eslint-disable-next-line no-template-curly-in-string\n const tsconfigPath = getNearestConfigPath(\"tsconfig.json\", filePath as \"/${string}\") as string;\n\n commands.add(`${getPackageManager()} exec tsc --noEmit --project ${tsconfigPath}`);\n } catch (error) {\n if (env[\"DEBUG\"]) {\n console.error(error);\n }\n }\n });\n\n return [...commands];\n },\n};\n\nexport default group;\n"]}
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkOYUEMN5Q_js = require('./chunk-OYUEMN5Q.js');
4
- var chunkVU6SMFTD_js = require('./chunk-VU6SMFTD.js');
5
- var chunkP4FK54EG_js = require('./chunk-P4FK54EG.js');
6
- var process = require('process');
7
-
8
- var g=chunkOYUEMN5Q_js.a?.typescript??{},p={[`**/*.{${["ts","mts","cts"].join(",")}}`]:c=>{let e=new Set;return c.forEach(t=>{if(g.exclude?.includes(t)){process.env.DEBUG&&console.info(`Skipping ${t} as it's excluded in the settings.`);return}try{let i=chunkVU6SMFTD_js.a("tsconfig.json",t);e.add(`${chunkP4FK54EG_js.a()} exec tsc --noEmit --project ${i}`);}catch(i){process.env.DEBUG&&console.error(i);}}),[...e]}},C=p;
9
-
10
- exports.a = C;
11
- //# sourceMappingURL=out.js.map
12
- //# sourceMappingURL=chunk-UR56W6TT.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/groups/typescript.ts"],"names":["env","typescriptSettings","lint_staged_config_default","group","filenames","commands","filePath","tsconfigPath","get_nearest_config_path_default","get_package_manager_default","error","typescript_default"],"mappings":"wHAAA,OAAS,OAAAA,MAAW,UAiBpB,IAAMC,EAAwCC,GAA2C,YAAe,CAAC,EAEnGC,EAAgB,CAClB,CAAC,SAAS,CAAC,KAAM,MAAO,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG,EAAIC,GAAwB,CACnE,IAAMC,EAAW,IAAI,IAErB,OAAAD,EAAU,QAASE,GAAa,CAC5B,GAAIL,EAAmB,SAAS,SAASK,CAAQ,EAAG,CAC5CN,EAAI,OACJ,QAAQ,KAAK,YAAYM,CAAQ,oCAAoC,EAGzE,MACJ,CAEA,GAAI,CAEA,IAAMC,EAAeC,EAAqB,gBAAiBF,CAAwB,EAEnFD,EAAS,IAAI,GAAGI,EAAkB,CAAC,gCAAgCF,CAAY,EAAE,CACrF,OAASG,EAAO,CACRV,EAAI,OACJ,QAAQ,MAAMU,CAAK,CAE3B,CACJ,CAAC,EAEM,CAAC,GAAGL,CAAQ,CACvB,CACJ,EAEOM,EAAQR","sourcesContent":["import { env } from \"node:process\";\n\nimport type { Config } from \"lint-staged\";\n\nimport getNearestConfigPath from \"../utils/get-nearest-config-path\";\nimport getPackageManager from \"../utils/get-package-manager\";\nimport anolilabLintStagedConfig from \"../utils/lint-staged-config\";\n\ninterface TypescriptConfig {\n exclude?: string[];\n}\n\ninterface StagedConfig {\n typescript?: TypescriptConfig;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nconst typescriptSettings: TypescriptConfig = (anolilabLintStagedConfig as StagedConfig)?.typescript ?? ({} as TypescriptConfig);\n\nconst group: Config = {\n [`**/*.{${[\"ts\", \"mts\", \"cts\"].join(\",\")}}`]: (filenames: string[]) => {\n const commands = new Set<string>();\n\n filenames.forEach((filePath) => {\n if (typescriptSettings.exclude?.includes(filePath)) {\n if (env[\"DEBUG\"]) {\n console.info(`Skipping ${filePath} as it's excluded in the settings.`);\n }\n\n return;\n }\n\n try {\n // eslint-disable-next-line no-template-curly-in-string\n const tsconfigPath = getNearestConfigPath(\"tsconfig.json\", filePath as \"/${string}\") as string;\n\n commands.add(`${getPackageManager()} exec tsc --noEmit --project ${tsconfigPath}`);\n } catch (error) {\n if (env[\"DEBUG\"]) {\n console.error(error);\n }\n }\n });\n\n return [...commands];\n },\n};\n\nexport default group;\n"]}