storybook 9.1.0-alpha.6 → 9.1.0-alpha.7

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.
Files changed (83) hide show
  1. package/assets/browser/favicon-wrapper.svg +46 -0
  2. package/assets/browser/favicon.svg +1 -1
  3. package/dist/bin/index.cjs +43 -43
  4. package/dist/bin/index.js +43 -43
  5. package/dist/cli/bin/index.cjs +513 -513
  6. package/dist/cli/bin/index.js +535 -535
  7. package/dist/cli/index.cjs +2454 -2453
  8. package/dist/cli/index.d.ts +10 -3
  9. package/dist/cli/index.js +2436 -2435
  10. package/dist/common/index.cjs +64 -61
  11. package/dist/common/index.d.ts +9 -3
  12. package/dist/common/index.js +64 -61
  13. package/dist/components/index.cjs +1459 -1447
  14. package/dist/components/index.d.ts +1 -0
  15. package/dist/components/index.js +407 -394
  16. package/dist/core-server/index.cjs +5833 -5819
  17. package/dist/core-server/index.d.ts +4 -1
  18. package/dist/core-server/index.js +4848 -4835
  19. package/dist/core-server/presets/common-manager.js +3403 -3332
  20. package/dist/core-server/presets/common-preset.cjs +1831 -1837
  21. package/dist/core-server/presets/common-preset.js +1787 -1792
  22. package/dist/csf/index.cjs +2536 -736
  23. package/dist/csf/index.d.ts +250 -9
  24. package/dist/csf/index.js +2558 -749
  25. package/dist/instrumenter/index.cjs +1150 -1099
  26. package/dist/instrumenter/index.d.ts +1 -0
  27. package/dist/instrumenter/index.js +1261 -1214
  28. package/dist/manager/globals-runtime.js +21313 -23957
  29. package/dist/manager/runtime.js +3713 -3534
  30. package/dist/manager-api/index.cjs +3 -3
  31. package/dist/manager-api/index.d.ts +8 -531
  32. package/dist/manager-api/index.js +3 -3
  33. package/dist/node-logger/index.cjs +1620 -1620
  34. package/dist/node-logger/index.js +1619 -1619
  35. package/dist/preview/runtime.js +13337 -16032
  36. package/dist/preview-api/index.cjs +273 -271
  37. package/dist/preview-api/index.d.ts +4 -1
  38. package/dist/preview-api/index.js +14 -12
  39. package/dist/telemetry/index.cjs +500 -500
  40. package/dist/telemetry/index.js +478 -478
  41. package/dist/test/index.cjs +9136 -9815
  42. package/dist/test/index.js +8339 -9025
  43. package/dist/types/index.d.ts +12 -12
  44. package/package.json +5 -196
  45. package/dist/actions/preview.cjs +0 -159
  46. package/dist/actions/preview.d.ts +0 -45
  47. package/dist/actions/preview.js +0 -149
  48. package/dist/backgrounds/index.cjs +0 -16
  49. package/dist/backgrounds/index.d.ts +0 -2
  50. package/dist/backgrounds/index.js +0 -0
  51. package/dist/backgrounds/preview.cjs +0 -143
  52. package/dist/backgrounds/preview.d.ts +0 -53
  53. package/dist/backgrounds/preview.js +0 -127
  54. package/dist/component-testing/index.cjs +0 -23
  55. package/dist/component-testing/index.d.ts +0 -3
  56. package/dist/component-testing/index.js +0 -5
  57. package/dist/component-testing/preview.cjs +0 -40
  58. package/dist/component-testing/preview.d.ts +0 -5
  59. package/dist/component-testing/preview.js +0 -25
  60. package/dist/controls/preview.cjs +0 -26
  61. package/dist/controls/preview.d.ts +0 -43
  62. package/dist/controls/preview.js +0 -9
  63. package/dist/highlight/preview.cjs +0 -590
  64. package/dist/highlight/preview.d.ts +0 -20
  65. package/dist/highlight/preview.js +0 -575
  66. package/dist/measure/index.cjs +0 -16
  67. package/dist/measure/index.d.ts +0 -2
  68. package/dist/measure/index.js +0 -0
  69. package/dist/measure/preview.cjs +0 -466
  70. package/dist/measure/preview.d.ts +0 -25
  71. package/dist/measure/preview.js +0 -450
  72. package/dist/outline/index.cjs +0 -16
  73. package/dist/outline/index.d.ts +0 -2
  74. package/dist/outline/index.js +0 -0
  75. package/dist/outline/preview.cjs +0 -518
  76. package/dist/outline/preview.d.ts +0 -25
  77. package/dist/outline/preview.js +0 -486
  78. package/dist/test/preview.cjs +0 -73
  79. package/dist/test/preview.d.ts +0 -17
  80. package/dist/test/preview.js +0 -66
  81. package/dist/viewport/preview.cjs +0 -35
  82. package/dist/viewport/preview.d.ts +0 -62
  83. package/dist/viewport/preview.js +0 -19
