@mionjs/drizzle 0.8.0-alpha.0

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 (60) hide show
  1. package/.dist/esm/index.d.ts +3 -0
  2. package/.dist/esm/index.js +9 -0
  3. package/.dist/esm/index.js.map +1 -0
  4. package/.dist/esm/src/core/typeTraverser.d.ts +6 -0
  5. package/.dist/esm/src/core/typeTraverser.js +99 -0
  6. package/.dist/esm/src/core/typeTraverser.js.map +1 -0
  7. package/.dist/esm/src/core/utils.d.ts +12 -0
  8. package/.dist/esm/src/core/utils.js +62 -0
  9. package/.dist/esm/src/core/utils.js.map +1 -0
  10. package/.dist/esm/src/core/validator.d.ts +2 -0
  11. package/.dist/esm/src/core/validator.js +172 -0
  12. package/.dist/esm/src/core/validator.js.map +1 -0
  13. package/.dist/esm/src/mappers/base.mapper.d.ts +14 -0
  14. package/.dist/esm/src/mappers/base.mapper.js +41 -0
  15. package/.dist/esm/src/mappers/base.mapper.js.map +1 -0
  16. package/.dist/esm/src/mappers/mysql.mapper.d.ts +12 -0
  17. package/.dist/esm/src/mappers/mysql.mapper.js +88 -0
  18. package/.dist/esm/src/mappers/mysql.mapper.js.map +1 -0
  19. package/.dist/esm/src/mappers/pg.mapper.d.ts +12 -0
  20. package/.dist/esm/src/mappers/pg.mapper.js +91 -0
  21. package/.dist/esm/src/mappers/pg.mapper.js.map +1 -0
  22. package/.dist/esm/src/mappers/sqlite.mapper.d.ts +12 -0
  23. package/.dist/esm/src/mappers/sqlite.mapper.js +70 -0
  24. package/.dist/esm/src/mappers/sqlite.mapper.js.map +1 -0
  25. package/.dist/esm/src/mysql.d.ts +15 -0
  26. package/.dist/esm/src/mysql.js +49 -0
  27. package/.dist/esm/src/mysql.js.map +1 -0
  28. package/.dist/esm/src/postgres.d.ts +15 -0
  29. package/.dist/esm/src/postgres.js +49 -0
  30. package/.dist/esm/src/postgres.js.map +1 -0
  31. package/.dist/esm/src/sqlite.d.ts +15 -0
  32. package/.dist/esm/src/sqlite.js +49 -0
  33. package/.dist/esm/src/sqlite.js.map +1 -0
  34. package/.dist/esm/src/stubs-formats-mappings/common.d.ts +28 -0
  35. package/.dist/esm/src/stubs-formats-mappings/common.js +11 -0
  36. package/.dist/esm/src/stubs-formats-mappings/common.js.map +1 -0
  37. package/.dist/esm/src/stubs-formats-mappings/mysql.stub.d.ts +1 -0
  38. package/.dist/esm/src/stubs-formats-mappings/mysql.stub.js +8 -0
  39. package/.dist/esm/src/stubs-formats-mappings/mysql.stub.js.map +1 -0
  40. package/.dist/esm/src/stubs-formats-mappings/postgres.stub.d.ts +1 -0
  41. package/.dist/esm/src/stubs-formats-mappings/postgres.stub.js +8 -0
  42. package/.dist/esm/src/stubs-formats-mappings/postgres.stub.js.map +1 -0
  43. package/.dist/esm/src/stubs-formats-mappings/sqlite.stub.d.ts +1 -0
  44. package/.dist/esm/src/stubs-formats-mappings/sqlite.stub.js +8 -0
  45. package/.dist/esm/src/stubs-formats-mappings/sqlite.stub.js.map +1 -0
  46. package/.dist/esm/src/types/common.types.d.ts +118 -0
  47. package/.dist/esm/src/types/common.types.js +81 -0
  48. package/.dist/esm/src/types/common.types.js.map +1 -0
  49. package/.dist/esm/src/types/mysql.types.d.ts +66 -0
  50. package/.dist/esm/src/types/mysql.types.js +26 -0
  51. package/.dist/esm/src/types/mysql.types.js.map +1 -0
  52. package/.dist/esm/src/types/postgres.types.d.ts +62 -0
  53. package/.dist/esm/src/types/postgres.types.js +28 -0
  54. package/.dist/esm/src/types/postgres.types.js.map +1 -0
  55. package/.dist/esm/src/types/sqlite.types.d.ts +62 -0
  56. package/.dist/esm/src/types/sqlite.types.js +22 -0
  57. package/.dist/esm/src/types/sqlite.types.js.map +1 -0
  58. package/LICENSE +21 -0
  59. package/README.md +28 -0
  60. package/package.json +62 -0
