@cappa/plugin-storybook 0.0.19 → 0.0.20

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,6 +1,6 @@
1
1
 
2
2
 
3
- > @cappa/plugin-storybook@0.0.18 build /home/tim/code/work/cappa/packages/plugins/plugin-storybook
3
+ > @cappa/plugin-storybook@0.0.19 build /home/tim/code/work/cappa/packages/plugins/plugin-storybook
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -27,13 +27,13 @@
27
27
  ESM Build start
28
28
  ESM dist/browser.mjs 138.00 B
29
29
  ESM ⚡️ Build success in 6ms
30
+ ESM dist/index.mjs 6.68 KB
31
+ ESM ⚡️ Build success in 10ms
30
32
  ESM dist/preview.mjs 1.34 KB
31
33
  ESM ⚡️ Build success in 8ms
32
- CJS dist/index.js 7.86 KB
33
- CJS ⚡️ Build success in 9ms
34
- ESM dist/index.mjs 6.57 KB
35
- ESM ⚡️ Build success in 9ms
34
+ CJS dist/index.js 7.97 KB
35
+ CJS ⚡️ Build success in 11ms
36
36
  DTS Build start
37
- DTS ⚡️ Build success in 785ms
37
+ DTS ⚡️ Build success in 876ms
38
38
  DTS dist/index.d.ts 593.00 B
39
39
  DTS dist/index.d.mts 593.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @cappa/plugin-storybook
2
2
 
3
+ ## 0.0.20
4
+
5
+ ### Patch Changes
6
+
7
+ - eb34ecb: Add clean option to cli
8
+ - Updated dependencies [eb34ecb]
9
+ - @cappa/core@0.0.20
10
+
3
11
  ## 0.0.19
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -204,8 +204,10 @@ ${results.filter((r) => r.skipped).map((r) => `${r.storyName}`).join("\n")}`
204
204
  );
205
205
  }
206
206
  console.log(
207
- `Completed screenshots: ${results.filter((r) => r.success).length}/${results.length} successful`
207
+ `Skipped stories: ${results.filter((r) => r.skipped).length}`
208
208
  );
209
+ console.log(`Failed stories: ${results.filter((r) => r.error).length}`);
210
+ console.log(`Successful screenshots: ${results.length}`);
209
211
  return results;
210
212
  } catch (error) {
211
213
  console.error("Error in Storybook plugin:", error.message);
package/dist/index.mjs CHANGED
@@ -174,8 +174,10 @@ ${results.filter((r) => r.skipped).map((r) => `${r.storyName}`).join("\n")}`
174
174
  );
175
175
  }
176
176
  console.log(
177
- `Completed screenshots: ${results.filter((r) => r.success).length}/${results.length} successful`
177
+ `Skipped stories: ${results.filter((r) => r.skipped).length}`
178
178
  );
179
+ console.log(`Failed stories: ${results.filter((r) => r.error).length}`);
180
+ console.log(`Successful screenshots: ${results.length}`);
179
181
  return results;
180
182
  } catch (error) {
181
183
  console.error("Error in Storybook plugin:", error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappa/plugin-storybook",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Storybook plugin for Cappa - takes screenshots of Storybook stories",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@swc/core": "^1.13.5",
32
32
  "storybook": "^9.1.5",
33
- "@cappa/core": "0.0.19"
33
+ "@cappa/core": "0.0.20"
34
34
  },
35
35
  "devDependencies": {
36
36
  "playwright-core": "^1.55.0",
@@ -236,8 +236,11 @@ export const cappaPluginStorybook: Plugin<StorybookPluginOptions> = (
236
236
  }
237
237
 
238
238
  console.log(
239
- `Completed screenshots: ${results.filter((r) => r.success).length}/${results.length} successful`,
239
+ `Skipped stories: ${results.filter((r) => r.skipped).length}`,
240
240
  );
241
+ console.log(`Failed stories: ${results.filter((r) => r.error).length}`);
242
+ console.log(`Successful screenshots: ${results.length}`);
243
+
241
244
  return results;
242
245
  } catch (error) {
243
246
  console.error("Error in Storybook plugin:", (error as Error).message);