creevey 0.10.6 → 0.10.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.
@@ -0,0 +1,4 @@
1
+ export const previewAnnotations = [require.resolve('./preview')];
2
+
3
+ // TODO: Disable manager for now until fully reworked
4
+ // export const managerEntries = [require.resolve('./manager')];
@@ -0,0 +1,7 @@
1
+ import { withCreevey } from './withCreevey.js';
2
+
3
+ const preview = {
4
+ decorators: [withCreevey()],
5
+ };
6
+
7
+ export default preview;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "creevey",
3
3
  "description": "Cross-browser screenshot testing tool for Storybook with fancy UI Runner",
4
- "version": "0.10.6",
4
+ "version": "0.10.7",
5
5
  "type": "commonjs",
6
6
  "bin": "dist/cli.js",
7
7
  "main": "./dist/index.js",
@@ -28,7 +28,14 @@
28
28
  "types": "./dist/selenium.d.ts",
29
29
  "default": "./dist/selenium.js"
30
30
  },
31
- "./preset": "./dist/client/addon/preset.js",
31
+ "./preset": {
32
+ "import": "./dist/client/addon/preset.mjs",
33
+ "default": "./dist/client/addon/preset.js"
34
+ },
35
+ "./preview": {
36
+ "import": "./dist/client/addon/preview.mjs",
37
+ "default": "./dist/client/addon/preview.js"
38
+ },
32
39
  "./package.json": "./package.json"
33
40
  },
34
41
  "author": "Dmitriy Lazarev <w@kich.dev>",
@@ -73,7 +80,7 @@
73
80
  "build": "yarn prebuild && yarn build:client && yarn build:creevey && yarn postbuild",
74
81
  "build:client": "vite build",
75
82
  "build:creevey": "tsc --build tsconfig.prod.json",
76
- "postbuild": "cp \"\"scripts/dist/*.d.ts\"\" dist/ && cp \"\"src/server/playwright/index-source.mjs\"\" dist/server/playwright/index-source.mjs",
83
+ "postbuild": "node scripts/copy-files.mjs",
77
84
  "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
78
85
  "build-storybook": "storybook build",
79
86
  "chromatic": "chromatic --project-token=chpt_80df83ca94e6fb4",
package/preset/README.md DELETED
@@ -1,3 +0,0 @@
1
- This is a fallback for package.json's `exports.addon` field. It's required for outdated environments (like node 11 and typescript with the "node" moduleResolution) to resolve imports from `creevey/addon` properly.
2
-
3
- See https://github.com/andrewbranch/example-subpath-exports-ts-compat. The fallback uses the "package-json-redirects" startegy.
@@ -1,3 +0,0 @@
1
- {
2
- "main": "../dist/client/addon/preset.js"
3
- }