@@ -18671,49 +18671,49 @@ module.exports = fe(aO);
18671
18671
 
18672
18672
  // src/common/versions.ts
18673
18673
  var We = {
18674
- "@storybook/addon-a11y": "9.1.0-alpha.6",
18675
- "@storybook/addon-docs": "9.1.0-alpha.6",
18676
- "@storybook/addon-jest": "9.1.0-alpha.6",
18677
- "@storybook/addon-links": "9.1.0-alpha.6",
18678
- "@storybook/addon-onboarding": "9.1.0-alpha.6",
18679
- "storybook-addon-pseudo-states": "9.1.0-alpha.6",
18680
- "@storybook/addon-themes": "9.1.0-alpha.6",
18681
- "@storybook/addon-vitest": "9.1.0-alpha.6",
18682
- "@storybook/builder-vite": "9.1.0-alpha.6",
18683
- "@storybook/builder-webpack5": "9.1.0-alpha.6",
18684
- storybook: "9.1.0-alpha.6",
18685
- "@storybook/angular": "9.1.0-alpha.6",
18686
- "@storybook/ember": "9.1.0-alpha.6",
18687
- "@storybook/html-vite": "9.1.0-alpha.6",
18688
- "@storybook/nextjs": "9.1.0-alpha.6",
18689
- "@storybook/nextjs-vite": "9.1.0-alpha.6",
18690
- "@storybook/preact-vite": "9.1.0-alpha.6",
18691
- "@storybook/react-native-web-vite": "9.1.0-alpha.6",
18692
- "@storybook/react-vite": "9.1.0-alpha.6",
18693
- "@storybook/react-webpack5": "9.1.0-alpha.6",
18694
- "@storybook/server-webpack5": "9.1.0-alpha.6",
18695
- "@storybook/svelte-vite": "9.1.0-alpha.6",
18696
- "@storybook/sveltekit": "9.1.0-alpha.6",
18697
- "@storybook/vue3-vite": "9.1.0-alpha.6",
18698
- "@storybook/web-components-vite": "9.1.0-alpha.6",
18699
- sb: "9.1.0-alpha.6",
18700
- "@storybook/cli": "9.1.0-alpha.6",
18701
- "@storybook/codemod": "9.1.0-alpha.6",
18702
- "@storybook/core-webpack": "9.1.0-alpha.6",
18703
- "create-storybook": "9.1.0-alpha.6",
18704
- "@storybook/csf-plugin": "9.1.0-alpha.6",
18705
- "eslint-plugin-storybook": "9.1.0-alpha.6",
18706
- "@storybook/react-dom-shim": "9.1.0-alpha.6",
18707
- "@storybook/preset-create-react-app": "9.1.0-alpha.6",
18708
- "@storybook/preset-react-webpack": "9.1.0-alpha.6",
18709
- "@storybook/preset-server-webpack": "9.1.0-alpha.6",
18710
- "@storybook/html": "9.1.0-alpha.6",
18711
- "@storybook/preact": "9.1.0-alpha.6",
18712
- "@storybook/react": "9.1.0-alpha.6",
18713
- "@storybook/server": "9.1.0-alpha.6",
18714
- "@storybook/svelte": "9.1.0-alpha.6",
18715
- "@storybook/vue3": "9.1.0-alpha.6",
18716
- "@storybook/web-components": "9.1.0-alpha.6"
18674
+ "@storybook/addon-a11y": "9.1.0-alpha.7",
18675
+ "@storybook/addon-docs": "9.1.0-alpha.7",
18676
+ "@storybook/addon-jest": "9.1.0-alpha.7",
18677
+ "@storybook/addon-links": "9.1.0-alpha.7",
18678
+ "@storybook/addon-onboarding": "9.1.0-alpha.7",
18679
+ "storybook-addon-pseudo-states": "9.1.0-alpha.7",
18680
+ "@storybook/addon-themes": "9.1.0-alpha.7",
18681
+ "@storybook/addon-vitest": "9.1.0-alpha.7",
18682
+ "@storybook/builder-vite": "9.1.0-alpha.7",
18683
+ "@storybook/builder-webpack5": "9.1.0-alpha.7",
18684
+ storybook: "9.1.0-alpha.7",
18685
+ "@storybook/angular": "9.1.0-alpha.7",
18686
+ "@storybook/ember": "9.1.0-alpha.7",
18687
+ "@storybook/html-vite": "9.1.0-alpha.7",
18688
+ "@storybook/nextjs": "9.1.0-alpha.7",
18689
+ "@storybook/nextjs-vite": "9.1.0-alpha.7",
18690
+ "@storybook/preact-vite": "9.1.0-alpha.7",
18691
+ "@storybook/react-native-web-vite": "9.1.0-alpha.7",
18692
+ "@storybook/react-vite": "9.1.0-alpha.7",
18693
+ "@storybook/react-webpack5": "9.1.0-alpha.7",
18694
+ "@storybook/server-webpack5": "9.1.0-alpha.7",
18695
+ "@storybook/svelte-vite": "9.1.0-alpha.7",
18696
+ "@storybook/sveltekit": "9.1.0-alpha.7",
18697
+ "@storybook/vue3-vite": "9.1.0-alpha.7",
18698
+ "@storybook/web-components-vite": "9.1.0-alpha.7",
18699
+ sb: "9.1.0-alpha.7",
18700
+ "@storybook/cli": "9.1.0-alpha.7",
18701
+ "@storybook/codemod": "9.1.0-alpha.7",
18702
+ "@storybook/core-webpack": "9.1.0-alpha.7",
18703
+ "create-storybook": "9.1.0-alpha.7",
18704
+ "@storybook/csf-plugin": "9.1.0-alpha.7",
18705
+ "eslint-plugin-storybook": "9.1.0-alpha.7",
18706
+ "@storybook/react-dom-shim": "9.1.0-alpha.7",
18707
+ "@storybook/preset-create-react-app": "9.1.0-alpha.7",
18708
+ "@storybook/preset-react-webpack": "9.1.0-alpha.7",
18709
+ "@storybook/preset-server-webpack": "9.1.0-alpha.7",
18710
+ "@storybook/html": "9.1.0-alpha.7",
18711
+ "@storybook/preact": "9.1.0-alpha.7",
18712
+ "@storybook/react": "9.1.0-alpha.7",
18713
+ "@storybook/server": "9.1.0-alpha.7",
18714
+ "@storybook/svelte": "9.1.0-alpha.7",
18715
+ "@storybook/vue3": "9.1.0-alpha.7",
18716
+ "@storybook/web-components": "9.1.0-alpha.7"
18717
18717
  };
