@holo-js/cli 0.3.0 → 0.3.2

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.
Files changed (48) hide show
  1. package/dist/bin/holo.mjs +38 -35
  2. package/dist/{broadcast-5VZM5SGQ.mjs → broadcast-GUQFANQ4.mjs} +9 -11
  3. package/dist/{cache-A42JSVYA.mjs → cache-PCM2BJJ2.mjs} +8 -9
  4. package/dist/{cache-migrations-4WKSEN2Q.mjs → cache-migrations-M6VC3JW3.mjs} +13 -15
  5. package/dist/{chunk-6BHJLCAO.mjs → chunk-BVULOZZ4.mjs} +52 -14
  6. package/dist/{chunk-TRYHX5S4.mjs → chunk-I6EXRSZM.mjs} +1 -1
  7. package/dist/{chunk-TH5YCOZB.mjs → chunk-JLZNWWFV.mjs} +28 -17
  8. package/dist/{chunk-R4ZYMEDU.mjs → chunk-NSG3OJDY.mjs} +116 -7
  9. package/dist/{chunk-YACY2572.mjs → chunk-OQEZ3MOE.mjs} +47 -47
  10. package/dist/{chunk-3RFRE7XG.mjs → chunk-SCVF2F3I.mjs} +2 -2
  11. package/dist/{chunk-EQUFFLRG.mjs → chunk-VQP6GHIQ.mjs} +6 -6
  12. package/dist/{chunk-QSVMXMTQ.mjs → chunk-VUJ4ITXR.mjs} +3 -3
  13. package/dist/{chunk-OLZEMIDQ.mjs → chunk-WMBFSYWK.mjs} +1 -1
  14. package/dist/{chunk-LHK5YUR4.mjs → chunk-XXQUCGBO.mjs} +1 -1
  15. package/dist/{chunk-I7QBCEV7.mjs → chunk-Y355VYRN.mjs} +5 -3
  16. package/dist/{chunk-VRGB6DIS.mjs → chunk-YJWHIQ45.mjs} +2 -0
  17. package/dist/{chunk-JVLZ3SOW.mjs → chunk-ZNJ4APGF.mjs} +2 -2
  18. package/dist/{config-BZHQK532.mjs → config-43W3SZUI.mjs} +3 -3
  19. package/dist/{dev-7KGRV56X.mjs → dev-SNXMGPLU.mjs} +9 -10
  20. package/dist/{discovery-HNH3BLDL.mjs → discovery-7TQXEUYW.mjs} +4 -4
  21. package/dist/{generators-3FVW4AEJ.mjs → generators-2KJ6OFWA.mjs} +14 -16
  22. package/dist/index.mjs +38 -35
  23. package/dist/{media-migrations-EG34NYAG.mjs → media-migrations-JMA7QMX7.mjs} +10 -12
  24. package/dist/{plugins-ZGLB6JO6.mjs → plugins-D6FWODCH.mjs} +3 -3
  25. package/dist/{queue-BEZDCZCY.mjs → queue-6QSL5VFZ.mjs} +11 -13
  26. package/dist/{queue-R54DUUYA.mjs → queue-SAPFMTB7.mjs} +13 -15
  27. package/dist/{queue-migrations-AM3AKT76.mjs → queue-migrations-GSREPIHP.mjs} +13 -15
  28. package/dist/{runtime-VR5BDPYQ.mjs → runtime-HYSSH54H.mjs} +1 -1
  29. package/dist/{runtime-4TJYZLQV.mjs → runtime-RX46GVZQ.mjs} +8 -10
  30. package/dist/runtime-worker.mjs +18 -1
  31. package/dist/{scaffold-ASEX5LEX.mjs → scaffold-HPNFLBF2.mjs} +7 -6
  32. package/dist/{security-KYTLP4DF.mjs → security-NR2WEPQ6.mjs} +8 -9
  33. package/package.json +19 -19
  34. package/dist/broadcast-AABT52BK.mjs +0 -206
  35. package/dist/cache-DUVBBOZU.mjs +0 -138
  36. package/dist/cache-migrations-PD2T5AV4.mjs +0 -175
  37. package/dist/chunk-HX6MOYBO.mjs +0 -2
  38. package/dist/chunk-KRADH7PK.mjs +0 -501
  39. package/dist/chunk-LALDNNPH.mjs +0 -428
  40. package/dist/chunk-M3IPUCTM.mjs +0 -25
  41. package/dist/chunk-OI54DOHK.mjs +0 -3170
  42. package/dist/dev-GQT37XJU.mjs +0 -46
  43. package/dist/generators-JWVNGUUE.mjs +0 -523
  44. package/dist/media-migrations-LGI7R7AR.mjs +0 -108
  45. package/dist/queue-migrations-U477YSFD.mjs +0 -173
  46. package/dist/runtime-MSRQD5W5.mjs +0 -59
  47. package/dist/scaffold-ZAD3XUSD.mjs +0 -143
  48. package/dist/security-4QLV7QCH.mjs +0 -73
