@chromatic-com/vitest 1.0.3 → 1.0.4

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
  #!/usr/bin/env node
2
2
  import { n as archivesDir, t as DEFAULT_OUTPUT_DIR } from "../constants-Dos4OOMt.mjs";
3
- import { a as flushTelemetry, n as trackCliEvent } from "../telemetry-Db1MVI-S.mjs";
3
+ import { a as flushTelemetry, n as trackCliEvent } from "../telemetry-By4hJHlt.mjs";
4
4
  import { t as archiveStorybook } from "../archive-storybook-Bqn7D3Ez.mjs";
5
5
  import path from "node:path";
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as archivesDir, t as DEFAULT_OUTPUT_DIR } from "../constants-Dos4OOMt.mjs";
3
- import { a as flushTelemetry, n as trackCliEvent } from "../telemetry-Db1MVI-S.mjs";
3
+ import { a as flushTelemetry, n as trackCliEvent } from "../telemetry-By4hJHlt.mjs";
4
4
  import { n as buildArchiveStorybook } from "../archive-storybook-Bqn7D3Ez.mjs";
5
5
  import path from "node:path";
6
6
 
package/dist/plugin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as outputFile, c as truncateFileName, i as ensureDir, o as outputJSONFile, s as removeLocalhostFromBaseUrl, t as DEFAULT_OUTPUT_DIR } from "./constants-Dos4OOMt.mjs";
2
- import { c as TELEMETRY_LOG_FILE, i as cleanTelemetryLogFiles, o as setupTelemetryCleanup, r as trackEvent, s as resolveTelemetryOptions, t as TelemetryReporter } from "./telemetry-Db1MVI-S.mjs";
2
+ import { c as TELEMETRY_LOG_FILE, i as cleanTelemetryLogFiles, o as setupTelemetryCleanup, r as trackEvent, s as resolveTelemetryOptions, t as TelemetryReporter } from "./telemetry-By4hJHlt.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { existsSync, readFileSync, readdirSync, rmSync } from "node:fs";
5
5
  import path, { dirname, join, relative, resolve, sep } from "node:path";
@@ -43,7 +43,7 @@ function isTruthyEnv(value) {
43
43
 
44
44
  //#endregion
45
45
  //#region package.json
46
- var version = "1.0.3";
46
+ var version = "1.0.4";
47
47
 
48
48
  //#endregion
49
49
  //#region src/node/telemetry/metadata.ts
@@ -80,6 +80,7 @@ function getChromaticVersion(root) {
80
80
  }
81
81
  }
82
82
  async function writeTelemetryMetadata(outputDirectory, data) {
83
+ await mkdir(outputDirectory, { recursive: true });
83
84
  await writeFile(resolve(outputDirectory, TELEMETRY_METADATA_FILE), JSON.stringify(data, null, 2), "utf8");
84
85
  }
85
86
  async function readTelemetryMetadata(outputDirectory) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chromatic-com/vitest",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Chromatic Visual Regression Testing for Vitest",
5
5
  "license": "MIT",
6
6
  "author": "Chromatic <tom@chromatic.com>",