18718
18718
 
18719
18719
  // src/common/presets.ts
@@ -23644,7 +23644,7 @@ var is = class {
23644
23644
  s(this, "FileSystemCache");
23645
23645
  }
23646
23646
  constructor(A = {}) {
23647
- this.prefix = (A.ns || A.prefix || "") + "-", this.hash_alg = A.hash_alg || "md5", this.cache_dir = A.basePath || (0, Zr.join)((0, Ju.tmpdir)(),
23647
+ this.prefix = (A.ns || A.prefix || "") + "-", this.hash_alg = A.hash_alg || "sha256", this.cache_dir = A.basePath || (0, Zr.join)((0, Ju.tmpdir)(),
23648
23648
  (0, rs.randomBytes)(15).toString("base64").replace(/\//g, "-")), this.ttl = A.ttl || 0, (0, rs.createHash)(this.hash_alg), (0, he.mkdirSync)(
23649
23649
  this.cache_dir, { recursive: !0 });
23650
23650
  }
@@ -25434,21 +25434,24 @@ var qA = class t {
25434
25434
  }
25435
25435
  return !1;
25436
25436
  }
25437
- async installDependencies() {
25438
- await le.prompt.executeTask(() => this.runInstall(), {
25437
+ async installDependencies(A) {
25438
+ await le.prompt.executeTask(() => this.runInstall(A), {
25439
25439
  id: "install-dependencies",
25440
25440
  intro: "Installing dependencies...",
25441
25441
  error: "An error occurred while installing dependencies.",
25442
25442
  success: "Dependencies installed"
25443
25443
  }), this.clearInstalledVersionCache();
25444
25444
  }
25445
- async dedupeDependencies() {
25446
- await le.prompt.executeTask(() => this.runInternalCommand("dedupe", [], this.cwd), {
25447
- id: "dedupe-dependencies",
25448
- intro: "Deduplicating dependencies...",
25449
- error: "An error occurred while deduplicating dependencies.",
25450
- success: "Dependencies deduplicated"
25451
- }), this.clearInstalledVersionCache();
25445
+ async dedupeDependencies(A) {
25446
+ await le.prompt.executeTask(
25447
+ () => this.runInternalCommand("dedupe", [...A?.force ? ["--force"] : []], this.cwd),
25448
+ {
25449
+ id: "dedupe-dependencies",
25450
+ intro: "Deduplicating dependencies...",
25451
+ error: "An error occurred while deduplicating dependencies.",
25452
+ success: "Dependencies deduplicated"
25453
+ }
25454
+ ), this.clearInstalledVersionCache();
25452
25455
  }
25453
25456
  /** Read the `package.json` file available in the provided directory */
25454
25457
  static getPackageJson(A) {
@@ -26813,10 +26816,10 @@ var Z0 = /npm ERR! code (\w+)/, $0 = {
26813
26816
  }
26814
26817
  };
26815
26818
  }
26816
- runInstall() {
26819
+ runInstall(e) {
26817
26820
  return this.executeCommand({
26818
26821
  command: "bun",
26819
- args: ["install", ...this.getInstallArgs()],
26822
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
26820
26823
  stdio: "inherit",
26821
26824
  cwd: this.cwd
26822
26825
  });
@@ -27010,10 +27013,10 @@ var Av = /npm (ERR!|error) (code|errno) (\w+)/i, ev = {
27010
27013
  }
27011
27014
  };
27012
27015
  }
27013
- runInstall() {
27016
+ runInstall(e) {
27014
27017
  return this.executeCommand({
27015
27018
  command: "npm",
27016
- args: ["install", ...this.getInstallArgs()],
27019
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
27017
27020
  cwd: this.cwd,
27018
27021
  stdio: ms.prompt.getPreferredStdio()
27019
27022
  });
@@ -27196,10 +27199,10 @@ var tv = /(ELIFECYCLE|ERR_PNPM_[A-Z_]+)\s+(.*)/i, ko = class extends qA {
27196
27199
  }
27197
27200
  };
27198
27201
  }
27199
- runInstall() {
27202
+ runInstall(e) {
27200
27203
  return this.executeCommand({
27201
27204
  command: "pnpm",
27202
- args: ["install", ...this.getInstallArgs()],
27205
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
27203
27206
  stdio: Cc.prompt.getPreferredStdio(),
27204
27207
  cwd: this.cwd
27205
27208
  });
@@ -27347,10 +27350,10 @@ var rv = /^error\s(.*)$/gm, No = class extends qA {
27347
27350
  }
27348
27351
  };
27349
27352
  }
27350
- runInstall() {
27353
+ runInstall(e) {
27351
27354
  return this.executeCommand({
27352
27355
  command: "yarn",
27353
- args: ["install", ...this.getInstallArgs()],
27356
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
27354
27357
  stdio: cc.prompt.getPreferredStdio(),
27355
27358
  cwd: this.cwd
27356
27359
  });
@@ -713,8 +713,12 @@ declare abstract class JsPackageManager {
713
713
  /** Get the package.json file for a given module. */
714
714
  abstract getModulePackageJSON(packageName: string): PackageJson | null;
715
715
  isStorybookInMonorepo(): boolean;
716
- installDependencies(): Promise<void>;
717
- dedupeDependencies(): Promise<void>;
716
+ installDependencies(options?: {
717
+ force?: boolean;
718
+ }): Promise<void>;
719
+ dedupeDependencies(options?: {
720
+ force?: boolean;
721
+ }): Promise<void>;
718
722
  /** Read the `package.json` file available in the provided directory */
719
723
  static getPackageJson(packageJsonPath: string): PackageJsonWithDepsAndDevDeps;
720
724
  writePackageJson(packageJson: PackageJson, directory?: string): void;
@@ -823,7 +827,9 @@ declare abstract class JsPackageManager {
823
827
  }): void;
824
828
  addScripts(scripts: Record<string, string>): void;
825
829
  addPackageResolutions(versions: Record<string, string>): void;
826
- protected abstract runInstall(): ExecaChildProcess;
830
+ protected abstract runInstall(options?: {
831
+ force?: boolean;
832
+ }): ExecaChildProcess;
827
833
  protected abstract runAddDeps(dependencies: string[], installAsDevDependencies: boolean, writeOutputToFile?: boolean): ExecaChildProcess;
828
834
  protected abstract getResolutions(packageJson: PackageJson, versions: Record<string, string>): Record<string, any>;
829
835
  /**
@@ -18599,49 +18599,49 @@ var CK = ue(() => {
18599
18599
 
18600
18600
  // src/common/versions.ts
18601
18601
  var nt = {
18602
- "@storybook/addon-a11y": "9.1.0-alpha.6",
18603
- "@storybook/addon-docs": "9.1.0-alpha.6",
18604
- "@storybook/addon-jest": "9.1.0-alpha.6",
18605
- "@storybook/addon-links": "9.1.0-alpha.6",
18606
- "@storybook/addon-onboarding": "9.1.0-alpha.6",
18607
- "storybook-addon-pseudo-states": "9.1.0-alpha.6",
18608
- "@storybook/addon-themes": "9.1.0-alpha.6",
18609
- "@storybook/addon-vitest": "9.1.0-alpha.6",
18610
- "@storybook/builder-vite": "9.1.0-alpha.6",
18611
- "@storybook/builder-webpack5": "9.1.0-alpha.6",
18612
- storybook: "9.1.0-alpha.6",
18613
- "@storybook/angular": "9.1.0-alpha.6",
18614
- "@storybook/ember": "9.1.0-alpha.6",
18615
- "@storybook/html-vite": "9.1.0-alpha.6",
18616
- "@storybook/nextjs": "9.1.0-alpha.6",
18617
- "@storybook/nextjs-vite": "9.1.0-alpha.6",
18618
- "@storybook/preact-vite": "9.1.0-alpha.6",
18619
- "@storybook/react-native-web-vite": "9.1.0-alpha.6",
18620
- "@storybook/react-vite": "9.1.0-alpha.6",
18621
- "@storybook/react-webpack5": "9.1.0-alpha.6",
18622
- "@storybook/server-webpack5": "9.1.0-alpha.6",
18623
- "@storybook/svelte-vite": "9.1.0-alpha.6",
18624
- "@storybook/sveltekit": "9.1.0-alpha.6",
18625
- "@storybook/vue3-vite": "9.1.0-alpha.6",
18626
- "@storybook/web-components-vite": "9.1.0-alpha.6",
18627
- sb: "9.1.0-alpha.6",
18628
- "@storybook/cli": "9.1.0-alpha.6",
18629
- "@storybook/codemod": "9.1.0-alpha.6",
18630
- "@storybook/core-webpack": "9.1.0-alpha.6",
18631
- "create-storybook": "9.1.0-alpha.6",
18632
- "@storybook/csf-plugin": "9.1.0-alpha.6",
18633
- "eslint-plugin-storybook": "9.1.0-alpha.6",
18634
- "@storybook/react-dom-shim": "9.1.0-alpha.6",
18635
- "@storybook/preset-create-react-app": "9.1.0-alpha.6",
18636
- "@storybook/preset-react-webpack": "9.1.0-alpha.6",
18637
- "@storybook/preset-server-webpack": "9.1.0-alpha.6",
18638
- "@storybook/html": "9.1.0-alpha.6",
18639
- "@storybook/preact": "9.1.0-alpha.6",
18640
- "@storybook/react": "9.1.0-alpha.6",
18641
- "@storybook/server": "9.1.0-alpha.6",
18642
- "@storybook/svelte": "9.1.0-alpha.6",
18643
- "@storybook/vue3": "9.1.0-alpha.6",
18644
- "@storybook/web-components": "9.1.0-alpha.6"
18602
+ "@storybook/addon-a11y": "9.1.0-alpha.7",
18603
+ "@storybook/addon-docs": "9.1.0-alpha.7",
18604
+ "@storybook/addon-jest": "9.1.0-alpha.7",
18605
+ "@storybook/addon-links": "9.1.0-alpha.7",
18606
+ "@storybook/addon-onboarding": "9.1.0-alpha.7",
18607
+ "storybook-addon-pseudo-states": "9.1.0-alpha.7",
18608
+ "@storybook/addon-themes": "9.1.0-alpha.7",
18609
+ "@storybook/addon-vitest": "9.1.0-alpha.7",
18610
+ "@storybook/builder-vite": "9.1.0-alpha.7",
18611
+ "@storybook/builder-webpack5": "9.1.0-alpha.7",
18612
+ storybook: "9.1.0-alpha.7",
18613
+ "@storybook/angular": "9.1.0-alpha.7",
18614
+ "@storybook/ember": "9.1.0-alpha.7",
18615
+ "@storybook/html-vite": "9.1.0-alpha.7",
18616
+ "@storybook/nextjs": "9.1.0-alpha.7",
18617
+ "@storybook/nextjs-vite": "9.1.0-alpha.7",
18618
+ "@storybook/preact-vite": "9.1.0-alpha.7",
18619
+ "@storybook/react-native-web-vite": "9.1.0-alpha.7",
18620
+ "@storybook/react-vite": "9.1.0-alpha.7",
18621
+ "@storybook/react-webpack5": "9.1.0-alpha.7",
18622
+ "@storybook/server-webpack5": "9.1.0-alpha.7",
18623
+ "@storybook/svelte-vite": "9.1.0-alpha.7",
18624
+ "@storybook/sveltekit": "9.1.0-alpha.7",
18625
+ "@storybook/vue3-vite": "9.1.0-alpha.7",
18626
+ "@storybook/web-components-vite": "9.1.0-alpha.7",
18627
+ sb: "9.1.0-alpha.7",
18628
+ "@storybook/cli": "9.1.0-alpha.7",
18629
+ "@storybook/codemod": "9.1.0-alpha.7",
18630
+ "@storybook/core-webpack": "9.1.0-alpha.7",
18631
+ "create-storybook": "9.1.0-alpha.7",
18632
+ "@storybook/csf-plugin": "9.1.0-alpha.7",
18633
+ "eslint-plugin-storybook": "9.1.0-alpha.7",
18634
+ "@storybook/react-dom-shim": "9.1.0-alpha.7",
18635
+ "@storybook/preset-create-react-app": "9.1.0-alpha.7",
18636
+ "@storybook/preset-react-webpack": "9.1.0-alpha.7",
18637
+ "@storybook/preset-server-webpack": "9.1.0-alpha.7",
18638
+ "@storybook/html": "9.1.0-alpha.7",
18639
+ "@storybook/preact": "9.1.0-alpha.7",
18640
+ "@storybook/react": "9.1.0-alpha.7",
18641
+ "@storybook/server": "9.1.0-alpha.7",
18642
+ "@storybook/svelte": "9.1.0-alpha.7",
18643
+ "@storybook/vue3": "9.1.0-alpha.7",
18644
+ "@storybook/web-components": "9.1.0-alpha.7"
18645
18645
  };
18646
18646
 
18647
18647
  // src/common/presets.ts
@@ -23587,7 +23587,7 @@ var Vs = class {
23587
23587
  s(this, "FileSystemCache");
23588
23588
  }
23589
23589
  constructor(A = {}) {
23590
- this.prefix = (A.ns || A.prefix || "") + "-", this.hash_alg = A.hash_alg || "md5", this.cache_dir = A.basePath || Mi(Zk(), qk(15).toString(
23590
+ this.prefix = (A.ns || A.prefix || "") + "-", this.hash_alg = A.hash_alg || "sha256", this.cache_dir = A.basePath || Mi(Zk(), qk(15).toString(
23591
23591
  "base64").replace(/\//g, "-")), this.ttl = A.ttl || 0, kE(this.hash_alg), Hg(this.cache_dir, { recursive: !0 });
23592
23592
  }
23593
23593
  generateHash(A) {
@@ -25394,21 +25394,24 @@ var ee = class t {
25394
25394
  }
25395
25395
  return !1;
25396
25396
  }
25397
- async installDependencies() {
25398
- await TB.executeTask(() => this.runInstall(), {
25397
+ async installDependencies(A) {
25398
+ await TB.executeTask(() => this.runInstall(A), {
25399
25399
  id: "install-dependencies",
25400
25400
  intro: "Installing dependencies...",
25401
25401
  error: "An error occurred while installing dependencies.",
25402
25402
  success: "Dependencies installed"
25403
25403
  }), this.clearInstalledVersionCache();
25404
25404
  }
25405
- async dedupeDependencies() {
25406
- await TB.executeTask(() => this.runInternalCommand("dedupe", [], this.cwd), {
25407
- id: "dedupe-dependencies",
25408
- intro: "Deduplicating dependencies...",
25409
- error: "An error occurred while deduplicating dependencies.",
25410
- success: "Dependencies deduplicated"
25411
- }), this.clearInstalledVersionCache();
25405
+ async dedupeDependencies(A) {
25406
+ await TB.executeTask(
25407
+ () => this.runInternalCommand("dedupe", [...A?.force ? ["--force"] : []], this.cwd),
25408
+ {
25409
+ id: "dedupe-dependencies",
25410
+ intro: "Deduplicating dependencies...",
25411
+ error: "An error occurred while deduplicating dependencies.",
25412
+ success: "Dependencies deduplicated"
25413
+ }
25414
+ ), this.clearInstalledVersionCache();
25412
25415
  }
25413
25416
  /** Read the `package.json` file available in the provided directory */
25414
25417
  static getPackageJson(A) {
@@ -26811,10 +26814,10 @@ var H0 = /npm ERR! code (\w+)/, j0 = {
26811
26814
  }
26812
26815
  };
26813
26816
  }
26814
- runInstall() {
26817
+ runInstall(e) {
26815
26818
  return this.executeCommand({
26816
26819
  command: "bun",
26817
- args: ["install", ...this.getInstallArgs()],
26820
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
26818
26821
  stdio: "inherit",
26819
26822
  cwd: this.cwd
26820
26823
  });
@@ -27012,10 +27015,10 @@ var Av = /npm (ERR!|error) (code|errno) (\w+)/i, ev = {
27012
27015
  }
27013
27016
  };
27014
27017
  }
27015
- runInstall() {
27018
+ runInstall(e) {
27016
27019
  return this.executeCommand({
27017
27020
  command: "npm",
27018
- args: ["install", ...this.getInstallArgs()],
27021
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
27019
27022
  cwd: this.cwd,
27020
27023
  stdio: cf.getPreferredStdio()
27021
27024
  });
@@ -27201,10 +27204,10 @@ var rv = /(ELIFECYCLE|ERR_PNPM_[A-Z_]+)\s+(.*)/i, Pn = class extends ee {
27201
27204
  }
27202
27205
  };
27203
27206
  }
27204
- runInstall() {
27207
+ runInstall(e) {
27205
27208
  return this.executeCommand({
27206
27209
  command: "pnpm",
27207
- args: ["install", ...this.getInstallArgs()],
27210
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
27208
27211
  stdio: Ef.getPreferredStdio(),
27209
27212
  cwd: this.cwd
27210
27213
  });
@@ -27355,10 +27358,10 @@ var gv = /^error\s(.*)$/gm, _n = class extends ee {
27355
27358
  }
27356
27359
  };
27357
27360
  }
27358
- runInstall() {
27361
+ runInstall(e) {
27359
27362
  return this.executeCommand({
27360
27363
  command: "yarn",
27361
- args: ["install", ...this.getInstallArgs()],
27364
+ args: ["install", ...this.getInstallArgs(), ...e?.force ? ["--force"] : []],
27362
27365
  stdio: uf.getPreferredStdio(),
27363
27366
  cwd: this.cwd
27364
27367
  });