@rimelight/config 0.0.6 → 0.0.8

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.
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from "drizzle-kit"
2
+
3
+ export function rimelightDrizzleConfig(options = {}) {
4
+ const {
5
+ out = "./drizzle",
6
+ schema = "./src/db/schema/index.ts",
7
+ dialect = "sqlite",
8
+ ...rest
9
+ } = options
10
+
11
+ return defineConfig({
12
+ out,
13
+ schema,
14
+ dialect,
15
+ ...rest
16
+ })
17
+ }
@@ -0,0 +1,19 @@
1
+ import { defineConfig, type Config } from "drizzle-kit"
2
+
3
+ export type RimelightDrizzleOptions = Partial<Config>
4
+
5
+ export function rimelightDrizzleConfig(options: RimelightDrizzleOptions = {}): Config {
6
+ const {
7
+ out = "./drizzle",
8
+ schema = "./src/db/schema/index.ts",
9
+ dialect = "sqlite",
10
+ ...rest
11
+ } = options
12
+
13
+ return defineConfig({
14
+ out,
15
+ schema,
16
+ dialect,
17
+ ...rest
18
+ })
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimelight/config",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "description": "Rimelight Entertainment's shared configuration package",
6
6
  "homepage": "https://rimelight.com/docs",
@@ -19,6 +19,7 @@
19
19
  "tsconfig",
20
20
  "vite-plus",
21
21
  "astro",
22
+ "drizzle",
22
23
  "src"
23
24
  ],
24
25
  "type": "module",
@@ -33,6 +34,10 @@
33
34
  "./astro": {
34
35
  "types": "./astro/index.ts",
35
36
  "default": "./astro/index.js"
37
+ },
38
+ "./drizzle": {
39
+ "types": "./drizzle/index.ts",
40
+ "default": "./drizzle/index.js"
36
41
  }
37
42
  },
38
43
  "publishConfig": {
@@ -40,7 +45,14 @@
40
45
  },
41
46
  "devDependencies": {
42
47
  "@astrojs/cloudflare": "14.3.1",
48
+ "@rimelight/auth": "0.0.5",
49
+ "@rimelight/cms": "0.0.8",
50
+ "@rimelight/i18n": "0.0.11",
51
+ "@rimelight/security": "0.0.11",
52
+ "@rimelight/seo": "0.0.6",
53
+ "@rimelight/ui": "0.0.50",
43
54
  "astro": "7.3.2",
55
+ "drizzle-kit": "0.31.10",
44
56
  "typescript": "6.0.3",
45
57
  "vite-plus": "0.3.1"
46
58
  },
@@ -52,7 +64,8 @@
52
64
  "@rimelight/security": ">=0.0.1",
53
65
  "@rimelight/seo": ">=0.0.1",
54
66
  "@rimelight/ui": ">=0.0.1",
55
- "astro": ">=7.0.0"
67
+ "astro": ">=7.0.0",
68
+ "drizzle-kit": ">=0.30.0"
56
69
  },
57
70
  "peerDependenciesMeta": {
58
71
  "@astrojs/cloudflare": {
@@ -78,6 +91,9 @@
78
91
  },
79
92
  "astro": {
80
93
  "optional": true
94
+ },
95
+ "drizzle-kit": {
96
+ "optional": true
81
97
  }
82
98
  },
83
99
  "engines": {