@useinsider/eslint-config 4.0.0-beta.4 → 4.0.0-beta.6

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.cjs CHANGED
@@ -370,7 +370,10 @@ async function dispatch(argv, cwd, deps) {
370
370
  }
371
371
  //#endregion
372
372
  //#region src/configs/dependencies.ts
373
- var dependencies$14 = { oxlint: true };
373
+ var dependencies$14 = {
374
+ jiti: true,
375
+ oxlint: true
376
+ };
374
377
  //#endregion
375
378
  //#region src/configs/jest/dependencies.ts
376
379
  var dependencies$13 = { "eslint-plugin-jest": true };
@@ -1786,7 +1789,11 @@ var PREFIX_PATTERNS = [
1786
1789
  "eslint-"
1787
1790
  ];
1788
1791
  var SCOPED_ESLINT_PATTERNS = [/^@[^/]+\/eslint-/u, /^@typescript-eslint\//u];
1789
- var SAFELIST = /* @__PURE__ */ new Set(["typescript", "@types/eslint"]);
1792
+ var SAFELIST = /* @__PURE__ */ new Set([
1793
+ "typescript",
1794
+ "@types/eslint",
1795
+ "jiti"
1796
+ ]);
1790
1797
  var SCOPE_TO_DEPS = {
1791
1798
  javascript: dependencies$6,
1792
1799
  javascriptDom: dependencies$5,
@@ -5372,6 +5379,7 @@ function resolveInstallCwd(depSummary, input) {
5372
5379
  return input.cwd;
5373
5380
  }
5374
5381
  async function runInstaller(clack, depSummary, input) {
5382
+ persistPrunedManifest(depSummary);
5375
5383
  return installWithRetry({
5376
5384
  deps: depSummary.install.specs,
5377
5385
  cwd: resolveInstallCwd(depSummary, input),
@@ -5386,7 +5394,6 @@ async function applyDepChanges(clack, depSummary, input) {
5386
5394
  if (clack.note) clack.note("No package.json found alongside the migrated config — skipping dependency updates.", "Notice");
5387
5395
  return true;
5388
5396
  }
5389
- persistPrunedManifest(depSummary);
5390
5397
  if (input.noInstall) {
5391
5398
  emitInstallNextSteps(clack, depSummary, input.cwd);
5392
5399
  return true;
@@ -5399,7 +5406,10 @@ async function applyDepChanges(clack, depSummary, input) {
5399
5406
  }
5400
5407
  noteFallbacks(clack, depSummary);
5401
5408
  if (!(await runInstaller(clack, depSummary, input)).installed) {
5402
- emitInstallNextSteps(clack, depSummary, input.cwd);
5409
+ emitInstallNextSteps(clack, {
5410
+ ...depSummary,
5411
+ removed: []
5412
+ }, input.cwd);
5403
5413
  return false;
5404
5414
  }
5405
5415
  return true;