@mnci/cli 1.15.9 → 1.16.0

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/dist/cli.js CHANGED
@@ -1365,6 +1365,21 @@ function eslintConfigSpec() {
1365
1365
  return process.env.MNCI_ESLINT_CONFIG_SPEC ?? ESLINT_CONFIG_VERSION;
1366
1366
  }
1367
1367
  var ESLINT_VERSION = "^10.8.0";
1368
+ var ROOT_LINT_TARGET = {
1369
+ executor: "nx:run-commands",
1370
+ cache: true,
1371
+ options: {
1372
+ command: [
1373
+ "eslint .",
1374
+ '--ignore-pattern "apps/**"',
1375
+ '--ignore-pattern "libs/**"',
1376
+ '--ignore-pattern "packages/**"',
1377
+ '--ignore-pattern "python-packages/**"',
1378
+ "--ignore-pattern package-lock.json"
1379
+ ].join(" "),
1380
+ cwd: "."
1381
+ }
1382
+ };
1368
1383
  var ESLINT_PEER_OVERRIDES = {
1369
1384
  "eslint-plugin-jsx-a11y": { eslint: "$eslint" }
1370
1385
  };
@@ -2041,6 +2056,15 @@ function applyOverlay(workspaceRoot, options) {
2041
2056
  ...manifest.overrides,
2042
2057
  ...ESLINT_PEER_OVERRIDES
2043
2058
  };
2059
+ const existingNx = manifest.nx;
2060
+ const nx = {
2061
+ ...existingNx,
2062
+ includedScripts: existingNx?.includedScripts ?? [],
2063
+ targets: {
2064
+ ...existingNx?.targets,
2065
+ lint: ROOT_LINT_TARGET
2066
+ }
2067
+ };
2044
2068
  writeFileEnsured(
2045
2069
  manifestPath,
2046
2070
  toJson({
@@ -2048,7 +2072,8 @@ function applyOverlay(workspaceRoot, options) {
2048
2072
  name: `${options.scope}/source`,
2049
2073
  scripts,
2050
2074
  devDependencies: devDeps,
2051
- overrides
2075
+ overrides,
2076
+ nx
2052
2077
  })
2053
2078
  );
2054
2079
  writeFileEnsured((0, import_node_path11.join)(workspaceRoot, ".npmrc"), npmrcContent(options.registry, options.scope));