UNPKG

@storybook/angular

Version:

Storybook for Angular: Develop, document, and test UI components in isolation

59 lines (50 loc) 1.74 kB
import CJS_COMPAT_NODE_URL_rgsd90ysgxa from 'node:url'; import CJS_COMPAT_NODE_PATH_rgsd90ysgxa from 'node:path'; import CJS_COMPAT_NODE_MODULE_rgsd90ysgxa from "node:module"; var __filename = CJS_COMPAT_NODE_URL_rgsd90ysgxa.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_rgsd90ysgxa.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_rgsd90ysgxa.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ import { __name } from "./chunk-SV7ANBWF.js"; // ../../node_modules/empathic/find.mjs import { join as join2 } from "node:path"; import { existsSync, statSync } from "node:fs"; // ../../node_modules/empathic/walk.mjs import { dirname } from "node:path"; // ../../node_modules/empathic/resolve.mjs import { isAbsolute, join, resolve } from "node:path"; function absolute(input, root) { return isAbsolute(input) ? input : resolve(root || ".", input); } __name(absolute, "absolute"); // ../../node_modules/empathic/walk.mjs function up(base, options) { let { last, cwd } = options || {}; let tmp = absolute(base, cwd); let root = absolute(last || "/", cwd); let prev, arr = []; while (prev !== root) { arr.push(tmp); tmp = dirname(prev = tmp); if (tmp === prev) break; } return arr; } __name(up, "up"); // ../../node_modules/empathic/find.mjs function up2(name, options) { let dir, tmp; let start = options && options.cwd || ""; for (dir of up(start, options)) { tmp = join2(dir, name); if (existsSync(tmp)) return tmp; } } __name(up2, "up"); export { up2 as up };