@@ -0,0 +1,81 @@
1
+ const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
2
+ const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
3
+ const __ΩDatabaseType = ["postgres", "mysql", "sqlite", "DatabaseType", 'P.!.".#Jw$y'];
4
+ const __ΩExtractBrandName = ["T", "brand", "ExtractBrandName", `l;e"!R!RPde#!Ph"!4"Mqk#'QRb!Pde"!p)w#y`];
5
+ const __ΩAllBrandNames = [() => __ΩExtractBrandName, "BrandEmail", () => __ΩExtractBrandName, "BrandUUID", () => __ΩExtractBrandName, "BrandUrl", () => __ΩExtractBrandName, "BrandDomain", () => __ΩExtractBrandName, "BrandIP", () => __ΩExtractBrandName, "BrandDate", () => __ΩExtractBrandName, "BrandTime", () => __ΩExtractBrandName, "BrandDateTime", () => __ΩExtractBrandName, "BrandInteger", () => __ΩExtractBrandName, "BrandFloat", () => __ΩExtractBrandName, "BrandPositive", () => __ΩExtractBrandName, "BrandNegative", () => __ΩExtractBrandName, "BrandPositiveInt", () => __ΩExtractBrandName, "BrandNegativeInt", () => __ΩExtractBrandName, "BrandInt8", () => __ΩExtractBrandName, "BrandInt16", () => __ΩExtractBrandName, "BrandInt32", () => __ΩExtractBrandName, "BrandUInt8", () => __ΩExtractBrandName, "BrandUInt16", () => __ΩExtractBrandName, "BrandUInt32", "AllBrandNames", `P"w"o!""w$o#""w&o%""w(o'""w*o)""w,o+""w.o-""w0o/""w2o1""w4o3""w6o5""w8o7""w:o9""w<o;""w>o=""w@o?""wBoA""wDoC""wFoE""wHoG"JwIy`];
6
+ const DrizzleTypesPostgres = {
7
+ text: "text",
8
+ boolean: "boolean",
9
+ bigint: "bigint",
10
+ varchar: "varchar",
11
+ date: "date",
12
+ time: "time",
13
+ timestamp: "timestamp",
14
+ integer: "integer",
15
+ doublePrecision: "doublePrecision",
16
+ uuid: "uuid",
17
+ inet: "inet",
18
+ char: "char",
19
+ jsonb: "jsonb"
20
+ };
21
+ const DrizzleTypesMySQL = {
22
+ text: "text",
23
+ boolean: "boolean",
24
+ bigint: "bigint",
25
+ varchar: "varchar",
26
+ date: "date",
27
+ time: "time",
28
+ timestamp: "timestamp",
29
+ json: "json",
30
+ double: "double",
31
+ int: "int",
32
+ datetime: "datetime"
33
+ };
34
+ const DrizzleTypesSQLite = {
35
+ text: "text",
36
+ integer: "integer",
37
+ real: "real",
38
+ blob: "blob"
39
+ };
40
+ const DrizzleTypes = {
41
+ ...DrizzleTypesPostgres,
42
+ ...DrizzleTypesMySQL,
43
+ ...DrizzleTypesSQLite
44
+ };
45
+ const __ΩDrizzleTypePostgres = [() => DrizzleTypesPostgres, () => DrizzleTypesPostgres, "DrizzleTypePostgres", 'i!i"gfw#y'];
46
+ const __ΩDrizzleTypeMySQL = [() => DrizzleTypesMySQL, () => DrizzleTypesMySQL, "DrizzleTypeMySQL", 'i!i"gfw#y'];
47
+ const __ΩDrizzleTypeSQLite = [() => DrizzleTypesSQLite, () => DrizzleTypesSQLite, "DrizzleTypeSQLite", 'i!i"gfw#y'];
48
+ const __ΩDrizzleType = [() => DrizzleTypes, () => DrizzleTypes, "DrizzleType", 'i!i"gfw#y'];
49
+ const __ΩColumnMapping = ["builder", () => __ΩDrizzleType, "drizzleType", "ColumnMapping", 'P"4!n"4#Mw$y'];
50
+ const __ΩPrimitiveColumnFactory = ["propName", () => __ΩColumnMapping, "", "PrimitiveColumnFactory", 'P&2!n"/#w$y'];
51
+ const __ΩFormatColumnFactory = ["propName", () => __ΩRecord, "formatParams", () => __ΩDrizzleMapperConfig, "config", () => __ΩColumnMapping, "", "FormatColumnFactory", `P&2!&"o"#2#8n$2%8n&/'w(y`];
52
+ const __ΩPropertyInfo = ["name", "BaseRunType", "runType", "isOptional", "isNestedObject", "isArray", "isDate", "formatName", () => __ΩRecord, "formatParams", "ReflectionKind", "primitiveKind", "PropertyInfo", `P&4!"w"4#)4$)4%)4&)4'&4(8&"o)#4*8"w+4,8Mw-y`];
53
+ const __ΩTypeInfo = ["typeName", () => __ΩPropertyInfo, "properties", "TypeInfo", 'P&4!n"F4#Mw$y'];
54
+ const __ΩValidationResult = ["valid", "errors", "warnings", "ValidationResult", 'P)4!&F4"&F4#Mw$y'];
55
+ const DEFAULT_VARCHAR_LENGTH = 255;
56
+ const DEFAULT_LENGTH_BUFFER = 1.5;
57
+ const __ΩDrizzleMapperConfig = ["lengthBuffer", "DrizzleMapperConfig", `P'4!8Mw"y`];
58
+ const __ΩNullable = ["T", "K", "Col", () => __ΩPick, true, "notNull", "_", "Nullable", `l7e##RPe$#PP.%4&M4'MKRb!b"b#PPMe"!e""o$#qk#'Qw(y`];
59
+ export {
60
+ DEFAULT_LENGTH_BUFFER,
61
+ DEFAULT_VARCHAR_LENGTH,
62
+ DrizzleTypes,
63
+ DrizzleTypesMySQL,
64
+ DrizzleTypesPostgres,
65
+ DrizzleTypesSQLite,
66
+ __ΩAllBrandNames,
67
+ __ΩColumnMapping,
68
+ __ΩDatabaseType,
69
+ __ΩDrizzleMapperConfig,
70
+ __ΩDrizzleType,
71
+ __ΩDrizzleTypeMySQL,
72
+ __ΩDrizzleTypePostgres,
73
+ __ΩDrizzleTypeSQLite,
74
+ __ΩFormatColumnFactory,
75
+ __ΩNullable,
76
+ __ΩPrimitiveColumnFactory,
77
+ __ΩPropertyInfo,
78
+ __ΩTypeInfo,
79
+ __ΩValidationResult
80
+ };
81
+ //# sourceMappingURL=common.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,66 @@
1
+ import { MySqlColumnBuilderBase, MySqlTableWithColumns, MySqlTextBuilderInitial, MySqlVarCharBuilderInitial, MySqlIntBuilderInitial, MySqlDoubleBuilderInitial, MySqlBooleanBuilderInitial, MySqlBigInt53BuilderInitial, MySqlTimestampBuilderInitial, MySqlDateTimeBuilderInitial, MySqlDateBuilderInitial, MySqlTimeBuilderInitial, MySqlJsonBuilderInitial } from 'drizzle-orm/mysql-core';
2
+ import { BuildColumns, $Type } from 'drizzle-orm/column-builder';
3
+ type MySqlTextColumn<K extends string> = MySqlTextBuilderInitial<K, [string, ...string[]]>;
4
+ type MySqlVarcharColumn<K extends string> = MySqlVarCharBuilderInitial<K, [string, ...string[]], number | undefined>;
5
+ type MySqlIntColumn<K extends string> = MySqlIntBuilderInitial<K>;
6
+ type MySqlDoubleColumn<K extends string> = MySqlDoubleBuilderInitial<K>;
7
+ type MySqlBooleanColumn<K extends string> = MySqlBooleanBuilderInitial<K>;
8
+ type MySqlBigIntColumn<K extends string> = MySqlBigInt53BuilderInitial<K>;
9
+ type MySqlTimestampColumn<K extends string> = MySqlTimestampBuilderInitial<K>;
10
+ type MySqlDatetimeColumn<K extends string> = MySqlDateTimeBuilderInitial<K>;
11
+ type MySqlDateColumn<K extends string> = MySqlDateBuilderInitial<K>;
12
+ type MySqlTimeColumn<K extends string> = MySqlTimeBuilderInitial<K>;
13
+ type MySqlJsonColumn<K extends string> = MySqlJsonBuilderInitial<K>;
14
+ type MySqlBrandColumnMap<K extends string> = {
15
+ email: MySqlVarcharColumn<K>;
16
+ uuid: MySqlVarcharColumn<K>;
17
+ url: MySqlTextColumn<K>;
18
+ domain: MySqlVarcharColumn<K>;
19
+ ip: MySqlVarcharColumn<K>;
20
+ date: MySqlDateColumn<K>;
21
+ time: MySqlTimeColumn<K>;
22
+ dateTime: MySqlDatetimeColumn<K>;
23
+ integer: MySqlIntColumn<K>;
24
+ positiveInt: MySqlIntColumn<K>;
25
+ negativeInt: MySqlIntColumn<K>;
26
+ int8: MySqlIntColumn<K>;
27
+ uint8: MySqlIntColumn<K>;
28
+ int16: MySqlIntColumn<K>;
29
+ uint16: MySqlIntColumn<K>;
30
+ int32: MySqlIntColumn<K>;
31
+ uint32: MySqlIntColumn<K>;
32
+ float: MySqlDoubleColumn<K>;
33
+ positive: MySqlDoubleColumn<K>;
34
+ negative: MySqlDoubleColumn<K>;
35
+ };
36
+ type MySqlPrimitiveColumnMap<K extends string> = {
37
+ string: MySqlTextColumn<K>;
38
+ number: MySqlDoubleColumn<K>;
39
+ boolean: MySqlBooleanColumn<K>;
40
+ bigint: MySqlBigIntColumn<K>;
41
+ };
42
+ type MySqlPrimitiveColumnType<K extends string, T> = T extends string ? MySqlPrimitiveColumnMap<K>['string'] : T extends number ? MySqlPrimitiveColumnMap<K>['number'] : T extends boolean ? MySqlPrimitiveColumnMap<K>['boolean'] : T extends bigint ? MySqlPrimitiveColumnMap<K>['bigint'] : never;
43
+ export type MySqlColumnType<K extends string, T> = T extends {
44
+ brand: infer B extends string;
45
+ } ? B extends keyof MySqlBrandColumnMap<K> ? $Type<MySqlBrandColumnMap<K>[B], T> : T extends string ? $Type<MySqlTextColumn<K>, T> : $Type<MySqlDoubleColumn<K>, T> : T extends string | number | boolean | bigint ? MySqlPrimitiveColumnType<K, T> : T extends Date ? MySqlTimestampColumn<K> : T extends any[] | object ? $Type<MySqlJsonColumn<K>, T> : MySqlColumnBuilderBase;
46
+ export type MySqlTableConfig<T> = {
47
+ [K in keyof T as K extends string ? K : never]?: MySqlColumnBuilderBase;
48
+ };
49
+ export type AutoGeneratedMySqlColumns<T> = {
50
+ [K in keyof T as K extends string ? K : never]-?: {} extends Pick<T, K> ? MySqlColumnType<K & string, NonNullable<T[K]>> : MySqlColumnType<K & string, T[K]> & {
51
+ _: {
52
+ notNull: true;
53
+ };
54
+ };
55
+ };
56
+ export type DrizzleMySqlTableResult<TTableName extends string, T, TConfig extends MySqlTableConfig<T> = MySqlTableConfig<T>> = MySqlTableWithColumns<{
57
+ name: TTableName;
58
+ schema: undefined;
59
+ columns: BuildColumns<TTableName, AutoGeneratedMySqlColumns<T> & TConfig, 'mysql'>;
60
+ dialect: 'mysql';
61
+ }>;
62
+ export {};
63
+ export declare type __ΩMySqlColumnType = any[];
64
+ export declare type __ΩMySqlTableConfig = any[];
65
+ export declare type __ΩAutoGeneratedMySqlColumns = any[];
66
+ export declare type __ΩDrizzleMySqlTableResult = any[];
@@ -0,0 +1,26 @@
1
+ const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
2
+ const __ΩNonNullable = ["T", "NonNullable", 'b!Pe"!PMKw"y'];
3
+ const __ΩMySqlTextColumn = ["K", "MySqlTextColumn", 'b!!w"y'];
4
+ const __ΩMySqlVarcharColumn = ["K", "MySqlVarcharColumn", 'b!!w"y'];
5
+ const __ΩMySqlIntColumn = ["K", "MySqlIntColumn", 'b!!w"y'];
6
+ const __ΩMySqlDoubleColumn = ["K", "MySqlDoubleColumn", 'b!!w"y'];
7
+ const __ΩMySqlBooleanColumn = ["K", "MySqlBooleanColumn", 'b!!w"y'];
8
+ const __ΩMySqlBigIntColumn = ["K", "MySqlBigIntColumn", 'b!!w"y'];
9
+ const __ΩMySqlTimestampColumn = ["K", "MySqlTimestampColumn", 'b!!w"y'];
10
+ const __ΩMySqlDatetimeColumn = ["K", "MySqlDatetimeColumn", 'b!!w"y'];
11
+ const __ΩMySqlDateColumn = ["K", "MySqlDateColumn", 'b!!w"y'];
12
+ const __ΩMySqlTimeColumn = ["K", "MySqlTimeColumn", 'b!!w"y'];
13
+ const __ΩMySqlBrandColumnMap = ["K", () => __ΩMySqlVarcharColumn, "email", () => __ΩMySqlVarcharColumn, "uuid", () => __ΩMySqlTextColumn, "url", () => __ΩMySqlVarcharColumn, "domain", () => __ΩMySqlVarcharColumn, "ip", () => __ΩMySqlDateColumn, "date", () => __ΩMySqlTimeColumn, "time", () => __ΩMySqlDatetimeColumn, "dateTime", () => __ΩMySqlIntColumn, "integer", () => __ΩMySqlIntColumn, "positiveInt", () => __ΩMySqlIntColumn, "negativeInt", () => __ΩMySqlIntColumn, "int8", () => __ΩMySqlIntColumn, "uint8", () => __ΩMySqlIntColumn, "int16", () => __ΩMySqlIntColumn, "uint16", () => __ΩMySqlIntColumn, "int32", () => __ΩMySqlIntColumn, "uint32", () => __ΩMySqlDoubleColumn, "float", () => __ΩMySqlDoubleColumn, "positive", () => __ΩMySqlDoubleColumn, "negative", "MySqlBrandColumnMap", `b!Pe"!o""4#e"!o$"4%e"!o&"4'e"!o("4)e"!o*"4+e"!o,"4-e"!o."4/e"!o0"41e"!o2"43e"!o4"45e"!o6"47e"!o8"49e"!o:"4;e"!o<"4=e"!o>"4?e"!o@"4Ae"!oB"4Ce"!oD"4Ee"!oF"4Ge"!oH"4IMwJy`];
14
+ const __ΩMySqlPrimitiveColumnMap = ["K", () => __ΩMySqlTextColumn, "string", () => __ΩMySqlDoubleColumn, "number", () => __ΩMySqlBooleanColumn, "boolean", () => __ΩMySqlBigIntColumn, "bigint", "MySqlPrimitiveColumnMap", `b!Pe"!o""4#e"!o$"4%e"!o&"4'e"!o("4)Mw*y`];
15
+ const __ΩMySqlPrimitiveColumnType = ["K", "T", () => __ΩMySqlPrimitiveColumnMap, "string", () => __ΩMySqlPrimitiveColumnMap, "number", () => __ΩMySqlPrimitiveColumnMap, "boolean", () => __ΩMySqlPrimitiveColumnMap, "bigint", "MySqlPrimitiveColumnType", `l‘e%!o#".$fRe)!o%".&fRe-!o'".(fRe1!o)".*fR!RPe#!*qkAKQRPde%!pMRPe#!)qk7XQRPde%!p\`RPe#!'qk-kQRPde%!psRPe#!&qk#~QRb!b"Pde""p†w+y`];
16
+ const __ΩMySqlColumnType = ["K", "T", "brand", () => __ΩMySqlBrandColumnMap, () => __ΩMySqlPrimitiveColumnType, () => __ΩMySqlTimestampColumn, "MySqlColumnType", `l¾!R!R!RPe#!&qk%'QRPde)!p)RPe#!e(!o$"gqk#4QRPde#!p<Re)!e$!o%#Re-!o&"R!R!RPe#!P"F%JqkfhQRPde%!pjRPe#!Tqk_yQRPde%!pRPe#!P&')*JqkUŒQRPde%!p”RPde#!Ph"!4#MqkM¤QRb!b"Pde""p¬w'y`];
17
+ const __ΩMySqlTableConfig = ["T", "MySqlTableConfig", `l?e$!R!RPe#!&qk#'QRP!Pde$!p)GRb!Pde"!gt4"w"y`];
18
+ const __ΩAutoGeneratedMySqlColumns = ["T", () => __ΩPick, () => __ΩMySqlColumnType, () => __ΩNonNullable, () => __ΩMySqlColumnType, true, "notNull", "_", "AutoGeneratedMySqlColumns", `l€Pe&!&Ke&!e%!fo$"o##RPPe'!&Ke'!e&!fo%#PP.&4'M4(MKRe$!R!RPe#!&qkTXQRPPPMe%!e$!o"#qk#7QPde$!pZGRb!Pde"!gte#w)y`];
19
+ const __ΩDrizzleMySqlTableResult = ["TTableName", "T", () => __ΩMySqlTableConfig, "TConfig", "DrizzleMySqlTableResult", 'b!b"e!"o#"c$!w%y'];
20
+ export {
21
+ __ΩAutoGeneratedMySqlColumns,
22
+ __ΩDrizzleMySqlTableResult,
23
+ __ΩMySqlColumnType,
24
+ __ΩMySqlTableConfig
25
+ };
26
+ //# sourceMappingURL=mysql.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,62 @@
1
+ import { PgColumnBuilderBase, text, varchar, uuid, integer, doublePrecision, boolean, bigint, timestamp, date, time, jsonb, inet, pgTable } from 'drizzle-orm/pg-core';
2
+ import { $Type } from 'drizzle-orm/column-builder';
3
+ type PgTextColumn<K extends string> = ReturnType<typeof text<K, string, readonly [string, ...string[]]>>;
4
+ type PgVarcharColumn<K extends string> = ReturnType<typeof varchar<K, string, readonly [string, ...string[]], number | undefined>>;
5
+ type PgUUIDColumn<K extends string> = ReturnType<typeof uuid<K>>;
6
+ type PgInetColumn<K extends string> = ReturnType<typeof inet<K>>;
7
+ type PgIntegerColumn<K extends string> = ReturnType<typeof integer<K>>;
8
+ type PgDoublePrecisionColumn<K extends string> = ReturnType<typeof doublePrecision<K>>;
9
+ type PgBooleanColumn<K extends string> = ReturnType<typeof boolean<K>>;
10
+ type PgBigIntColumn<K extends string> = ReturnType<typeof bigint<K, 'bigint'>>;
11
+ type PgTimestampColumn<K extends string> = ReturnType<typeof timestamp<K, 'date'>>;
12
+ type PgDateColumn<K extends string> = ReturnType<typeof date<K, 'date'>>;
13
+ type PgTimeColumn<K extends string> = ReturnType<typeof time<K>>;
14
+ type PgJsonbColumn<K extends string> = ReturnType<typeof jsonb<K>>;
15
+ type PgBrandColumnMap<K extends string> = {
16
+ email: PgVarcharColumn<K>;
17
+ uuid: PgUUIDColumn<K>;
18
+ url: PgTextColumn<K>;
19
+ domain: PgTextColumn<K>;
20
+ ip: PgInetColumn<K>;
21
+ date: PgDateColumn<K>;
22
+ time: PgTimeColumn<K>;
23
+ dateTime: PgTimestampColumn<K>;
24
+ integer: PgIntegerColumn<K>;
25
+ positiveInt: PgIntegerColumn<K>;
26
+ negativeInt: PgIntegerColumn<K>;
27
+ int8: PgIntegerColumn<K>;
28
+ uint8: PgIntegerColumn<K>;
29
+ int16: PgIntegerColumn<K>;
30
+ uint16: PgIntegerColumn<K>;
31
+ int32: PgIntegerColumn<K>;
32
+ uint32: PgIntegerColumn<K>;
33
+ float: PgDoublePrecisionColumn<K>;
34
+ positive: PgDoublePrecisionColumn<K>;
35
+ negative: PgDoublePrecisionColumn<K>;
36
+ };
37
+ type PgPrimitiveColumnMap<K extends string> = {
38
+ string: PgTextColumn<K>;
39
+ number: PgDoublePrecisionColumn<K>;
40
+ boolean: PgBooleanColumn<K>;
41
+ bigint: PgBigIntColumn<K>;
42
+ };
43
+ type PgPrimitiveColumnType<K extends string, T> = T extends string ? PgPrimitiveColumnMap<K>['string'] : T extends number ? PgPrimitiveColumnMap<K>['number'] : T extends boolean ? PgPrimitiveColumnMap<K>['boolean'] : T extends bigint ? PgPrimitiveColumnMap<K>['bigint'] : never;
44
+ export type PgColumnType<K extends string, T> = T extends {
45
+ brand: infer B extends string;
46
+ } ? B extends keyof PgBrandColumnMap<K> ? $Type<PgBrandColumnMap<K>[B], T> : T extends string ? $Type<PgTextColumn<K>, T> : $Type<PgDoublePrecisionColumn<K>, T> : T extends string | number | boolean | bigint ? PgPrimitiveColumnType<K, T> : T extends Date ? PgTimestampColumn<K> : T extends any[] | object ? $Type<PgJsonbColumn<K>, T> : PgColumnBuilderBase;
47
+ export type PgTableConfig<T> = {
48
+ [K in keyof T as K extends string ? K : never]?: PgColumnBuilderBase;
49
+ };
50
+ export type AutoGeneratedPgColumns<T> = {
51
+ [K in keyof T as K extends string ? K : never]-?: {} extends Pick<T, K> ? PgColumnType<K & string, NonNullable<T[K]>> : PgColumnType<K & string, T[K]> & {
52
+ _: {
53
+ notNull: true;
54
+ };
55
+ };
56
+ };
57
+ export type DrizzlePgTableResult<TTableName extends string, TConfig extends Record<string, any>> = ReturnType<typeof pgTable<TTableName, TConfig>>;
58
+ export {};
59
+ export declare type __ΩPgColumnType = any[];
60
+ export declare type __ΩPgTableConfig = any[];
61
+ export declare type __ΩAutoGeneratedPgColumns = any[];
62
+ export declare type __ΩDrizzlePgTableResult = any[];
@@ -0,0 +1,28 @@
1
+ const __ΩReturnType = ["T", "args", "", "ReturnType", `l>e"!R"RPde#!P"@2"h"!/#qk#'QRb!Pde"!p)w$y`];
2
+ const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
3
+ const __ΩNonNullable = ["T", "NonNullable", 'b!Pe"!PMKw"y'];
4
+ const __ΩPgTextColumn = ["K", () => __ΩReturnType, () => text, "PgTextColumn", 'b!i#o""w$y'];
5
+ const __ΩPgVarcharColumn = ["K", () => __ΩReturnType, () => varchar, "PgVarcharColumn", 'b!i#o""w$y'];
6
+ const __ΩPgUUIDColumn = ["K", () => __ΩReturnType, () => uuid, "PgUUIDColumn", 'b!i#o""w$y'];
7
+ const __ΩPgInetColumn = ["K", () => __ΩReturnType, () => inet, "PgInetColumn", 'b!i#o""w$y'];
8
+ const __ΩPgIntegerColumn = ["K", () => __ΩReturnType, () => integer, "PgIntegerColumn", 'b!i#o""w$y'];
9
+ const __ΩPgDoublePrecisionColumn = ["K", () => __ΩReturnType, () => doublePrecision, "PgDoublePrecisionColumn", 'b!i#o""w$y'];
10
+ const __ΩPgBooleanColumn = ["K", () => __ΩReturnType, () => boolean, "PgBooleanColumn", 'b!i#o""w$y'];
11
+ const __ΩPgBigIntColumn = ["K", () => __ΩReturnType, () => bigint, "PgBigIntColumn", 'b!i#o""w$y'];
12
+ const __ΩPgTimestampColumn = ["K", () => __ΩReturnType, () => timestamp, "PgTimestampColumn", 'b!i#o""w$y'];
13
+ const __ΩPgDateColumn = ["K", () => __ΩReturnType, () => date, "PgDateColumn", 'b!i#o""w$y'];
14
+ const __ΩPgTimeColumn = ["K", () => __ΩReturnType, () => time, "PgTimeColumn", 'b!i#o""w$y'];
15
+ const __ΩPgBrandColumnMap = ["K", () => __ΩPgVarcharColumn, "email", () => __ΩPgUUIDColumn, "uuid", () => __ΩPgTextColumn, "url", () => __ΩPgTextColumn, "domain", () => __ΩPgInetColumn, "ip", () => __ΩPgDateColumn, "date", () => __ΩPgTimeColumn, "time", () => __ΩPgTimestampColumn, "dateTime", () => __ΩPgIntegerColumn, "integer", () => __ΩPgIntegerColumn, "positiveInt", () => __ΩPgIntegerColumn, "negativeInt", () => __ΩPgIntegerColumn, "int8", () => __ΩPgIntegerColumn, "uint8", () => __ΩPgIntegerColumn, "int16", () => __ΩPgIntegerColumn, "uint16", () => __ΩPgIntegerColumn, "int32", () => __ΩPgIntegerColumn, "uint32", () => __ΩPgDoublePrecisionColumn, "float", () => __ΩPgDoublePrecisionColumn, "positive", () => __ΩPgDoublePrecisionColumn, "negative", "PgBrandColumnMap", `b!Pe"!o""4#e"!o$"4%e"!o&"4'e"!o("4)e"!o*"4+e"!o,"4-e"!o."4/e"!o0"41e"!o2"43e"!o4"45e"!o6"47e"!o8"49e"!o:"4;e"!o<"4=e"!o>"4?e"!o@"4Ae"!oB"4Ce"!oD"4Ee"!oF"4Ge"!oH"4IMwJy`];
16
+ const __ΩPgPrimitiveColumnMap = ["K", () => __ΩPgTextColumn, "string", () => __ΩPgDoublePrecisionColumn, "number", () => __ΩPgBooleanColumn, "boolean", () => __ΩPgBigIntColumn, "bigint", "PgPrimitiveColumnMap", `b!Pe"!o""4#e"!o$"4%e"!o&"4'e"!o("4)Mw*y`];
17
+ const __ΩPgPrimitiveColumnType = ["K", "T", () => __ΩPgPrimitiveColumnMap, "string", () => __ΩPgPrimitiveColumnMap, "number", () => __ΩPgPrimitiveColumnMap, "boolean", () => __ΩPgPrimitiveColumnMap, "bigint", "PgPrimitiveColumnType", `l‘e%!o#".$fRe)!o%".&fRe-!o'".(fRe1!o)".*fR!RPe#!*qkAKQRPde%!pMRPe#!)qk7XQRPde%!p\`RPe#!'qk-kQRPde%!psRPe#!&qk#~QRb!b"Pde""p†w+y`];
18
+ const __ΩPgColumnType = ["K", "T", "brand", () => __ΩPgBrandColumnMap, () => __ΩPgPrimitiveColumnType, () => __ΩPgTimestampColumn, "PgColumnType", `l¾!R!R!RPe#!&qk%'QRPde)!p)RPe#!e(!o$"gqk#4QRPde#!p<Re)!e$!o%#Re-!o&"R!R!RPe#!P"F%JqkfhQRPde%!pjRPe#!Tqk_yQRPde%!pRPe#!P&')*JqkUŒQRPde%!p”RPde#!Ph"!4#MqkM¤QRb!b"Pde""p¬w'y`];
19
+ const __ΩPgTableConfig = ["T", "PgTableConfig", `l?e$!R!RPe#!&qk#'QRP!Pde$!p)GRb!Pde"!gt4"w"y`];
20
+ const __ΩAutoGeneratedPgColumns = ["T", () => __ΩPick, () => __ΩPgColumnType, () => __ΩNonNullable, () => __ΩPgColumnType, true, "notNull", "_", "AutoGeneratedPgColumns", `l€Pe&!&Ke&!e%!fo$"o##RPPe'!&Ke'!e&!fo%#PP.&4'M4(MKRe$!R!RPe#!&qkTXQRPPPMe%!e$!o"#qk#7QPde$!pZGRb!Pde"!gte#w)y`];
21
+ const __ΩDrizzlePgTableResult = ["TTableName", "TConfig", () => __ΩReturnType, () => pgTable, "DrizzlePgTableResult", 'b!b"i$o#"w%y'];
22
+ export {
23
+ __ΩAutoGeneratedPgColumns,
24
+ __ΩDrizzlePgTableResult,
25
+ __ΩPgColumnType,
26
+ __ΩPgTableConfig
27
+ };
28
+ //# sourceMappingURL=postgres.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,62 @@
1
+ import { SQLiteColumnBuilderBase, SQLiteTableWithColumns, SQLiteTextBuilderInitial, SQLiteIntegerBuilderInitial, SQLiteRealBuilderInitial, SQLiteBooleanBuilderInitial, SQLiteTimestampBuilderInitial, SQLiteBigIntBuilderInitial, SQLiteBlobJsonBuilderInitial } from 'drizzle-orm/sqlite-core';
2
+ import { BuildColumns, $Type } from 'drizzle-orm/column-builder';
3
+ type SqliteTextColumn<K extends string> = SQLiteTextBuilderInitial<K, [string, ...string[]], number | undefined>;
4
+ type SqliteIntegerColumn<K extends string> = SQLiteIntegerBuilderInitial<K>;
5
+ type SqliteRealColumn<K extends string> = SQLiteRealBuilderInitial<K>;
6
+ type SqliteBooleanColumn<K extends string> = SQLiteBooleanBuilderInitial<K>;
7
+ type SqliteTimestampColumn<K extends string> = SQLiteTimestampBuilderInitial<K>;
8
+ type SqliteBigIntColumn<K extends string> = SQLiteBigIntBuilderInitial<K>;
9
+ type SqliteJsonColumn<K extends string> = SQLiteBlobJsonBuilderInitial<K>;
10
+ type SqliteBrandColumnMap<K extends string> = {
11
+ email: SqliteTextColumn<K>;
12
+ uuid: SqliteTextColumn<K>;
13
+ url: SqliteTextColumn<K>;
14
+ domain: SqliteTextColumn<K>;
15
+ ip: SqliteTextColumn<K>;
16
+ date: SqliteTextColumn<K>;
17
+ time: SqliteTextColumn<K>;
18
+ dateTime: SqliteTextColumn<K>;
19
+ integer: SqliteIntegerColumn<K>;
20
+ positiveInt: SqliteIntegerColumn<K>;
21
+ negativeInt: SqliteIntegerColumn<K>;
22
+ int8: SqliteIntegerColumn<K>;
23
+ uint8: SqliteIntegerColumn<K>;
24
+ int16: SqliteIntegerColumn<K>;
25
+ uint16: SqliteIntegerColumn<K>;
26
+ int32: SqliteIntegerColumn<K>;
27
+ uint32: SqliteIntegerColumn<K>;
28
+ float: SqliteRealColumn<K>;
29
+ positive: SqliteRealColumn<K>;
30
+ negative: SqliteRealColumn<K>;
31
+ };
32
+ type SqlitePrimitiveColumnMap<K extends string> = {
33
+ string: SqliteTextColumn<K>;
34
+ number: SqliteRealColumn<K>;
35
+ boolean: SqliteBooleanColumn<K>;
36
+ bigint: SqliteBigIntColumn<K>;
37
+ };
38
+ type SqlitePrimitiveColumnType<K extends string, T> = T extends string ? SqlitePrimitiveColumnMap<K>['string'] : T extends number ? SqlitePrimitiveColumnMap<K>['number'] : T extends boolean ? SqlitePrimitiveColumnMap<K>['boolean'] : T extends bigint ? SqlitePrimitiveColumnMap<K>['bigint'] : never;
39
+ export type SqliteColumnType<K extends string, T> = T extends {
40
+ brand: infer B extends string;
41
+ } ? B extends keyof SqliteBrandColumnMap<K> ? $Type<SqliteBrandColumnMap<K>[B], T> : T extends string ? $Type<SqliteTextColumn<K>, T> : $Type<SqliteRealColumn<K>, T> : T extends string | number | boolean | bigint ? SqlitePrimitiveColumnType<K, T> : T extends Date ? SqliteTimestampColumn<K> : T extends any[] | object ? $Type<SqliteJsonColumn<K>, T> : SQLiteColumnBuilderBase;
42
+ export type SqliteTableConfig<T> = {
43
+ [K in keyof T as K extends string ? K : never]?: SQLiteColumnBuilderBase;
44
+ };
45
+ export type AutoGeneratedSqliteColumns<T> = {
46
+ [K in keyof T as K extends string ? K : never]-?: {} extends Pick<T, K> ? SqliteColumnType<K & string, NonNullable<T[K]>> : SqliteColumnType<K & string, T[K]> & {
47
+ _: {
48
+ notNull: true;
49
+ };
50
+ };
51
+ };
52
+ export type DrizzleSqliteTableResult<TTableName extends string, T, TConfig extends SqliteTableConfig<T> = SqliteTableConfig<T>> = SQLiteTableWithColumns<{
53
+ name: TTableName;
54
+ schema: undefined;
55
+ columns: BuildColumns<TTableName, AutoGeneratedSqliteColumns<T> & TConfig, 'sqlite'>;
56
+ dialect: 'sqlite';
57
+ }>;
58
+ export {};
59
+ export declare type __ΩSqliteColumnType = any[];
60
+ export declare type __ΩSqliteTableConfig = any[];
61
+ export declare type __ΩAutoGeneratedSqliteColumns = any[];
62
+ export declare type __ΩDrizzleSqliteTableResult = any[];
@@ -0,0 +1,22 @@
1
+ const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
2
+ const __ΩNonNullable = ["T", "NonNullable", 'b!Pe"!PMKw"y'];
3
+ const __ΩSqliteTextColumn = ["K", "SqliteTextColumn", 'b!!w"y'];
4
+ const __ΩSqliteIntegerColumn = ["K", "SqliteIntegerColumn", 'b!!w"y'];
5
+ const __ΩSqliteRealColumn = ["K", "SqliteRealColumn", 'b!!w"y'];
6
+ const __ΩSqliteBooleanColumn = ["K", "SqliteBooleanColumn", 'b!!w"y'];
7
+ const __ΩSqliteTimestampColumn = ["K", "SqliteTimestampColumn", 'b!!w"y'];
8
+ const __ΩSqliteBigIntColumn = ["K", "SqliteBigIntColumn", 'b!!w"y'];
9
+ const __ΩSqliteBrandColumnMap = ["K", () => __ΩSqliteTextColumn, "email", () => __ΩSqliteTextColumn, "uuid", () => __ΩSqliteTextColumn, "url", () => __ΩSqliteTextColumn, "domain", () => __ΩSqliteTextColumn, "ip", () => __ΩSqliteTextColumn, "date", () => __ΩSqliteTextColumn, "time", () => __ΩSqliteTextColumn, "dateTime", () => __ΩSqliteIntegerColumn, "integer", () => __ΩSqliteIntegerColumn, "positiveInt", () => __ΩSqliteIntegerColumn, "negativeInt", () => __ΩSqliteIntegerColumn, "int8", () => __ΩSqliteIntegerColumn, "uint8", () => __ΩSqliteIntegerColumn, "int16", () => __ΩSqliteIntegerColumn, "uint16", () => __ΩSqliteIntegerColumn, "int32", () => __ΩSqliteIntegerColumn, "uint32", () => __ΩSqliteRealColumn, "float", () => __ΩSqliteRealColumn, "positive", () => __ΩSqliteRealColumn, "negative", "SqliteBrandColumnMap", `b!Pe"!o""4#e"!o$"4%e"!o&"4'e"!o("4)e"!o*"4+e"!o,"4-e"!o."4/e"!o0"41e"!o2"43e"!o4"45e"!o6"47e"!o8"49e"!o:"4;e"!o<"4=e"!o>"4?e"!o@"4Ae"!oB"4Ce"!oD"4Ee"!oF"4Ge"!oH"4IMwJy`];
10
+ const __ΩSqlitePrimitiveColumnMap = ["K", () => __ΩSqliteTextColumn, "string", () => __ΩSqliteRealColumn, "number", () => __ΩSqliteBooleanColumn, "boolean", () => __ΩSqliteBigIntColumn, "bigint", "SqlitePrimitiveColumnMap", `b!Pe"!o""4#e"!o$"4%e"!o&"4'e"!o("4)Mw*y`];
11
+ const __ΩSqlitePrimitiveColumnType = ["K", "T", () => __ΩSqlitePrimitiveColumnMap, "string", () => __ΩSqlitePrimitiveColumnMap, "number", () => __ΩSqlitePrimitiveColumnMap, "boolean", () => __ΩSqlitePrimitiveColumnMap, "bigint", "SqlitePrimitiveColumnType", `l‘e%!o#".$fRe)!o%".&fRe-!o'".(fRe1!o)".*fR!RPe#!*qkAKQRPde%!pMRPe#!)qk7XQRPde%!p\`RPe#!'qk-kQRPde%!psRPe#!&qk#~QRb!b"Pde""p†w+y`];
12
+ const __ΩSqliteColumnType = ["K", "T", "brand", () => __ΩSqliteBrandColumnMap, () => __ΩSqlitePrimitiveColumnType, () => __ΩSqliteTimestampColumn, "SqliteColumnType", `l¾!R!R!RPe#!&qk%'QRPde)!p)RPe#!e(!o$"gqk#4QRPde#!p<Re)!e$!o%#Re-!o&"R!R!RPe#!P"F%JqkfhQRPde%!pjRPe#!Tqk_yQRPde%!pRPe#!P&')*JqkUŒQRPde%!p”RPde#!Ph"!4#MqkM¤QRb!b"Pde""p¬w'y`];
13
+ const __ΩSqliteTableConfig = ["T", "SqliteTableConfig", `l?e$!R!RPe#!&qk#'QRP!Pde$!p)GRb!Pde"!gt4"w"y`];
14
+ const __ΩAutoGeneratedSqliteColumns = ["T", () => __ΩPick, () => __ΩSqliteColumnType, () => __ΩNonNullable, () => __ΩSqliteColumnType, true, "notNull", "_", "AutoGeneratedSqliteColumns", `l€Pe&!&Ke&!e%!fo$"o##RPPe'!&Ke'!e&!fo%#PP.&4'M4(MKRe$!R!RPe#!&qkTXQRPPPMe%!e$!o"#qk#7QPde$!pZGRb!Pde"!gte#w)y`];
15
+ const __ΩDrizzleSqliteTableResult = ["TTableName", "T", () => __ΩSqliteTableConfig, "TConfig", "DrizzleSqliteTableResult", 'b!b"e!"o#"c$!w%y'];
16
+ export {
17
+ __ΩAutoGeneratedSqliteColumns,
18
+ __ΩDrizzleSqliteTableResult,
19
+ __ΩSqliteColumnType,
20
+ __ΩSqliteTableConfig
21
+ };
22
+ //# sourceMappingURL=sqlite.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Mion
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MionKit/mion/master/assets/public/bannerx90-dark.png">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/MionKit/mion/master/assets/public/bannerx90.png">
5
+ <img alt='mion, Typescript Full Stack APIs' src='https://raw.githubusercontent.com/MionKit/mion/master/assets/public/bannerx90.png'>
6
+ </picture>
7
+ </p>
8
+ <p align="center">
9
+ <strong>Auto-generate Drizzle ORM table schemas from TypeScript types
10
+ </strong>
11
+ </p>
12
+ <p align=center>
13
+
14
+ <img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square&maxAge=99999999" alt="npm" style="max-width:100%;">
15
+ <img src="https://img.shields.io/badge/license-MIT-97ca00.svg?style=flat-square&maxAge=99999999" alt="npm" style="max-width:100%;">
16
+ </p>
17
+
18
+ # `@mionjs/drizzle`
19
+
20
+ 🚀 Auto-generate Drizzle ORM table schemas from TypeScript types and **mion Type Formats**.
21
+
22
+ ## Check Out The [Website And Documentation](http://mion.io) 📚
23
+
24
+ [![mion-website-banner](https://raw.githubusercontent.com/MionKit/mion/master/assets/public/mion-website-banner.png)](http://mion.io)
25
+
26
+ ---
27
+
28
+ _[MIT](../../LICENSE) LICENSE_
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@mionjs/drizzle",
3
+ "version": "0.8.0-alpha.0",
4
+ "type": "module",
5
+ "description": "drizzle extension for mion run-types",
6
+ "keywords": [
7
+ "typescript",
8
+ "API",
9
+ "RPC",
10
+ "json",
11
+ "schema",
12
+ "generate",
13
+ "server",
14
+ "serverless",
15
+ "framework",
16
+ "node"
17
+ ],
18
+ "author": "ma jerez",
19
+ "homepage": "https://mion.io/",
20
+ "license": "MIT",
21
+ "browser": {},
22
+ "exports": {
23
+ ".": {
24
+ "source": "./index.ts",
25
+ "types": "./.dist/esm/index.d.ts",
26
+ "default": "./.dist/esm/index.js"
27
+ }
28
+ },
29
+ "directories": {
30
+ "lib": ".dist"
31
+ },
32
+ "files": [
33
+ ".dist"
34
+ ],
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/MionKit/mion.git"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "scripts": {
43
+ "test": "vitest run",
44
+ "dev": "vite build --watch",
45
+ "dev:test": "vitest watch",
46
+ "lint": "npx eslint src",
47
+ "format": "prettier --write src/**/*.ts",
48
+ "build": "vite build",
49
+ "clean": "rimraf .dist & rimraf .coverage",
50
+ "fresh-start": "npm run clean && rimraf node_modules"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/MionKit/mion/issues"
54
+ },
55
+ "dependencies": {
56
+ "@mionjs/core": "^0.8.0-alpha.0",
57
+ "@mionjs/run-types": "^0.8.0-alpha.0",
58
+ "@mionjs/type-formats": "^0.8.0-alpha.0",
59
+ "drizzle-orm": "^0.38.0"
60
+ },
61
+ "gitHead": "5d2ec524ba39d040338ce8946d8edf78aa7291a3"
62
+ }