storybook-addon-vis 2.0.2 → 2.0.3

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 (2) hide show
  1. package/package.json +2 -3
  2. package/preset.js +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-vis",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Storybook Vitest visual testing addon",
5
5
  "keywords": [
6
6
  "image-snapshot",
@@ -29,8 +29,7 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "types": "./dist/index.d.ts",
32
- "import": "./dist/index.js",
33
- "require": "./dist/index.cjs"
32
+ "import": "./dist/index.js"
34
33
  },
35
34
  "./manager": "./dist/manager.js",
36
35
  "./matcher": {
package/preset.js CHANGED
@@ -1,4 +1 @@
1
- // this file is slightly misleading. It needs to be CJS, and thus in this "type": "module" package it should be named preset.cjs
2
- // but Storybook won't pick that filename up so we have to name it preset.js instead
3
-
4
- module.exports = require('./dist/preset.cjs')
1
+ export * from './dist/preset.cjs'