@cibule/seed 0.1.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/README.md +11 -0
- package/dist/index.cjs +76 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +7 -0
- package/dist/lib/seed-context.d.ts +16 -0
- package/dist/lib/seed-context.d.ts.map +1 -0
- package/dist/lib/seed-d1.d.ts +13 -0
- package/dist/lib/seed-d1.d.ts.map +1 -0
- package/dist/lib/seed-runner.d.ts +8 -0
- package/dist/lib/seed-runner.d.ts.map +1 -0
- package/package.json +37 -0
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
SeedRunner: () => SeedRunner,
|
|
24
|
+
defaultLog: () => defaultLog,
|
|
25
|
+
seedD1: () => seedD1
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
|
+
|
|
29
|
+
// ../db/src/lib/log.ts
|
|
30
|
+
var defaultLog = (msg) => {
|
|
31
|
+
console.log(msg);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// src/lib/seed-d1.ts
|
|
35
|
+
async function seedD1(options) {
|
|
36
|
+
const {
|
|
37
|
+
dbFactory,
|
|
38
|
+
runner,
|
|
39
|
+
storageFactory,
|
|
40
|
+
localCachePath,
|
|
41
|
+
label = "d1",
|
|
42
|
+
log = defaultLog
|
|
43
|
+
} = options;
|
|
44
|
+
log(`[${label}] Creating database connection...`);
|
|
45
|
+
const db = await dbFactory();
|
|
46
|
+
const storage = storageFactory?.();
|
|
47
|
+
log(`[${label}] Running seeds...`);
|
|
48
|
+
await runner.run({ db, storage, localCachePath });
|
|
49
|
+
log(`[${label}] Done.`);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/lib/seed-runner.ts
|
|
53
|
+
var SeedRunner = class {
|
|
54
|
+
seeds;
|
|
55
|
+
log;
|
|
56
|
+
constructor(config) {
|
|
57
|
+
this.seeds = config.seeds;
|
|
58
|
+
this.log = config.log ?? defaultLog;
|
|
59
|
+
}
|
|
60
|
+
async run(ctx) {
|
|
61
|
+
this.log(`Running ${String(this.seeds.length)} seed(s)...`);
|
|
62
|
+
for (const [index, seed] of this.seeds.entries()) {
|
|
63
|
+
const label = seed.name || `seed[${String(index)}]`;
|
|
64
|
+
this.log(` [${String(index + 1)}/${String(this.seeds.length)}] ${label}`);
|
|
65
|
+
await seed(ctx);
|
|
66
|
+
}
|
|
67
|
+
this.log("Seeding complete.");
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
SeedRunner,
|
|
73
|
+
defaultLog,
|
|
74
|
+
seedD1
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts", "../../db/src/lib/log.ts", "../src/lib/seed-d1.ts", "../src/lib/seed-runner.ts"],
|
|
4
|
+
"sourcesContent": ["export type { SeedContext, SeedExecutor, SeedFunction, SeedRunnerConfig } from './lib/seed-context';\nexport type { SeedD1Options } from './lib/seed-d1';\nexport { seedD1 } from './lib/seed-d1';\nexport { SeedRunner } from './lib/seed-runner';\nexport type { LogFn } from '@cibule/db';\nexport { defaultLog } from '@cibule/db';\n", "export type LogFn = (message: string) => void;\n\nexport const defaultLog: LogFn = msg => {\n console.log(msg);\n};\n", "import type { Db, LogFn } from '@cibule/db';\nimport { defaultLog } from '@cibule/db';\nimport type { FileStorage } from '@cibule/storage';\n\nimport type { SeedExecutor } from './seed-context';\n\nexport interface SeedD1Options {\n readonly dbFactory: () => Promise<Db>;\n readonly runner: SeedExecutor;\n readonly storageFactory?: () => FileStorage;\n readonly localCachePath?: string;\n readonly label?: string;\n readonly log?: LogFn;\n}\n\nexport async function seedD1(options: SeedD1Options): Promise<void> {\n const {\n dbFactory,\n runner,\n storageFactory,\n localCachePath,\n label = 'd1',\n log = defaultLog,\n } = options;\n\n log(`[${label}] Creating database connection...`);\n const db = await dbFactory();\n\n const storage = storageFactory?.();\n\n log(`[${label}] Running seeds...`);\n await runner.run({ db, storage, localCachePath });\n\n log(`[${label}] Done.`);\n}\n", "import type { LogFn } from '@cibule/db';\nimport { defaultLog } from '@cibule/db';\n\nimport type { SeedContext, SeedExecutor, SeedFunction, SeedRunnerConfig } from './seed-context';\n\nexport class SeedRunner implements SeedExecutor {\n private readonly seeds: readonly SeedFunction[];\n private readonly log: LogFn;\n\n public constructor(config: SeedRunnerConfig) {\n this.seeds = config.seeds;\n this.log = config.log ?? defaultLog;\n }\n\n public async run(ctx: SeedContext): Promise<void> {\n this.log(`Running ${String(this.seeds.length)} seed(s)...`);\n\n for (const [index, seed] of this.seeds.entries()) {\n const label = seed.name || `seed[${String(index)}]`;\n this.log(` [${String(index + 1)}/${String(this.seeds.length)}] ${label}`);\n await seed(ctx);\n }\n\n this.log('Seeding complete.');\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAM,aAAoB,SAAO;AACtC,UAAQ,IAAI,GAAG;AACjB;;;ACWA,eAAsB,OAAO,SAAuC;AAClE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,MAAM;AAAA,EACR,IAAI;AAEJ,MAAI,IAAI,KAAK,mCAAmC;AAChD,QAAM,KAAK,MAAM,UAAU;AAE3B,QAAM,UAAU,iBAAiB;AAEjC,MAAI,IAAI,KAAK,oBAAoB;AACjC,QAAM,OAAO,IAAI,EAAE,IAAI,SAAS,eAAe,CAAC;AAEhD,MAAI,IAAI,KAAK,SAAS;AACxB;;;AC7BO,IAAM,aAAN,MAAyC;AAAA,EAC7B;AAAA,EACA;AAAA,EAEV,YAAY,QAA0B;AAC3C,SAAK,QAAQ,OAAO;AACpB,SAAK,MAAM,OAAO,OAAO;AAAA,EAC3B;AAAA,EAEA,MAAa,IAAI,KAAiC;AAChD,SAAK,IAAI,WAAW,OAAO,KAAK,MAAM,MAAM,CAAC,aAAa;AAE1D,eAAW,CAAC,OAAO,IAAI,KAAK,KAAK,MAAM,QAAQ,GAAG;AAChD,YAAM,QAAQ,KAAK,QAAQ,QAAQ,OAAO,KAAK,CAAC;AAChD,WAAK,IAAI,MAAM,OAAO,QAAQ,CAAC,CAAC,IAAI,OAAO,KAAK,MAAM,MAAM,CAAC,KAAK,KAAK,EAAE;AACzE,YAAM,KAAK,GAAG;AAAA,IAChB;AAEA,SAAK,IAAI,mBAAmB;AAAA,EAC9B;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { SeedContext, SeedExecutor, SeedFunction, SeedRunnerConfig } from './lib/seed-context';
|
|
2
|
+
export type { SeedD1Options } from './lib/seed-d1';
|
|
3
|
+
export { seedD1 } from './lib/seed-d1';
|
|
4
|
+
export { SeedRunner } from './lib/seed-runner';
|
|
5
|
+
export type { LogFn } from '@cibule/db';
|
|
6
|
+
export { defaultLog } from '@cibule/db';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACpG,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// ../db/src/lib/log.ts
|
|
2
|
+
var defaultLog = (msg) => {
|
|
3
|
+
console.log(msg);
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// src/lib/seed-d1.ts
|
|
7
|
+
async function seedD1(options) {
|
|
8
|
+
const {
|
|
9
|
+
dbFactory,
|
|
10
|
+
runner,
|
|
11
|
+
storageFactory,
|
|
12
|
+
localCachePath,
|
|
13
|
+
label = "d1",
|
|
14
|
+
log = defaultLog
|
|
15
|
+
} = options;
|
|
16
|
+
log(`[${label}] Creating database connection...`);
|
|
17
|
+
const db = await dbFactory();
|
|
18
|
+
const storage = storageFactory?.();
|
|
19
|
+
log(`[${label}] Running seeds...`);
|
|
20
|
+
await runner.run({ db, storage, localCachePath });
|
|
21
|
+
log(`[${label}] Done.`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// src/lib/seed-runner.ts
|
|
25
|
+
var SeedRunner = class {
|
|
26
|
+
seeds;
|
|
27
|
+
log;
|
|
28
|
+
constructor(config) {
|
|
29
|
+
this.seeds = config.seeds;
|
|
30
|
+
this.log = config.log ?? defaultLog;
|
|
31
|
+
}
|
|
32
|
+
async run(ctx) {
|
|
33
|
+
this.log(`Running ${String(this.seeds.length)} seed(s)...`);
|
|
34
|
+
for (const [index, seed] of this.seeds.entries()) {
|
|
35
|
+
const label = seed.name || `seed[${String(index)}]`;
|
|
36
|
+
this.log(` [${String(index + 1)}/${String(this.seeds.length)}] ${label}`);
|
|
37
|
+
await seed(ctx);
|
|
38
|
+
}
|
|
39
|
+
this.log("Seeding complete.");
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
SeedRunner,
|
|
44
|
+
defaultLog,
|
|
45
|
+
seedD1
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../db/src/lib/log.ts", "../src/lib/seed-d1.ts", "../src/lib/seed-runner.ts"],
|
|
4
|
+
"sourcesContent": ["export type LogFn = (message: string) => void;\n\nexport const defaultLog: LogFn = msg => {\n console.log(msg);\n};\n", "import type { Db, LogFn } from '@cibule/db';\nimport { defaultLog } from '@cibule/db';\nimport type { FileStorage } from '@cibule/storage';\n\nimport type { SeedExecutor } from './seed-context';\n\nexport interface SeedD1Options {\n readonly dbFactory: () => Promise<Db>;\n readonly runner: SeedExecutor;\n readonly storageFactory?: () => FileStorage;\n readonly localCachePath?: string;\n readonly label?: string;\n readonly log?: LogFn;\n}\n\nexport async function seedD1(options: SeedD1Options): Promise<void> {\n const {\n dbFactory,\n runner,\n storageFactory,\n localCachePath,\n label = 'd1',\n log = defaultLog,\n } = options;\n\n log(`[${label}] Creating database connection...`);\n const db = await dbFactory();\n\n const storage = storageFactory?.();\n\n log(`[${label}] Running seeds...`);\n await runner.run({ db, storage, localCachePath });\n\n log(`[${label}] Done.`);\n}\n", "import type { LogFn } from '@cibule/db';\nimport { defaultLog } from '@cibule/db';\n\nimport type { SeedContext, SeedExecutor, SeedFunction, SeedRunnerConfig } from './seed-context';\n\nexport class SeedRunner implements SeedExecutor {\n private readonly seeds: readonly SeedFunction[];\n private readonly log: LogFn;\n\n public constructor(config: SeedRunnerConfig) {\n this.seeds = config.seeds;\n this.log = config.log ?? defaultLog;\n }\n\n public async run(ctx: SeedContext): Promise<void> {\n this.log(`Running ${String(this.seeds.length)} seed(s)...`);\n\n for (const [index, seed] of this.seeds.entries()) {\n const label = seed.name || `seed[${String(index)}]`;\n this.log(` [${String(index + 1)}/${String(this.seeds.length)}] ${label}`);\n await seed(ctx);\n }\n\n this.log('Seeding complete.');\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAEO,IAAM,aAAoB,SAAO;AACtC,UAAQ,IAAI,GAAG;AACjB;;;ACWA,eAAsB,OAAO,SAAuC;AAClE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,MAAM;AAAA,EACR,IAAI;AAEJ,MAAI,IAAI,KAAK,mCAAmC;AAChD,QAAM,KAAK,MAAM,UAAU;AAE3B,QAAM,UAAU,iBAAiB;AAEjC,MAAI,IAAI,KAAK,oBAAoB;AACjC,QAAM,OAAO,IAAI,EAAE,IAAI,SAAS,eAAe,CAAC;AAEhD,MAAI,IAAI,KAAK,SAAS;AACxB;;;AC7BO,IAAM,aAAN,MAAyC;AAAA,EAC7B;AAAA,EACA;AAAA,EAEV,YAAY,QAA0B;AAC3C,SAAK,QAAQ,OAAO;AACpB,SAAK,MAAM,OAAO,OAAO;AAAA,EAC3B;AAAA,EAEA,MAAa,IAAI,KAAiC;AAChD,SAAK,IAAI,WAAW,OAAO,KAAK,MAAM,MAAM,CAAC,aAAa;AAE1D,eAAW,CAAC,OAAO,IAAI,KAAK,KAAK,MAAM,QAAQ,GAAG;AAChD,YAAM,QAAQ,KAAK,QAAQ,QAAQ,OAAO,KAAK,CAAC;AAChD,WAAK,IAAI,MAAM,OAAO,QAAQ,CAAC,CAAC,IAAI,OAAO,KAAK,MAAM,MAAM,CAAC,KAAK,KAAK,EAAE;AACzE,YAAM,KAAK,GAAG;AAAA,IAChB;AAEA,SAAK,IAAI,mBAAmB;AAAA,EAC9B;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Db, LogFn } from '@cibule/db';
|
|
2
|
+
import type { FileStorage } from '@cibule/storage';
|
|
3
|
+
export interface SeedContext {
|
|
4
|
+
readonly db: Db;
|
|
5
|
+
readonly storage?: FileStorage;
|
|
6
|
+
readonly localCachePath?: string;
|
|
7
|
+
}
|
|
8
|
+
export type SeedFunction = (ctx: SeedContext) => Promise<void>;
|
|
9
|
+
export interface SeedExecutor {
|
|
10
|
+
run(ctx: SeedContext): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface SeedRunnerConfig {
|
|
13
|
+
readonly seeds: readonly SeedFunction[];
|
|
14
|
+
readonly log?: LogFn;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=seed-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-context.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/seed-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;IAChB,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;CACtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Db, LogFn } from '@cibule/db';
|
|
2
|
+
import type { FileStorage } from '@cibule/storage';
|
|
3
|
+
import type { SeedExecutor } from './seed-context';
|
|
4
|
+
export interface SeedD1Options {
|
|
5
|
+
readonly dbFactory: () => Promise<Db>;
|
|
6
|
+
readonly runner: SeedExecutor;
|
|
7
|
+
readonly storageFactory?: () => FileStorage;
|
|
8
|
+
readonly localCachePath?: string;
|
|
9
|
+
readonly label?: string;
|
|
10
|
+
readonly log?: LogFn;
|
|
11
|
+
}
|
|
12
|
+
export declare function seedD1(options: SeedD1Options): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=seed-d1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-d1.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/seed-d1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,WAAW,CAAC;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBlE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SeedContext, SeedExecutor, SeedRunnerConfig } from './seed-context';
|
|
2
|
+
export declare class SeedRunner implements SeedExecutor {
|
|
3
|
+
private readonly seeds;
|
|
4
|
+
private readonly log;
|
|
5
|
+
constructor(config: SeedRunnerConfig);
|
|
6
|
+
run(ctx: SeedContext): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=seed-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-runner.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/seed-runner.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAgB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEhG,qBAAa,UAAW,YAAW,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAChD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAQ;gBAET,MAAM,EAAE,gBAAgB;IAK9B,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAWlD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cibule/seed",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://gitlab.com/LadaBr/cibule",
|
|
28
|
+
"directory": "packages/seed"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@cibule/db": "workspace:*",
|
|
35
|
+
"@cibule/storage": "workspace:*"
|
|
36
|
+
}
|
|
37
|
+
}
|