prisma-flare 1.1.8 → 1.1.9

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.
@@ -386,120 +386,12 @@ function generateClient() {
386
386
  prismaClientImport = getPrismaClientPath(rootDir);
387
387
  }
388
388
  const isCustomOutput = hasCustomPrismaOutput(rootDir);
389
- generateInNodeModules(rootDir, prismaClientImport, isCustomOutput);
390
- if (isCustomOutput || config.prismaClientPath && config.prismaClientPath !== "@prisma/client") {
389
+ const isExplicitCustomPath = config.prismaClientPath && config.prismaClientPath !== "@prisma/client";
390
+ if (isCustomOutput || isExplicitCustomPath) {
391
391
  generateNextToPrismaClient(rootDir, prismaClientImport);
392
- }
393
- }
394
- function generateInNodeModules(rootDir, prismaClientImport, isCustomOutput) {
395
- const nodeModulesDir = path5.join(rootDir, "node_modules");
396
- const prismaFlareDir = path5.join(nodeModulesDir, ".prisma-flare");
397
- if (!fs5.existsSync(prismaFlareDir)) {
398
- fs5.mkdirSync(prismaFlareDir, { recursive: true });
399
- }
400
- let resolvedImport;
401
- if (prismaClientImport === "@prisma/client") {
402
- resolvedImport = "@prisma/client";
403
392
  } else {
404
- resolvedImport = path5.relative(prismaFlareDir, prismaClientImport);
405
- if (!resolvedImport.startsWith(".")) {
406
- resolvedImport = "./" + resolvedImport;
407
- }
408
- resolvedImport = resolvedImport.replace(/\\/g, "/");
409
- }
410
- const esmContent = `// Generated by prisma-flare - DO NOT EDIT
411
- // This file provides FlareClient configured for your Prisma client output path
412
- // Import path: ${prismaClientImport}
413
-
414
- import { PrismaClient, Prisma } from '${resolvedImport}';
415
- import { createFlareClient } from 'prisma-flare';
416
-
417
- // Create and export FlareClient using the factory
418
- export const FlareClient = createFlareClient(PrismaClient, Prisma);
419
-
420
- // Re-export PrismaClient and Prisma for convenience
421
- export { PrismaClient, Prisma };
422
- `;
423
- const cjsContent = `// Generated by prisma-flare - DO NOT EDIT
424
- // This file provides FlareClient configured for your Prisma client output path
425
- // Import path: ${prismaClientImport}
426
-
427
- const { PrismaClient, Prisma } = require('${resolvedImport}');
428
- const { createFlareClient } = require('prisma-flare');
429
-
430
- // Create FlareClient using the factory
431
- const FlareClient = createFlareClient(PrismaClient, Prisma);
432
-
433
- module.exports = {
434
- FlareClient,
435
- PrismaClient,
436
- Prisma
437
- };
438
- `;
439
- const dtsContent = `// Generated by prisma-flare - DO NOT EDIT
440
- // This file provides FlareClient configured for your Prisma client output path
441
-
442
- import { PrismaClient as BasePrismaClient, Prisma as BasePrisma } from '${resolvedImport}';
443
- import type { FlareClientOptions } from 'prisma-flare';
444
- import type { ModelName } from 'prisma-flare';
445
- import type FlareBuilder from 'prisma-flare/flareBuilder';
446
-
447
- // Re-export PrismaClient and Prisma from the configured path
448
- export { BasePrismaClient as PrismaClient, BasePrisma as Prisma };
449
-
450
- // FlareClient type that extends the project's PrismaClient
451
- export declare class FlareClient extends BasePrismaClient {
452
- constructor(options?: FlareClientOptions);
453
-
454
- /**
455
- * Creates a new FlareBuilder instance for the specified model.
456
- * @param modelName - The name of the model.
457
- * @returns FlareBuilder instance
458
- */
459
- from<T extends ModelName>(modelName: T): FlareBuilder<T>;
460
-
461
- /**
462
- * Executes a transaction with the FlareClient capabilities.
463
- * @param fn - The transaction function.
464
- * @param options - Transaction options.
465
- * @returns The result of the transaction.
466
- */
467
- transaction<R>(
468
- fn: (tx: FlareClient) => Promise<R>,
469
- options?: { maxWait?: number; timeout?: number; isolationLevel?: any }
470
- ): Promise<R>;
471
- }
472
- `;
473
- fs5.writeFileSync(path5.join(prismaFlareDir, "index.js"), esmContent);
474
- fs5.writeFileSync(path5.join(prismaFlareDir, "index.cjs"), cjsContent);
475
- fs5.writeFileSync(path5.join(prismaFlareDir, "index.d.ts"), dtsContent);
476
- const packageJson = {
477
- name: ".prisma-flare",
478
- version: "0.0.0",
479
- main: "./index.cjs",
480
- module: "./index.js",
481
- types: "./index.d.ts",
482
- type: "module",
483
- exports: {
484
- ".": {
485
- types: "./index.d.ts",
486
- import: "./index.js",
487
- require: "./index.cjs"
488
- }
489
- }
490
- };
491
- fs5.writeFileSync(
492
- path5.join(prismaFlareDir, "package.json"),
493
- JSON.stringify(packageJson, null, 2)
494
- );
495
- if (isCustomOutput) {
496
- console.log(`\u2705 Generated .prisma-flare with custom Prisma output: ${prismaClientImport}`);
497
- console.log(` Location: ${prismaFlareDir}`);
498
- console.log(`
499
- \u26A0\uFE0F For Turbopack/bundler compatibility, import from the generated flare.ts instead.`);
500
- } else {
501
- console.log(`\u2705 Generated prisma-flare client using @prisma/client`);
502
- console.log(` Location: ${prismaFlareDir}`);
393
+ console.log(`\u2705 Using default @prisma/client`);
394
+ console.log(` No client generation needed - prisma-flare works out of the box!`);
503
395
  console.log(`
504
396
  Import: import { FlareClient } from 'prisma-flare';`);
505
397
  }
@@ -509,6 +401,11 @@ function generateNextToPrismaClient(rootDir, prismaClientImport) {
509
401
  if (prismaOutputDir.endsWith("/client") || prismaOutputDir.endsWith("\\client")) {
510
402
  prismaOutputDir = path5.dirname(prismaOutputDir);
511
403
  }
404
+ if (!fs5.existsSync(prismaOutputDir)) {
405
+ console.error(`\u274C Prisma output directory not found: ${prismaOutputDir}`);
406
+ console.error(` Run 'npx prisma generate' first.`);
407
+ process.exit(1);
408
+ }
512
409
  const hasClientEntry = fs5.existsSync(path5.join(prismaOutputDir, "client.ts")) || fs5.existsSync(path5.join(prismaOutputDir, "client.js"));
513
410
  const prismaImportPath = hasClientEntry ? "./client" : "./index";
514
411
  const flareFilePath = path5.join(prismaOutputDir, "flare.ts");
@@ -527,7 +424,7 @@ export { PrismaClient, Prisma };
527
424
 
528
425
  // Re-export types from prisma-flare for convenience
529
426
  export type { FlareClientOptions, ModelName } from 'prisma-flare';
530
- export { default as FlareBuilder } from 'prisma-flare/flareBuilder';
427
+ export { FlareBuilder } from 'prisma-flare';
531
428
  `;
532
429
  const flareDtsPath = path5.join(prismaOutputDir, "flare.d.ts");
533
430
  const flareDtsContent = `// Generated by prisma-flare - DO NOT EDIT
@@ -535,7 +432,7 @@ export { default as FlareBuilder } from 'prisma-flare/flareBuilder';
535
432
 
536
433
  import { PrismaClient as BasePrismaClient, Prisma as BasePrisma } from '${prismaImportPath}';
537
434
  import type { FlareClientOptions, ModelName } from 'prisma-flare';
538
- import type FlareBuilder from 'prisma-flare/flareBuilder';
435
+ import type { FlareBuilder } from 'prisma-flare';
539
436
 
540
437
  // Re-export PrismaClient and Prisma
541
438
  export { BasePrismaClient as PrismaClient, BasePrisma as Prisma };
@@ -559,7 +456,7 @@ export declare const FlareClient: {
559
456
  fs5.writeFileSync(flareDtsPath, flareDtsContent);
560
457
  const relativeFlareDir = path5.relative(rootDir, prismaOutputDir);
561
458
  const relativeImportPath = "./" + path5.join(relativeFlareDir, "flare").replace(/\\/g, "/");
562
- console.log(`\u2705 Generated prisma-flare client with custom Prisma output`);
459
+ console.log(`\u2705 Generated prisma-flare client for custom Prisma output`);
563
460
  console.log(` Location: ${prismaOutputDir}`);
564
461
  console.log(` Files: flare.ts, flare.d.ts`);
565
462
  console.log(`
package/dist/cli/index.js CHANGED
@@ -363,120 +363,12 @@ function generateClient() {
363
363
  prismaClientImport = getPrismaClientPath(rootDir);
364
364
  }
365
365
  const isCustomOutput = hasCustomPrismaOutput(rootDir);
366
- generateInNodeModules(rootDir, prismaClientImport, isCustomOutput);
367
- if (isCustomOutput || config.prismaClientPath && config.prismaClientPath !== "@prisma/client") {
366
+ const isExplicitCustomPath = config.prismaClientPath && config.prismaClientPath !== "@prisma/client";
367
+ if (isCustomOutput || isExplicitCustomPath) {
368
368
  generateNextToPrismaClient(rootDir, prismaClientImport);
369
- }
370
- }
371
- function generateInNodeModules(rootDir, prismaClientImport, isCustomOutput) {
372
- const nodeModulesDir = path5.join(rootDir, "node_modules");
373
- const prismaFlareDir = path5.join(nodeModulesDir, ".prisma-flare");
374
- if (!fs5.existsSync(prismaFlareDir)) {
375
- fs5.mkdirSync(prismaFlareDir, { recursive: true });
376
- }
377
- let resolvedImport;
378
- if (prismaClientImport === "@prisma/client") {
379
- resolvedImport = "@prisma/client";
380
369
  } else {
381
- resolvedImport = path5.relative(prismaFlareDir, prismaClientImport);
382
- if (!resolvedImport.startsWith(".")) {
383
- resolvedImport = "./" + resolvedImport;
384
- }
385
- resolvedImport = resolvedImport.replace(/\\/g, "/");
386
- }
387
- const esmContent = `// Generated by prisma-flare - DO NOT EDIT
388
- // This file provides FlareClient configured for your Prisma client output path
389
- // Import path: ${prismaClientImport}
390
-
391
- import { PrismaClient, Prisma } from '${resolvedImport}';
392
- import { createFlareClient } from 'prisma-flare';
393
-
394
- // Create and export FlareClient using the factory
395
- export const FlareClient = createFlareClient(PrismaClient, Prisma);
396
-
397
- // Re-export PrismaClient and Prisma for convenience
398
- export { PrismaClient, Prisma };
399
- `;
400
- const cjsContent = `// Generated by prisma-flare - DO NOT EDIT
401
- // This file provides FlareClient configured for your Prisma client output path
402
- // Import path: ${prismaClientImport}
403
-
404
- const { PrismaClient, Prisma } = require('${resolvedImport}');
405
- const { createFlareClient } = require('prisma-flare');
406
-
407
- // Create FlareClient using the factory
408
- const FlareClient = createFlareClient(PrismaClient, Prisma);
409
-
410
- module.exports = {
411
- FlareClient,
412
- PrismaClient,
413
- Prisma
414
- };
415
- `;
416
- const dtsContent = `// Generated by prisma-flare - DO NOT EDIT
417
- // This file provides FlareClient configured for your Prisma client output path
418
-
419
- import { PrismaClient as BasePrismaClient, Prisma as BasePrisma } from '${resolvedImport}';
420
- import type { FlareClientOptions } from 'prisma-flare';
421
- import type { ModelName } from 'prisma-flare';
422
- import type FlareBuilder from 'prisma-flare/flareBuilder';
423
-
424
- // Re-export PrismaClient and Prisma from the configured path
425
- export { BasePrismaClient as PrismaClient, BasePrisma as Prisma };
426
-
427
- // FlareClient type that extends the project's PrismaClient
428
- export declare class FlareClient extends BasePrismaClient {
429
- constructor(options?: FlareClientOptions);
430
-
431
- /**
432
- * Creates a new FlareBuilder instance for the specified model.
433
- * @param modelName - The name of the model.
434
- * @returns FlareBuilder instance
435
- */
436
- from<T extends ModelName>(modelName: T): FlareBuilder<T>;
437
-
438
- /**
439
- * Executes a transaction with the FlareClient capabilities.
440
- * @param fn - The transaction function.
441
- * @param options - Transaction options.
442
- * @returns The result of the transaction.
443
- */
444
- transaction<R>(
445
- fn: (tx: FlareClient) => Promise<R>,
446
- options?: { maxWait?: number; timeout?: number; isolationLevel?: any }
447
- ): Promise<R>;
448
- }
449
- `;
450
- fs5.writeFileSync(path5.join(prismaFlareDir, "index.js"), esmContent);
451
- fs5.writeFileSync(path5.join(prismaFlareDir, "index.cjs"), cjsContent);
452
- fs5.writeFileSync(path5.join(prismaFlareDir, "index.d.ts"), dtsContent);
453
- const packageJson = {
454
- name: ".prisma-flare",
455
- version: "0.0.0",
456
- main: "./index.cjs",
457
- module: "./index.js",
458
- types: "./index.d.ts",
459
- type: "module",
460
- exports: {
461
- ".": {
462
- types: "./index.d.ts",
463
- import: "./index.js",
464
- require: "./index.cjs"
465
- }
466
- }
467
- };
468
- fs5.writeFileSync(
469
- path5.join(prismaFlareDir, "package.json"),
470
- JSON.stringify(packageJson, null, 2)
471
- );
472
- if (isCustomOutput) {
473
- console.log(`\u2705 Generated .prisma-flare with custom Prisma output: ${prismaClientImport}`);
474
- console.log(` Location: ${prismaFlareDir}`);
475
- console.log(`
476
- \u26A0\uFE0F For Turbopack/bundler compatibility, import from the generated flare.ts instead.`);
477
- } else {
478
- console.log(`\u2705 Generated prisma-flare client using @prisma/client`);
479
- console.log(` Location: ${prismaFlareDir}`);
370
+ console.log(`\u2705 Using default @prisma/client`);
371
+ console.log(` No client generation needed - prisma-flare works out of the box!`);
480
372
  console.log(`
481
373
  Import: import { FlareClient } from 'prisma-flare';`);
482
374
  }
@@ -486,6 +378,11 @@ function generateNextToPrismaClient(rootDir, prismaClientImport) {
486
378
  if (prismaOutputDir.endsWith("/client") || prismaOutputDir.endsWith("\\client")) {
487
379
  prismaOutputDir = path5.dirname(prismaOutputDir);
488
380
  }
381
+ if (!fs5.existsSync(prismaOutputDir)) {
382
+ console.error(`\u274C Prisma output directory not found: ${prismaOutputDir}`);
383
+ console.error(` Run 'npx prisma generate' first.`);
384
+ process.exit(1);
385
+ }
489
386
  const hasClientEntry = fs5.existsSync(path5.join(prismaOutputDir, "client.ts")) || fs5.existsSync(path5.join(prismaOutputDir, "client.js"));
490
387
  const prismaImportPath = hasClientEntry ? "./client" : "./index";
491
388
  const flareFilePath = path5.join(prismaOutputDir, "flare.ts");
@@ -504,7 +401,7 @@ export { PrismaClient, Prisma };
504
401
 
505
402
  // Re-export types from prisma-flare for convenience
506
403
  export type { FlareClientOptions, ModelName } from 'prisma-flare';
507
- export { default as FlareBuilder } from 'prisma-flare/flareBuilder';
404
+ export { FlareBuilder } from 'prisma-flare';
508
405
  `;
509
406
  const flareDtsPath = path5.join(prismaOutputDir, "flare.d.ts");
510
407
  const flareDtsContent = `// Generated by prisma-flare - DO NOT EDIT
@@ -512,7 +409,7 @@ export { default as FlareBuilder } from 'prisma-flare/flareBuilder';
512
409
 
513
410
  import { PrismaClient as BasePrismaClient, Prisma as BasePrisma } from '${prismaImportPath}';
514
411
  import type { FlareClientOptions, ModelName } from 'prisma-flare';
515
- import type FlareBuilder from 'prisma-flare/flareBuilder';
412
+ import type { FlareBuilder } from 'prisma-flare';
516
413
 
517
414
  // Re-export PrismaClient and Prisma
518
415
  export { BasePrismaClient as PrismaClient, BasePrisma as Prisma };
@@ -536,7 +433,7 @@ export declare const FlareClient: {
536
433
  fs5.writeFileSync(flareDtsPath, flareDtsContent);
537
434
  const relativeFlareDir = path5.relative(rootDir, prismaOutputDir);
538
435
  const relativeImportPath = "./" + path5.join(relativeFlareDir, "flare").replace(/\\/g, "/");
539
- console.log(`\u2705 Generated prisma-flare client with custom Prisma output`);
436
+ console.log(`\u2705 Generated prisma-flare client for custom Prisma output`);
540
437
  console.log(` Location: ${prismaOutputDir}`);
541
438
  console.log(` Files: flare.ts, flare.d.ts`);
542
439
  console.log(`
package/dist/index.cjs CHANGED
@@ -31,9 +31,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  FlareBuilder: () => FlareBuilder,
34
- FlareClient: () => import__.FlareClient,
35
- Prisma: () => import__.Prisma,
36
- PrismaClient: () => import__.PrismaClient,
34
+ FlareClient: () => FlareClient,
35
+ Prisma: () => import_client.Prisma,
36
+ PrismaClient: () => import_client.PrismaClient,
37
37
  afterChange: () => afterChange,
38
38
  afterCreate: () => afterCreate,
39
39
  afterDelete: () => afterDelete,
@@ -52,7 +52,7 @@ __export(index_exports, {
52
52
  registerHooksLegacy: () => registerHooksLegacy
53
53
  });
54
54
  module.exports = __toCommonJS(index_exports);
55
- var import__ = require(".prisma-flare");
55
+ var import_client = require("@prisma/client");
56
56
 
57
57
  // src/core/modelRegistry.ts
58
58
  var ModelRegistry = class {
@@ -1281,6 +1281,9 @@ var AdapterRegistry = class {
1281
1281
  var registry = new AdapterRegistry();
1282
1282
  registry.register(PostgresAdapter);
1283
1283
  registry.register(SqliteAdapter);
1284
+
1285
+ // src/index.ts
1286
+ var FlareClient = createFlareClient(import_client.PrismaClient, import_client.Prisma);
1284
1287
  // Annotate the CommonJS export names for ESM import in node:
1285
1288
  0 && (module.exports = {
1286
1289
  FlareBuilder,
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- export { FlareClient, Prisma, PrismaClient } from '.prisma-flare';
2
1
  import * as _prisma_client from '@prisma/client';
3
2
  import { PrismaClient } from '@prisma/client';
3
+ export { Prisma, PrismaClient } from '@prisma/client';
4
4
  import * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
5
5
  import { DriverAdapter } from '@prisma/client/runtime/library';
6
6
  import FlareBuilder from './core/flareBuilder.cjs';
@@ -280,4 +280,6 @@ declare class AdapterRegistry {
280
280
  }
281
281
  declare const registry: AdapterRegistry;
282
282
 
283
- export { AfterHookCallback, BeforeHookCallback, ColumnChangeCallback, type DatabaseAdapter, FlareBuilder, type FactoryFlareClientOptions as FlareClientOptions, type HookConfig, HookTiming, ModelName, PrismaOperation, createFlareClient, createHooksExtension, registry as dbAdapterRegistry, hookRegistry, loadCallbacks, modelRegistry, registerHooks, registerHooksLegacy };
283
+ declare const FlareClient: FlareClientClass;
284
+
285
+ export { AfterHookCallback, BeforeHookCallback, ColumnChangeCallback, type DatabaseAdapter, FlareBuilder, FlareClient, type FactoryFlareClientOptions as FlareClientOptions, type HookConfig, HookTiming, ModelName, PrismaOperation, createFlareClient, createHooksExtension, registry as dbAdapterRegistry, hookRegistry, loadCallbacks, modelRegistry, registerHooks, registerHooksLegacy };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { FlareClient, Prisma, PrismaClient } from '.prisma-flare';
2
1
  import * as _prisma_client from '@prisma/client';
3
2
  import { PrismaClient } from '@prisma/client';
3
+ export { Prisma, PrismaClient } from '@prisma/client';
4
4
  import * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
5
5
  import { DriverAdapter } from '@prisma/client/runtime/library';
6
6
  import FlareBuilder from './core/flareBuilder.js';
@@ -280,4 +280,6 @@ declare class AdapterRegistry {
280
280
  }
281
281
  declare const registry: AdapterRegistry;
282
282
 
283
- export { AfterHookCallback, BeforeHookCallback, ColumnChangeCallback, type DatabaseAdapter, FlareBuilder, type FactoryFlareClientOptions as FlareClientOptions, type HookConfig, HookTiming, ModelName, PrismaOperation, createFlareClient, createHooksExtension, registry as dbAdapterRegistry, hookRegistry, loadCallbacks, modelRegistry, registerHooks, registerHooksLegacy };
283
+ declare const FlareClient: FlareClientClass;
284
+
285
+ export { AfterHookCallback, BeforeHookCallback, ColumnChangeCallback, type DatabaseAdapter, FlareBuilder, FlareClient, type FactoryFlareClientOptions as FlareClientOptions, type HookConfig, HookTiming, ModelName, PrismaOperation, createFlareClient, createHooksExtension, registry as dbAdapterRegistry, hookRegistry, loadCallbacks, modelRegistry, registerHooks, registerHooksLegacy };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- import { FlareClient, Prisma, PrismaClient } from ".prisma-flare";
2
+ import { PrismaClient, Prisma } from "@prisma/client";
3
3
 
4
4
  // src/core/modelRegistry.ts
5
5
  var ModelRegistry = class {
@@ -1228,6 +1228,9 @@ var AdapterRegistry = class {
1228
1228
  var registry = new AdapterRegistry();
1229
1229
  registry.register(PostgresAdapter);
1230
1230
  registry.register(SqliteAdapter);
1231
+
1232
+ // src/index.ts
1233
+ var FlareClient = createFlareClient(PrismaClient, Prisma);
1231
1234
  export {
1232
1235
  FlareBuilder,
1233
1236
  FlareClient,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-flare",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Prisma utilities package with callback system and query builder for chained operations",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -78,11 +78,6 @@
78
78
  "import": "./dist/index.js",
79
79
  "require": "./dist/index.cjs"
80
80
  },
81
- "./generated": {
82
- "types": "./dist/generated.d.ts",
83
- "import": "./dist/generated.js",
84
- "require": "./dist/generated.cjs"
85
- },
86
81
  "./flareBuilder": {
87
82
  "types": "./dist/core/flareBuilder.d.ts",
88
83
  "import": "./dist/core/flareBuilder.js",
@@ -96,9 +91,6 @@
96
91
  },
97
92
  "typesVersions": {
98
93
  "*": {
99
- "generated": [
100
- "./dist/generated.d.ts"
101
- ],
102
94
  "flareBuilder": [
103
95
  "./dist/core/flareBuilder.d.ts"
104
96
  ],
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/generated.ts
21
- var generated_exports = {};
22
- __export(generated_exports, {
23
- DB: () => DB
24
- });
25
- module.exports = __toCommonJS(generated_exports);
26
- var DB = class {
27
- };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {
30
- DB
31
- });
@@ -1,4 +0,0 @@
1
- declare class DB {
2
- }
3
-
4
- export { DB };
@@ -1,4 +0,0 @@
1
- declare class DB {
2
- }
3
-
4
- export { DB };
package/dist/generated.js DELETED
@@ -1,6 +0,0 @@
1
- // src/generated.ts
2
- var DB = class {
3
- };
4
- export {
5
- DB
6
- };