@@ -1,428 +0,0 @@
1
- import {
2
- fileExists
3
- } from "./chunk-M3IPUCTM.mjs";
4
- import {
5
- prepareProjectDiscovery
6
- } from "./chunk-QSVMXMTQ.mjs";
7
- import {
8
- loadProjectConfig,
9
- resolveGeneratedSchemaPath
10
- } from "./chunk-JVLZ3SOW.mjs";
11
- import {
12
- loadGeneratedProjectRegistry
13
- } from "./chunk-R4ZYMEDU.mjs";
14
- import {
15
- CLI_RUNTIME_ROOT,
16
- GENERATED_SCHEMA_RUNTIME_PATH,
17
- bundleProjectModule
18
- } from "./chunk-YACY2572.mjs";
19
-
20
- // src/runtime.ts
21
- import { spawn } from "child_process";
22
- import { mkdir, readFile, rm, symlink, writeFile } from "fs/promises";
23
- import { dirname, join, resolve } from "path";
24
- import { setTimeout } from "timers/promises";
25
- import { fileURLToPath, pathToFileURL } from "url";
26
- import { writeConfigCache } from "@holo-js/config";
27
- var runtimeImportMeta = import.meta;
28
- var RUNTIME_DEPENDENCY_LOCK_RETRY_MS = 10;
29
- function resolveConfigModuleUrl(runtimeResolve = runtimeImportMeta.resolve?.bind(runtimeImportMeta)) {
30
- if (typeof runtimeResolve === "function") {
31
- const resolved = runtimeResolve("@holo-js/config");
32
- if (resolved.startsWith("file://")) {
33
- const resolvedPath = fileURLToPath(resolved);
34
- const normalized = resolvedPath.replace(/\\/g, "/");
35
- if (normalized.endsWith("/src/index.ts") || normalized.endsWith("/src/index.mts") || normalized.endsWith("/src/index.js") || normalized.endsWith("/src/index.mjs")) {
36
- return pathToFileURL(resolve(dirname(dirname(resolvedPath)), "dist/index.mjs")).href;
37
- }
38
- }
39
- return resolved;
40
- }
41
- return pathToFileURL(resolve(dirname(fileURLToPath(import.meta.url)), "../node_modules/@holo-js/config/dist/index.mjs")).href;
42
- }
43
- async function initializeProjectRuntime(projectRoot, options = {}) {
44
- const { initializeHolo } = await import("@holo-js/core");
45
- return initializeHolo(projectRoot, options);
46
- }
47
- function parseBooleanEnv(value) {
48
- if (value === "true") return true;
49
- if (value === "false") return false;
50
- return void 0;
51
- }
52
- async function cacheProjectConfig(projectRoot, cacheWriter = writeConfigCache) {
53
- try {
54
- return await cacheWriter(projectRoot, { processEnv: process.env });
55
- } catch (error) {
56
- throw new Error(error instanceof Error && error.message ? error.message : "Failed to cache config.");
57
- }
58
- }
59
- function createEnvRuntimeConfig() {
60
- return {
61
- db: {
62
- defaultConnection: "default",
63
- connections: {
64
- default: {
65
- driver: process.env.DB_DRIVER,
66
- url: process.env.DB_URL,
67
- host: process.env.DB_HOST,
68
- port: process.env.DB_PORT,
69
- username: process.env.DB_USERNAME,
70
- password: process.env.DB_PASSWORD,
71
- database: process.env.DB_DATABASE,
72
- schema: process.env.DB_SCHEMA,
73
- ssl: parseBooleanEnv(process.env.DB_SSL),
74
- logging: parseBooleanEnv(process.env.DB_LOGGING)
75
- }
76
- }
77
- }
78
- };
79
- }
80
- function normalizeRuntimeConnectionInput(connection) {
81
- if (typeof connection === "string") {
82
- return { url: connection };
83
- }
84
- return connection ? { ...connection } : {};
85
- }
86
- function isDefined(value) {
87
- return value !== void 0;
88
- }
89
- function filterDefinedRuntimeConnectionInput(connection) {
90
- return Object.fromEntries(
91
- Object.entries(connection).filter(([, value]) => isDefined(value))
92
- );
93
- }
94
- function mergeRuntimeDatabaseConfig(config, envRuntimeConfig) {
95
- const envDefault = envRuntimeConfig.db.connections.default;
96
- const hasEnvOverrides = Object.values(envDefault).some(isDefined);
97
- if (!config) {
98
- return envRuntimeConfig.db;
99
- }
100
- if (!hasEnvOverrides) {
101
- return config;
102
- }
103
- const defaultConnection = config.defaultConnection ?? "default";
104
- const connections = { ...config.connections ?? {} };
105
- connections[defaultConnection] = {
106
- ...normalizeRuntimeConnectionInput(connections[defaultConnection]),
107
- ...filterDefinedRuntimeConnectionInput(envDefault)
108
- };
109
- return {
110
- ...config,
111
- defaultConnection,
112
- connections
113
- };
114
- }
115
- var RUNTIME_MIGRATION_NAME_PATTERN = /^\d{4}_\d{2}_\d{2}_\d{6}_[a-z0-9_]+$/;
116
- function inferRuntimeMigrationName(entry) {
117
- const fileName = entry.split("/").pop()?.replace(/\.[^.]+$/, "");
118
- if (!fileName || !RUNTIME_MIGRATION_NAME_PATTERN.test(fileName)) {
119
- throw new Error(`Registered migration "${entry}" must use a timestamped file name matching YYYY_MM_DD_HHMMSS_description.`);
120
- }
121
- return fileName;
122
- }
123
- function normalizeRuntimeMigration(entry, migration) {
124
- return {
125
- ...migration,
126
- name: typeof migration.name === "string" ? migration.name : inferRuntimeMigrationName(entry)
127
- };
128
- }
129
- function compileFreshDropIdentifierPath(quoteIdentifier, identifier) {
130
- if (!identifier.includes(".")) {
131
- return quoteIdentifier(identifier);
132
- }
133
- return identifier.split(".").map((part) => quoteIdentifier(part)).join(".");
134
- }
135
- async function dropAllTablesForFresh(connection, schema) {
136
- const tables = await schema.getTables();
137
- if (connection.getDialect().name === "postgres") {
138
- const schemaName = connection.getSchemaName();
139
- const quoteIdentifier = connection.getDialect().quoteIdentifier;
140
- for (const tableName of tables) {
141
- const qualifiedTableName = schemaName ? `${schemaName}.${tableName}` : tableName;
142
- await connection.executeCompiled({
143
- sql: `DROP TABLE IF EXISTS ${compileFreshDropIdentifierPath(quoteIdentifier, qualifiedTableName)} CASCADE`,
144
- source: `schema:dropTableFresh:${qualifiedTableName}`
145
- });
146
- }
147
- return;
148
- }
149
- await schema.withoutForeignKeyConstraints(async () => {
150
- for (const tableName of tables) {
151
- await schema.dropTable(tableName);
152
- }
153
- });
154
- }
155
- async function getRuntimeEnvironment(projectRoot) {
156
- let project = await loadProjectConfig(projectRoot, { required: true });
157
- if (!await loadGeneratedProjectRegistry(projectRoot)) {
158
- await prepareProjectDiscovery(projectRoot, project.config);
159
- project = await loadProjectConfig(projectRoot, { required: true });
160
- }
161
- const generatedSchemaPath = resolveGeneratedSchemaPath(projectRoot, project.config);
162
- const hasGeneratedSchema = await fileExists(generatedSchemaPath);
163
- const bundleInputs = [
164
- ...project.config.models.map((entry) => resolve(projectRoot, entry)),
165
- ...project.config.migrations.map((entry) => resolve(projectRoot, entry)),
166
- ...project.config.seeders.map((entry) => resolve(projectRoot, entry)),
167
- ...hasGeneratedSchema ? [generatedSchemaPath] : []
168
- ];
169
- const bundled = [];
170
- try {
171
- for (const entryPath of bundleInputs) {
172
- bundled.push(await bundleProjectModule(projectRoot, entryPath, { external: ["@holo-js/db"] }));
173
- }
174
- } catch (error) {
175
- await Promise.all(bundled.map((entry) => entry.cleanup()));
176
- throw error;
177
- }
178
- const bundledModels = bundled.slice(0, project.config.models.length).map((entry) => entry.path);
179
- const bundledMigrations = bundled.slice(project.config.models.length, project.config.models.length + project.config.migrations.length).map((entry) => entry.path);
180
- const bundledSeeders = bundled.slice(project.config.models.length + project.config.migrations.length).slice(0, project.config.seeders.length).map((entry) => entry.path);
181
- const bundledGeneratedSchema = hasGeneratedSchema ? bundled[project.config.models.length + project.config.migrations.length + project.config.seeders.length]?.path : void 0;
182
- return {
183
- project,
184
- bundledModels,
185
- bundledMigrations,
186
- bundledSeeders,
187
- ...bundledGeneratedSchema ? { bundledGeneratedSchema } : {},
188
- async cleanup() {
189
- await Promise.all(bundled.map((entry) => entry.cleanup()));
190
- }
191
- };
192
- }
193
- async function resolvePackageRootFromSpecifier(specifier) {
194
- let current = dirname(fileURLToPath(import.meta.resolve(specifier)));
195
- while (true) {
196
- if (await fileExists(join(current, "package.json"))) {
197
- return current;
198
- }
199
- const parent = dirname(current);
200
- if (parent === current) {
201
- throw new Error(`Could not resolve package root for "${specifier}".`);
202
- }
203
- current = parent;
204
- }
205
- }
206
- function isFileExistsError(error) {
207
- return error instanceof Error && "code" in error && error.code === "EEXIST";
208
- }
209
- async function withRuntimeDependencyLock(projectRoot, callback) {
210
- const runtimeRoot = join(projectRoot, CLI_RUNTIME_ROOT);
211
- const lockDir = join(runtimeRoot, "node_modules.lock");
212
- await mkdir(runtimeRoot, { recursive: true });
213
- while (true) {
214
- try {
215
- await mkdir(lockDir);
216
- break;
217
- } catch (error) {
218
- if (!isFileExistsError(error)) {
219
- throw error;
220
- }
221
- await setTimeout(RUNTIME_DEPENDENCY_LOCK_RETRY_MS);
222
- }
223
- }
224
- try {
225
- return await callback();
226
- } finally {
227
- await rm(lockDir, { recursive: true, force: true });
228
- }
229
- }
230
- async function readRuntimeDependencyReferenceCount(refPath) {
231
- const raw = await readFile(refPath, "utf8").catch(() => void 0);
232
- const count = raw === void 0 ? 0 : Number.parseInt(raw, 10);
233
- return Number.isFinite(count) && count > 0 ? count : 0;
234
- }
235
- async function ensureRuntimeDependencyLink(projectRoot) {
236
- return await withRuntimeDependencyLock(projectRoot, async () => {
237
- const runtimeRoot = join(projectRoot, CLI_RUNTIME_ROOT);
238
- const packageRoot = await resolvePackageRootFromSpecifier("@holo-js/db");
239
- const nodeModulesDir = join(runtimeRoot, "node_modules");
240
- const namespaceDir = join(nodeModulesDir, "@holo-js");
241
- const targetPath = join(namespaceDir, "db");
242
- const refPath = join(nodeModulesDir, ".holo-js-runtime-refs");
243
- const references = await readRuntimeDependencyReferenceCount(refPath);
244
- await mkdir(namespaceDir, { recursive: true });
245
- if (references === 0) {
246
- await rm(targetPath, { recursive: true, force: true });
247
- await symlink(packageRoot, targetPath, "junction");
248
- }
249
- await writeFile(refPath, String(references + 1), "utf8");
250
- return runtimeRoot;
251
- });
252
- }
253
- async function cleanupRuntimeDependencyLink(projectRoot) {
254
- await withRuntimeDependencyLock(projectRoot, async () => {
255
- const nodeModulesDir = join(projectRoot, CLI_RUNTIME_ROOT, "node_modules");
256
- const refPath = join(nodeModulesDir, ".holo-js-runtime-refs");
257
- const references = await readRuntimeDependencyReferenceCount(refPath);
258
- const nextReferences = references - 1;
259
- if (nextReferences <= 0) {
260
- await rm(nodeModulesDir, { recursive: true, force: true });
261
- return;
262
- }
263
- await writeFile(refPath, String(nextReferences), "utf8");
264
- });
265
- }
266
- function resolveRuntimeWorkerPath() {
267
- const runtimePath = fileURLToPath(import.meta.url);
268
- return runtimePath.endsWith("/src/runtime.ts") ? resolve(dirname(runtimePath), "runtime-worker.ts") : resolve(dirname(runtimePath), "runtime-worker.mjs");
269
- }
270
- function supportsNodeTypeStripping(version = process.versions.node) {
271
- const [major = "0", minor = "0"] = version.split(".");
272
- const majorVersion = Number.parseInt(major, 10);
273
- const minorVersion = Number.parseInt(minor, 10);
274
- return majorVersion > 22 || majorVersion === 22 && minorVersion >= 6;
275
- }
276
- function resolveCompiledRuntimeWorkerPath(workerPath) {
277
- return resolve(dirname(workerPath), "../dist/runtime-worker.mjs");
278
- }
279
- function createRuntimeInvocation(workerPath = resolveRuntimeWorkerPath()) {
280
- if (workerPath.endsWith(".ts")) {
281
- return {
282
- command: "node",
283
- args: supportsNodeTypeStripping() ? ["--experimental-strip-types", workerPath] : [resolveCompiledRuntimeWorkerPath(workerPath)]
284
- };
285
- }
286
- return {
287
- command: "node",
288
- args: [workerPath]
289
- };
290
- }
291
- function runRuntimeInvocation(command, args, options) {
292
- return new Promise((resolveInvocation) => {
293
- const child = spawn(command, args, {
294
- cwd: options.cwd,
295
- env: options.env,
296
- stdio: ["ignore", "pipe", "pipe"]
297
- });
298
- let stdout = "";
299
- let stderr = "";
300
- let error = null;
301
- child.stdout.setEncoding("utf8");
302
- child.stdout.on("data", (chunk) => {
303
- stdout += chunk;
304
- });
305
- child.stderr.setEncoding("utf8");
306
- child.stderr.on("data", (chunk) => {
307
- stderr += chunk;
308
- });
309
- child.on("error", (spawnError) => {
310
- error = spawnError;
311
- });
312
- child.on("close", (status) => {
313
- resolveInvocation({
314
- status,
315
- error,
316
- stdout,
317
- stderr
318
- });
319
- });
320
- });
321
- }
322
- function getRuntimeFailureMessage(kind, result) {
323
- const stderr = result.stderr?.trim();
324
- if (stderr) {
325
- return formatRuntimeFailureText(stderr);
326
- }
327
- const stdout = result.stdout?.trim();
328
- if (stdout) {
329
- return formatRuntimeFailureText(stdout);
330
- }
331
- const errorCode = result.error && "code" in result.error ? result.error.code : void 0;
332
- if (typeof errorCode === "string" && errorCode.length > 0) {
333
- return `Failed to launch runtime command "${kind}": ${errorCode}.`;
334
- }
335
- return `Runtime command "${kind}" failed.`;
336
- }
337
- function stripRuntimeErrorPrefix(line) {
338
- return line.replace(/^(?:[A-Za-z][\w.]*Error|Error):\s+/, "");
339
- }
340
- function isRuntimeErrorSourceLine(line) {
341
- return line.startsWith("throw ") || line.startsWith("at ") || line === "^" || /^\^+$/.test(line);
342
- }
343
- function formatRuntimeFailureText(text) {
344
- const lines = text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
345
- const friendlyLine = lines.find((line) => line.includes("Unable to ") && !isRuntimeErrorSourceLine(line));
346
- if (friendlyLine) {
347
- return stripRuntimeErrorPrefix(friendlyLine);
348
- }
349
- const errorLine = lines.find((line) => /^(?:[A-Za-z][\w.]*Error|Error):\s+/.test(line));
350
- if (errorLine) {
351
- return stripRuntimeErrorPrefix(errorLine);
352
- }
353
- return lines[0] ?? text.trim();
354
- }
355
- async function withRuntimeEnvironment(projectRoot, kind, options, callback) {
356
- if (kind === "seed") {
357
- const project = await loadProjectConfig(projectRoot, { required: true });
358
- await prepareProjectDiscovery(projectRoot, project.config);
359
- }
360
- const environment = await getRuntimeEnvironment(projectRoot);
361
- let dependencyLinkEnsured = false;
362
- try {
363
- const envRuntimeConfig = createEnvRuntimeConfig();
364
- const runtimeDatabaseConfig = mergeRuntimeDatabaseConfig(
365
- environment.project.config.database,
366
- envRuntimeConfig
367
- );
368
- const runtimeRoot = await ensureRuntimeDependencyLink(projectRoot);
369
- dependencyLinkEnsured = true;
370
- const runtimePayload = JSON.stringify({
371
- kind,
372
- projectRoot,
373
- runtimeConfig: {
374
- db: runtimeDatabaseConfig
375
- },
376
- models: environment.bundledModels.map((entry) => pathToFileURL(entry).href),
377
- migrations: environment.bundledMigrations.map((entry) => pathToFileURL(entry).href),
378
- seeders: environment.bundledSeeders.map((entry) => pathToFileURL(entry).href),
379
- generatedSchema: environment.bundledGeneratedSchema ? pathToFileURL(environment.bundledGeneratedSchema).href : void 0,
380
- generatedSchemaOutputPath: resolveGeneratedSchemaPath(projectRoot, environment.project.config),
381
- generatedSchemaRuntimeOutputPath: resolve(projectRoot, GENERATED_SCHEMA_RUNTIME_PATH),
382
- options
383
- });
384
- const runtime = createRuntimeInvocation();
385
- const result = await runRuntimeInvocation(runtime.command, runtime.args, {
386
- cwd: runtimeRoot,
387
- env: {
388
- ...process.env,
389
- HOLO_RUNTIME_PAYLOAD: runtimePayload
390
- }
391
- });
392
- if (result.status !== 0) {
393
- throw new Error(getRuntimeFailureMessage(kind, result));
394
- }
395
- return await callback((result.stdout ?? "").trim());
396
- } finally {
397
- if (dependencyLinkEnsured) {
398
- await cleanupRuntimeDependencyLink(projectRoot);
399
- }
400
- await environment.cleanup();
401
- }
402
- }
403
-
404
- export {
405
- resolveConfigModuleUrl,
406
- initializeProjectRuntime,
407
- parseBooleanEnv,
408
- cacheProjectConfig,
409
- createEnvRuntimeConfig,
410
- normalizeRuntimeConnectionInput,
411
- isDefined,
412
- filterDefinedRuntimeConnectionInput,
413
- mergeRuntimeDatabaseConfig,
414
- RUNTIME_MIGRATION_NAME_PATTERN,
415
- inferRuntimeMigrationName,
416
- normalizeRuntimeMigration,
417
- compileFreshDropIdentifierPath,
418
- dropAllTablesForFresh,
419
- getRuntimeEnvironment,
420
- resolvePackageRootFromSpecifier,
421
- ensureRuntimeDependencyLink,
422
- cleanupRuntimeDependencyLink,
423
- resolveRuntimeWorkerPath,
424
- createRuntimeInvocation,
425
- runRuntimeInvocation,
426
- getRuntimeFailureMessage,
427
- withRuntimeEnvironment
428
- };
@@ -1,25 +0,0 @@
1
- import {
2
- readTextFile
3
- } from "./chunk-YACY2572.mjs";
4
-
5
- // src/fs-utils.ts
6
- import { stat } from "fs/promises";
7
- async function fileExists(path) {
8
- try {
9
- await stat(path);
10
- return true;
11
- } catch {
12
- return false;
13
- }
14
- }
15
- async function ensureAbsent(path) {
16
- const existing = await readTextFile(path);
17
- if (typeof existing !== "undefined") {
18
- throw new TypeError(`Refusing to overwrite existing file: ${path}`);
19
- }
20
- }
21
-
22
- export {
23
- fileExists,
24
- ensureAbsent
25
- };