@storybook/addon-a11y 10.2.5 → 10.2.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.
@@ -1,23 +1,27 @@
1
- import CJS_COMPAT_NODE_URL_i24w6588umn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_i24w6588umn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_i24w6588umn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_itwj2nnglrj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_itwj2nnglrj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_itwj2nnglrj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_i24w6588umn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_i24w6588umn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_i24w6588umn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_itwj2nnglrj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_itwj2nnglrj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_itwj2nnglrj.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
 
13
13
  // src/postinstall.ts
14
- import { JsPackageManagerFactory } from "storybook/internal/common";
14
+ import { JsPackageManagerFactory, versions } from "storybook/internal/common";
15
15
  async function postinstall(options) {
16
- let args = ["storybook", "automigrate", "addon-a11y-addon-test"];
16
+ let args = [
17
+ options.skipInstall ? `storybook@${versions.storybook}` : "storybook",
18
+ "automigrate",
19
+ "addon-a11y-addon-test"
20
+ ];
17
21
  args.push("--loglevel", "silent"), args.push("--skip-doctor"), options.yes && args.push("--yes"), options.packageManager && args.push("--package-manager", options.packageManager), options.configDir && args.push("--config-dir", options.configDir), await JsPackageManagerFactory.getPackageManager({
18
22
  force: options.packageManager,
19
23
  configDir: options.configDir
20
- }).runPackageCommand({ args });
24
+ }).runPackageCommand({ args, useRemotePkg: !!options.skipInstall });
21
25
  }
22
26
  export {
23
27
  postinstall as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-a11y",
3
- "version": "10.2.5",
3
+ "version": "10.2.7",
4
4
  "description": "Storybook Addon A11y: Test UI component compliance with WCAG web accessibility standards",
5
5
  "keywords": [
6
6
  "a11y",
@@ -70,7 +70,7 @@
70
70
  "vitest-axe": "^0.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "storybook": "^10.2.5"
73
+ "storybook": "^10.2.7"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public"