@onlook/storybook-plugin 0.3.2-beta.0 → 0.3.2-beta.1
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.
package/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
2
3
|
import { command, string, boolean, run } from '@drizzle-team/brocli';
|
|
3
4
|
import { spawn } from 'child_process';
|
|
4
5
|
import fs, { readFileSync, existsSync } from 'fs';
|
|
@@ -6,6 +7,7 @@ import path, { resolve, join, dirname } from 'path';
|
|
|
6
7
|
import crypto from 'crypto';
|
|
7
8
|
import { chromium } from 'playwright';
|
|
8
9
|
|
|
10
|
+
globalThis.require = createRequire(import.meta.url);
|
|
9
11
|
var CACHE_DIR = path.join(process.cwd(), ".storybook-cache");
|
|
10
12
|
var SCREENSHOTS_DIR = path.join(CACHE_DIR, "screenshots");
|
|
11
13
|
var MANIFEST_PATH = path.join(CACHE_DIR, "manifest.json");
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
1
2
|
import CJS_COMPAT_NODE_URL_at6j9ae2j2t, { fileURLToPath } from 'url';
|
|
2
3
|
import path5, { dirname, join, relative } from 'path';
|
|
3
4
|
import CJS_COMPAT_NODE_MODULE_at6j9ae2j2t from 'module';
|
|
@@ -14,6 +15,7 @@ import * as k from 'readline';
|
|
|
14
15
|
import k__default from 'readline';
|
|
15
16
|
import { ReadStream } from 'tty';
|
|
16
17
|
|
|
18
|
+
globalThis.require = createRequire(import.meta.url);
|
|
17
19
|
var __create = Object.create;
|
|
18
20
|
var __defProp = Object.defineProperty;
|
|
19
21
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
1
2
|
import crypto from 'crypto';
|
|
2
3
|
import fs from 'fs';
|
|
3
4
|
import path from 'path';
|
|
4
5
|
import { chromium } from 'playwright';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
globalThis.require = createRequire(import.meta.url);
|
|
7
8
|
var CACHE_DIR = path.join(process.cwd(), ".storybook-cache");
|
|
8
9
|
var SCREENSHOTS_DIR = path.join(CACHE_DIR, "screenshots");
|
|
9
10
|
var MANIFEST_PATH = path.join(CACHE_DIR, "manifest.json");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
1
2
|
import { chromium } from 'playwright';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
globalThis.require = createRequire(import.meta.url);
|
|
4
5
|
var browser = null;
|
|
5
6
|
async function getBrowser() {
|
|
6
7
|
if (!browser) {
|