qarpeo 0.4.6 → 0.4.7
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/dist/chunks/manifest.get.mjs +8 -9
- package/dist/cli/index.mjs +173 -7
- package/dist/module.mjs +118 -63
- package/dist/utils/features.d.ts +74 -0
- package/dist/utils/local-db.d.ts +1 -1
- package/package.json +26 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
2
|
import { existsSync, statSync, readdirSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
|
-
import { drizzle } from 'drizzle-orm/node-sqlite';
|
|
5
4
|
import { resolve, dirname, join, extname, basename, relative } from 'pathe';
|
|
6
5
|
import { stdin, stdout } from 'node:process';
|
|
7
6
|
import readline from 'node:readline/promises';
|
|
@@ -11,7 +10,7 @@ import { useRuntimeConfig, defineEventHandler } from 'nuxt/server';
|
|
|
11
10
|
import { mkdir, writeFile, readFile } from 'node:fs/promises';
|
|
12
11
|
import { defu } from 'defu';
|
|
13
12
|
|
|
14
|
-
const version = "0.4.
|
|
13
|
+
const version = "0.4.7";
|
|
15
14
|
|
|
16
15
|
function resolveBindingName(service, override, defaultName) {
|
|
17
16
|
if (override && typeof override === "string") {
|
|
@@ -114,9 +113,8 @@ function checkDrizzleVersion(rootDir) {
|
|
|
114
113
|
version,
|
|
115
114
|
isRC: false,
|
|
116
115
|
error: `[qarpeo] Outdated "drizzle-orm" detected in your project (v${version}).
|
|
117
|
-
qarpeo requires Drizzle ORM v1.0.0 RC
|
|
118
|
-
|
|
119
|
-
vp add drizzle-orm@rc`
|
|
116
|
+
qarpeo requires Drizzle ORM v1.0.0 RC or newer.
|
|
117
|
+
Run: qp add drizzle`
|
|
120
118
|
};
|
|
121
119
|
}
|
|
122
120
|
return {
|
|
@@ -128,8 +126,8 @@ Please remove or upgrade your project's drizzle-orm dependency:
|
|
|
128
126
|
return {
|
|
129
127
|
installed: false,
|
|
130
128
|
isRC: false,
|
|
131
|
-
error: `[qarpeo] Drizzle ORM is enabled
|
|
132
|
-
|
|
129
|
+
error: `[qarpeo] Drizzle ORM is enabled, but "drizzle-orm" is not installed.
|
|
130
|
+
Run: qp add drizzle`
|
|
133
131
|
};
|
|
134
132
|
}
|
|
135
133
|
}
|
|
@@ -787,7 +785,8 @@ Please apply migrations first: qp db:migrate`
|
|
|
787
785
|
console.warn(`[qarpeo] Warning: Failed to import schema file ${file}: ${err?.message || err}`);
|
|
788
786
|
}
|
|
789
787
|
}
|
|
790
|
-
const
|
|
788
|
+
const { drizzle: initDrizzle } = await import('drizzle-orm/node-sqlite');
|
|
789
|
+
const db = initDrizzle(sqlitePath);
|
|
791
790
|
let customSeedPath = null;
|
|
792
791
|
const seedCandidates = target.isPrimary ? [
|
|
793
792
|
resolve(target.dir, "seed.ts"),
|
|
@@ -2886,4 +2885,4 @@ defineEventHandler((event) => {
|
|
|
2886
2885
|
);
|
|
2887
2886
|
});
|
|
2888
2887
|
|
|
2889
|
-
export { ALL_CMS_TABLE_NAMES as A, buildDevWranglerConfig as B, generateAuthSchema as C, generateCommentsSchema as D, generateStoreSchema as E, findScheduledTasks as F, formatDlxCommand as G, resolveBindingName as H, createWranglerConfig as I, generateDevWranglerConfig as J, applyD1Migrations as K, findQueueFiles as L, findDurableObjectFiles as M,
|
|
2888
|
+
export { wrangler as $, ALL_CMS_TABLE_NAMES as A, buildDevWranglerConfig as B, generateAuthSchema as C, generateCommentsSchema as D, generateStoreSchema as E, findScheduledTasks as F, formatDlxCommand as G, resolveBindingName as H, createWranglerConfig as I, generateDevWranglerConfig as J, applyD1Migrations as K, findQueueFiles as L, findDurableObjectFiles as M, isPackageInstalled as N, cmsBookmarks as O, cmsCategories as P, cmsCollections as Q, cmsEntries as R, cmsRevisions as S, cmsSubscribers as T, cmsTags as U, getActiveCmsTableNames as V, getActiveCommentsTableNames as W, getActiveStoreTableNames as X, hasDatabaseSchema as Y, localDb as Z, authSchema as _, resolveBinaryPath as a, getActiveAuthTableNames as b, ALL_STORE_TABLE_NAMES as c, ALL_COMMENTS_TABLE_NAMES as d, ensurePackage as e, discoverDatabases as f, getLocalDatabaseContext as g, findLocalD1Database as h, spawnBinSync as i, getJiti as j, resolveProjectName as k, checkDrizzleVersion as l, findSchemaFiles as m, findAgentFiles as n, findToolFiles as o, findBotFiles as p, findMcpFiles as q, resolveDatabaseTarget as r, scanSchemaExports as s, findJobFiles as t, findWorkflowFiles as u, findEmailHandlerFiles as v, buildQarpeoManifest as w, version as x, resolveTableName as y, resolveIndexName as z };
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,23 +1,186 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { defineCommand, runMain } from 'citty';
|
|
3
3
|
import { r as resolveDatabaseTarget, a as resolveBinaryPath, e as ensurePackage, g as getLocalDatabaseContext, b as getActiveAuthTableNames, A as ALL_CMS_TABLE_NAMES, c as ALL_STORE_TABLE_NAMES, d as ALL_COMMENTS_TABLE_NAMES, s as scanSchemaExports, f as discoverDatabases, h as findLocalD1Database, i as spawnBinSync, j as getJiti, k as resolveProjectName, l as checkDrizzleVersion, m as findSchemaFiles, n as findAgentFiles, o as findToolFiles, p as findBotFiles, q as findMcpFiles, t as findJobFiles, u as findWorkflowFiles, v as findEmailHandlerFiles, w as buildQarpeoManifest, x as version } from '../chunks/manifest.get.mjs';
|
|
4
|
+
import { resolve, join, dirname, relative, basename, extname } from 'pathe';
|
|
4
5
|
import { spawnSync, spawn } from 'node:child_process';
|
|
5
6
|
import { existsSync, mkdirSync, writeFileSync, readFileSync, rmSync, readdirSync, statSync } from 'node:fs';
|
|
6
7
|
import { loadNuxtConfig } from '@nuxt/kit';
|
|
7
|
-
import { resolve, join, dirname, relative, basename, extname } from 'pathe';
|
|
8
|
-
import { reset, seed } from 'drizzle-seed';
|
|
9
8
|
import { stdin, stdout } from 'node:process';
|
|
10
9
|
import readline from 'node:readline/promises';
|
|
11
10
|
import { hostname, homedir } from 'node:os';
|
|
12
11
|
import { randomBytes } from 'node:crypto';
|
|
13
12
|
import 'node:module';
|
|
14
|
-
import 'drizzle-orm/node-sqlite';
|
|
15
13
|
import 'node:url';
|
|
16
14
|
import 'drizzle-orm/sqlite-core';
|
|
17
15
|
import 'nuxt/server';
|
|
18
16
|
import 'node:fs/promises';
|
|
19
17
|
import 'defu';
|
|
20
18
|
|
|
19
|
+
const FEATURE_DEPS = {
|
|
20
|
+
cms: {
|
|
21
|
+
description: "Edge CMS markdown/syntax highlighting (@comark/vue, comark, shiki)",
|
|
22
|
+
dependencies: {
|
|
23
|
+
"@comark/vue": "0.9.1",
|
|
24
|
+
comark: "0.9.1",
|
|
25
|
+
shiki: "4.6.0"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
drizzle: {
|
|
29
|
+
description: "Drizzle ORM, Drizzle Kit, and Drizzle Seed",
|
|
30
|
+
dependencies: {
|
|
31
|
+
"drizzle-orm": "1.0.0-rc.5"
|
|
32
|
+
},
|
|
33
|
+
devDependencies: {
|
|
34
|
+
"drizzle-kit": "1.0.0-rc.5",
|
|
35
|
+
"drizzle-seed": "1.0.0-rc.5"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
auth: {
|
|
39
|
+
description: "Better Auth + Drizzle adapter",
|
|
40
|
+
dependencies: {
|
|
41
|
+
"better-auth": "1.7.20",
|
|
42
|
+
"@better-auth/drizzle-adapter": "1.7.20"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
webauthn: {
|
|
46
|
+
description: "Passkey / WebAuthn server support",
|
|
47
|
+
dependencies: {
|
|
48
|
+
"@simplewebauthn/server": "14.0.3"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
browser: {
|
|
52
|
+
description: "Cloudflare Browser Rendering (@cloudflare/puppeteer)",
|
|
53
|
+
dependencies: {
|
|
54
|
+
"@cloudflare/puppeteer": "1.4.0"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
fate: {
|
|
58
|
+
description: "Normalized data-fetching client (@nkzw/fate, vue-fate)",
|
|
59
|
+
dependencies: {
|
|
60
|
+
"@nkzw/fate": "1.0.0",
|
|
61
|
+
"vue-fate": "1.0.0"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
postgres: {
|
|
65
|
+
description: "PostgreSQL / Hyperdrive driver",
|
|
66
|
+
dependencies: {
|
|
67
|
+
postgres: "4.1.1"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function getFeatureNames() {
|
|
72
|
+
return Object.keys(FEATURE_DEPS);
|
|
73
|
+
}
|
|
74
|
+
function toVersionedSpecs(pkgMap) {
|
|
75
|
+
if (!pkgMap) return [];
|
|
76
|
+
return Object.entries(pkgMap).map(([name, version]) => `${name}@${version}`);
|
|
77
|
+
}
|
|
78
|
+
function resolveFeatureInstall(target) {
|
|
79
|
+
const key = target.trim().toLowerCase();
|
|
80
|
+
if (key in FEATURE_DEPS) {
|
|
81
|
+
const def = FEATURE_DEPS[key];
|
|
82
|
+
return {
|
|
83
|
+
label: key,
|
|
84
|
+
dependencies: toVersionedSpecs(def.dependencies),
|
|
85
|
+
devDependencies: toVersionedSpecs(def.devDependencies)
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
for (const def of Object.values(FEATURE_DEPS)) {
|
|
89
|
+
if (key in def.dependencies) {
|
|
90
|
+
return {
|
|
91
|
+
label: target,
|
|
92
|
+
dependencies: [`${key}@${def.dependencies[key]}`],
|
|
93
|
+
devDependencies: []
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (def.devDependencies && key in def.devDependencies) {
|
|
97
|
+
return {
|
|
98
|
+
label: target,
|
|
99
|
+
dependencies: [],
|
|
100
|
+
devDependencies: [`${key}@${def.devDependencies[key]}`]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function printAvailableFeatures() {
|
|
108
|
+
console.log("\n\u{1F4E6} Available qarpeo features:\n");
|
|
109
|
+
for (const name of getFeatureNames()) {
|
|
110
|
+
const def = FEATURE_DEPS[name];
|
|
111
|
+
const pkgs = [
|
|
112
|
+
...Object.entries(def.dependencies),
|
|
113
|
+
...Object.entries("devDependencies" in def ? def.devDependencies : {})
|
|
114
|
+
].map(([pkg, ver]) => `${pkg}@${ver}`).join(", ");
|
|
115
|
+
console.log(` ${name.padEnd(10)} ${def.description}`);
|
|
116
|
+
console.log(` ${"".padEnd(10)} (${pkgs})
|
|
117
|
+
`);
|
|
118
|
+
}
|
|
119
|
+
console.log("Usage: qp add <feature> [feature...]\n");
|
|
120
|
+
}
|
|
121
|
+
const addCommand = defineCommand({
|
|
122
|
+
meta: {
|
|
123
|
+
name: "add",
|
|
124
|
+
description: "Install pinned dependencies for a qarpeo feature (e.g. cms, drizzle, auth)"
|
|
125
|
+
},
|
|
126
|
+
args: {
|
|
127
|
+
feature: {
|
|
128
|
+
type: "positional",
|
|
129
|
+
description: "Feature or package name to install (omit or pass --list to see all)",
|
|
130
|
+
required: false
|
|
131
|
+
},
|
|
132
|
+
list: {
|
|
133
|
+
type: "boolean",
|
|
134
|
+
alias: "l",
|
|
135
|
+
description: "List available features and their pinned versions",
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
cwd: {
|
|
139
|
+
type: "string",
|
|
140
|
+
description: "Working directory",
|
|
141
|
+
default: "."
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
async run({ args }) {
|
|
145
|
+
if (args.list || !args.feature) {
|
|
146
|
+
printAvailableFeatures();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const targets = args._.length > 0 ? args._ : [args.feature];
|
|
150
|
+
const deps = [];
|
|
151
|
+
const devDeps = [];
|
|
152
|
+
const unknown = [];
|
|
153
|
+
for (const target of targets) {
|
|
154
|
+
const resolved = resolveFeatureInstall(target);
|
|
155
|
+
if (!resolved) {
|
|
156
|
+
unknown.push(target);
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
deps.push(...resolved.dependencies);
|
|
160
|
+
devDeps.push(...resolved.devDependencies);
|
|
161
|
+
}
|
|
162
|
+
if (unknown.length > 0) {
|
|
163
|
+
console.error(`
|
|
164
|
+
\u274C [qarpeo] Unknown feature(s): ${unknown.join(", ")}`);
|
|
165
|
+
printAvailableFeatures();
|
|
166
|
+
process.exit(1);
|
|
167
|
+
}
|
|
168
|
+
const cwd = resolve(process.cwd(), args.cwd);
|
|
169
|
+
const { addDependency } = await import('nypm');
|
|
170
|
+
if (deps.length > 0) {
|
|
171
|
+
console.log(`
|
|
172
|
+
\u{1F4E6} [qarpeo] Installing dependencies: ${deps.join(" ")}`);
|
|
173
|
+
await addDependency(deps, { cwd, dev: false, silent: false });
|
|
174
|
+
}
|
|
175
|
+
if (devDeps.length > 0) {
|
|
176
|
+
console.log(`
|
|
177
|
+
\u{1F4E6} [qarpeo] Installing devDependencies: ${devDeps.join(" ")}`);
|
|
178
|
+
await addDependency(devDeps, { cwd, dev: true, silent: false });
|
|
179
|
+
}
|
|
180
|
+
console.log("\n\u2705 [qarpeo] Done! Pinned versions added to package.json.\n");
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
|
|
21
184
|
const generate = defineCommand({
|
|
22
185
|
meta: {
|
|
23
186
|
name: "generate",
|
|
@@ -185,6 +348,7 @@ const cleanCommand = defineCommand({
|
|
|
185
348
|
}
|
|
186
349
|
const { db, schema, sqlitePath } = ctx;
|
|
187
350
|
try {
|
|
351
|
+
const { reset } = await import('drizzle-seed');
|
|
188
352
|
console.log("\u23F3 [qarpeo] Resetting tables with drizzle-seed...");
|
|
189
353
|
await reset(db, schema);
|
|
190
354
|
console.log(
|
|
@@ -1325,7 +1489,7 @@ const migrate = defineCommand({
|
|
|
1325
1489
|
} else if (existsSync(resolve(cwd, ".nuxt/wrangler.json"))) {
|
|
1326
1490
|
wranglerConfigPath = resolve(cwd, ".nuxt/wrangler.json");
|
|
1327
1491
|
} else {
|
|
1328
|
-
const { generateDevWranglerConfig } = await import('../chunks/manifest.get.mjs').then(function (n) { return n
|
|
1492
|
+
const { generateDevWranglerConfig } = await import('../chunks/manifest.get.mjs').then(function (n) { return n.$; });
|
|
1329
1493
|
const buildDir = resolve(cwd, ".nuxt");
|
|
1330
1494
|
wranglerConfigPath = await generateDevWranglerConfig(
|
|
1331
1495
|
{
|
|
@@ -1597,8 +1761,8 @@ const migrate = defineCommand({
|
|
|
1597
1761
|
if (args.prune && targets.some((t) => t.isPrimary)) {
|
|
1598
1762
|
const primaryTarget = targets.find((t) => t.isPrimary);
|
|
1599
1763
|
const primaryBinding = primaryTarget.binding;
|
|
1600
|
-
const { getActiveAuthTableNames, ALL_AUTH_TABLE_NAMES } = await import('../chunks/manifest.get.mjs').then(function (n) { return n.
|
|
1601
|
-
const { findLocalD1Database } = await import('../chunks/manifest.get.mjs').then(function (n) { return n.
|
|
1764
|
+
const { getActiveAuthTableNames, ALL_AUTH_TABLE_NAMES } = await import('../chunks/manifest.get.mjs').then(function (n) { return n._; });
|
|
1765
|
+
const { findLocalD1Database } = await import('../chunks/manifest.get.mjs').then(function (n) { return n.Z; });
|
|
1602
1766
|
const authConfig = nuxtConfig.qarpeo?.auth || nuxtConfig.auth;
|
|
1603
1767
|
const activeTables = getActiveAuthTableNames(authConfig);
|
|
1604
1768
|
const unusedTables = ALL_AUTH_TABLE_NAMES.filter(
|
|
@@ -1910,6 +2074,7 @@ const seedCommand = defineCommand({
|
|
|
1910
2074
|
process.exit(1);
|
|
1911
2075
|
}
|
|
1912
2076
|
const { db, schema, customSeedPath, sqlitePath } = ctx;
|
|
2077
|
+
const { reset, seed } = await import('drizzle-seed');
|
|
1913
2078
|
const shouldClean = Boolean(args.clean || args.reset);
|
|
1914
2079
|
if (shouldClean) {
|
|
1915
2080
|
console.log("\u23F3 [qarpeo] Resetting existing records...");
|
|
@@ -2469,7 +2634,7 @@ const deploy = defineCommand({
|
|
|
2469
2634
|
if (!wranglerConfigPath) {
|
|
2470
2635
|
try {
|
|
2471
2636
|
const { loadNuxtConfig } = await import('@nuxt/kit');
|
|
2472
|
-
const { generateDevWranglerConfig } = await import('../chunks/manifest.get.mjs').then(function (n) { return n
|
|
2637
|
+
const { generateDevWranglerConfig } = await import('../chunks/manifest.get.mjs').then(function (n) { return n.$; });
|
|
2473
2638
|
const nuxtConfig = await loadNuxtConfig({ cwd });
|
|
2474
2639
|
const qarpeoOpts = nuxtConfig.qarpeo || {};
|
|
2475
2640
|
const buildDir = resolve(cwd, ".nuxt");
|
|
@@ -5357,6 +5522,7 @@ const main = defineCommand({
|
|
|
5357
5522
|
description: "Cloudflare-native powerhouse module for Nuxt"
|
|
5358
5523
|
},
|
|
5359
5524
|
subCommands: {
|
|
5525
|
+
add: addCommand,
|
|
5360
5526
|
cloud,
|
|
5361
5527
|
db,
|
|
5362
5528
|
kv,
|
package/dist/module.mjs
CHANGED
|
@@ -2,15 +2,14 @@ import { existsSync, rmSync, readdirSync, readFileSync, appendFileSync } from 'n
|
|
|
2
2
|
import { dirname, resolve, normalize, relative, join } from 'pathe';
|
|
3
3
|
import { addTemplate, hasNuxtModule, addNitroPlugin, addServerImports, addImports, addTypeTemplate, updateTemplates, addServerImportsDir, addServerHandler, extendPages, addPlugin, addComponent, addImportsDir, addRouteMiddleware, installModule, defineNuxtModule, useLogger, createResolver } from '@nuxt/kit';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
|
-
import { y as resolveTableName, z as resolveIndexName, B as buildDevWranglerConfig, l as checkDrizzleVersion, C as generateAuthSchema, D as generateCommentsSchema, E as generateStoreSchema, s as scanSchemaExports, f as discoverDatabases, F as findScheduledTasks, G as formatDlxCommand, H as resolveBindingName, I as createWranglerConfig, J as generateDevWranglerConfig, K as applyD1Migrations, x as version, L as findQueueFiles, t as findJobFiles, v as findEmailHandlerFiles, M as findDurableObjectFiles, u as findWorkflowFiles, e as ensurePackage, n as findAgentFiles, o as findToolFiles, p as findBotFiles, q as findMcpFiles, m as findSchemaFiles, w as buildQarpeoManifest } from './chunks/manifest.get.mjs';
|
|
6
|
-
export { A as ALL_CMS_TABLE_NAMES, d as ALL_COMMENTS_TABLE_NAMES, c as ALL_STORE_TABLE_NAMES,
|
|
5
|
+
import { y as resolveTableName, z as resolveIndexName, B as buildDevWranglerConfig, l as checkDrizzleVersion, C as generateAuthSchema, D as generateCommentsSchema, E as generateStoreSchema, s as scanSchemaExports, f as discoverDatabases, F as findScheduledTasks, G as formatDlxCommand, H as resolveBindingName, I as createWranglerConfig, J as generateDevWranglerConfig, K as applyD1Migrations, x as version, L as findQueueFiles, t as findJobFiles, v as findEmailHandlerFiles, M as findDurableObjectFiles, u as findWorkflowFiles, e as ensurePackage, N as isPackageInstalled, n as findAgentFiles, o as findToolFiles, p as findBotFiles, q as findMcpFiles, m as findSchemaFiles, w as buildQarpeoManifest } from './chunks/manifest.get.mjs';
|
|
6
|
+
export { A as ALL_CMS_TABLE_NAMES, d as ALL_COMMENTS_TABLE_NAMES, c as ALL_STORE_TABLE_NAMES, O as cmsBookmarks, P as cmsCategories, Q as cmsCollections, R as cmsEntries, S as cmsRevisions, T as cmsSubscribers, U as cmsTags, b as getActiveAuthTableNames, V as getActiveCmsTableNames, W as getActiveCommentsTableNames, X as getActiveStoreTableNames, Y as hasDatabaseSchema, r as resolveDatabaseTarget, k as resolveProjectName } from './chunks/manifest.get.mjs';
|
|
7
7
|
import { createHash } from 'node:crypto';
|
|
8
8
|
import { readdir, readFile } from 'node:fs/promises';
|
|
9
9
|
import { createRequire } from 'node:module';
|
|
10
10
|
import { downloadTemplate } from 'giget';
|
|
11
11
|
import { fileURLToPath } from 'node:url';
|
|
12
12
|
import 'node:child_process';
|
|
13
|
-
import 'drizzle-orm/node-sqlite';
|
|
14
13
|
import 'node:process';
|
|
15
14
|
import 'node:readline/promises';
|
|
16
15
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1016,50 +1015,57 @@ async function setupAliases(options, nuxt, resolver) {
|
|
|
1016
1015
|
});
|
|
1017
1016
|
nuxt.options.alias["#qarpeo/tools-registry"] = emptyToolsTemplate.dst;
|
|
1018
1017
|
try {
|
|
1019
|
-
let resolveShikiDep = function(name) {
|
|
1020
|
-
try {
|
|
1021
|
-
const req = createRequire(resolve(shikiDir, "package.json"));
|
|
1022
|
-
const entry = req.resolve(name);
|
|
1023
|
-
let cur = dirname(entry);
|
|
1024
|
-
while (cur && cur !== dirname(cur)) {
|
|
1025
|
-
if (existsSync(resolve(cur, "package.json"))) return cur;
|
|
1026
|
-
cur = dirname(cur);
|
|
1027
|
-
}
|
|
1028
|
-
return "";
|
|
1029
|
-
} catch {
|
|
1030
|
-
return "";
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
1018
|
const drizzleDir = resolvePkgDir("drizzle-orm");
|
|
1034
1019
|
nuxt.options.alias["drizzle-orm"] = drizzleDir;
|
|
1035
1020
|
nuxt.options.alias["drizzle-orm/"] = `${drizzleDir}/`;
|
|
1021
|
+
} catch {
|
|
1022
|
+
}
|
|
1023
|
+
try {
|
|
1036
1024
|
const drizzleKitDir = resolvePkgDir("drizzle-kit");
|
|
1037
1025
|
nuxt.options.alias["drizzle-kit"] = drizzleKitDir;
|
|
1038
1026
|
nuxt.options.alias["drizzle-kit/"] = `${drizzleKitDir}/`;
|
|
1027
|
+
} catch {
|
|
1028
|
+
}
|
|
1029
|
+
try {
|
|
1039
1030
|
const drizzleSeedDir = resolvePkgDir("drizzle-seed");
|
|
1040
1031
|
nuxt.options.alias["drizzle-seed"] = drizzleSeedDir;
|
|
1041
1032
|
nuxt.options.alias["drizzle-seed/"] = `${drizzleSeedDir}/`;
|
|
1033
|
+
} catch {
|
|
1034
|
+
}
|
|
1035
|
+
try {
|
|
1042
1036
|
const betterAuthDir = resolvePkgDir("better-auth");
|
|
1043
1037
|
nuxt.options.alias["better-auth/vue"] = resolve(betterAuthDir, "dist/client/vue/index.mjs");
|
|
1044
1038
|
nuxt.options.alias["better-auth/client"] = resolve(betterAuthDir, "dist/client/index.mjs");
|
|
1045
1039
|
nuxt.options.alias["better-auth/crypto"] = resolve(betterAuthDir, "dist/crypto/index.mjs");
|
|
1046
1040
|
nuxt.options.alias["better-auth"] = resolve(betterAuthDir, "dist/index.mjs");
|
|
1041
|
+
} catch {
|
|
1042
|
+
}
|
|
1043
|
+
try {
|
|
1047
1044
|
const betterAuthAdapterDir = resolvePkgDir("@better-auth/drizzle-adapter");
|
|
1048
1045
|
nuxt.options.alias["@better-auth/drizzle-adapter"] = resolve(
|
|
1049
1046
|
betterAuthAdapterDir,
|
|
1050
1047
|
"dist/index.mjs"
|
|
1051
1048
|
);
|
|
1049
|
+
} catch {
|
|
1050
|
+
}
|
|
1051
|
+
try {
|
|
1052
1052
|
const comarkNuxtDir = resolvePkgDir("@comark/nuxt");
|
|
1053
1053
|
nuxt.options.alias["@comark/nuxt/utils"] = resolve(comarkNuxtDir, "dist/utils/index.js");
|
|
1054
1054
|
nuxt.options.alias["@comark/nuxt/render"] = resolve(comarkNuxtDir, "dist/render.js");
|
|
1055
1055
|
nuxt.options.alias["@comark/nuxt/parse"] = resolve(comarkNuxtDir, "dist/parse.js");
|
|
1056
1056
|
nuxt.options.alias["@comark/nuxt"] = resolve(comarkNuxtDir, "dist/module.js");
|
|
1057
|
+
} catch {
|
|
1058
|
+
}
|
|
1059
|
+
try {
|
|
1057
1060
|
const comarkVueDir = resolvePkgDir("@comark/vue");
|
|
1058
1061
|
nuxt.options.alias["@comark/vue/vite"] = resolve(comarkVueDir, "dist/vite.js");
|
|
1059
1062
|
nuxt.options.alias["@comark/vue/utils"] = resolve(comarkVueDir, "dist/utils/index.js");
|
|
1060
1063
|
nuxt.options.alias["@comark/vue/render"] = resolve(comarkVueDir, "dist/render.js");
|
|
1061
1064
|
nuxt.options.alias["@comark/vue/parse"] = resolve(comarkVueDir, "dist/parse.js");
|
|
1062
1065
|
nuxt.options.alias["@comark/vue"] = resolve(comarkVueDir, "dist/index.js");
|
|
1066
|
+
} catch {
|
|
1067
|
+
}
|
|
1068
|
+
try {
|
|
1063
1069
|
const comarkDir = resolvePkgDir("comark");
|
|
1064
1070
|
nuxt.options.alias["comark/utils"] = resolve(comarkDir, "dist/utils/index.js");
|
|
1065
1071
|
nuxt.options.alias["comark/render/html"] = resolve(comarkDir, "dist/render/html.js");
|
|
@@ -1070,6 +1076,23 @@ async function setupAliases(options, nuxt, resolver) {
|
|
|
1070
1076
|
nuxt.options.alias["comark/internal"] = resolve(comarkDir, "dist/internal");
|
|
1071
1077
|
nuxt.options.alias["comark/internal/"] = `${resolve(comarkDir, "dist/internal")}/`;
|
|
1072
1078
|
nuxt.options.alias["comark"] = resolve(comarkDir, "dist/index.js");
|
|
1079
|
+
} catch {
|
|
1080
|
+
}
|
|
1081
|
+
try {
|
|
1082
|
+
let resolveShikiDep = function(name) {
|
|
1083
|
+
try {
|
|
1084
|
+
const req = createRequire(resolve(shikiDir, "package.json"));
|
|
1085
|
+
const entry = req.resolve(name);
|
|
1086
|
+
let cur = dirname(entry);
|
|
1087
|
+
while (cur && cur !== dirname(cur)) {
|
|
1088
|
+
if (existsSync(resolve(cur, "package.json"))) return cur;
|
|
1089
|
+
cur = dirname(cur);
|
|
1090
|
+
}
|
|
1091
|
+
return "";
|
|
1092
|
+
} catch {
|
|
1093
|
+
return "";
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1073
1096
|
const shikiDir = resolvePkgDir("shiki");
|
|
1074
1097
|
nuxt.options.alias["shiki/engine/javascript"] = resolve(
|
|
1075
1098
|
shikiDir,
|
|
@@ -1134,6 +1157,9 @@ async function setupAliases(options, nuxt, resolver) {
|
|
|
1134
1157
|
} catch {
|
|
1135
1158
|
}
|
|
1136
1159
|
}
|
|
1160
|
+
} catch {
|
|
1161
|
+
}
|
|
1162
|
+
if (options.cms) {
|
|
1137
1163
|
nuxt.options.build.transpile.push(
|
|
1138
1164
|
"shiki",
|
|
1139
1165
|
"comark",
|
|
@@ -1143,9 +1169,7 @@ async function setupAliases(options, nuxt, resolver) {
|
|
|
1143
1169
|
"@shikijs/engine-javascript",
|
|
1144
1170
|
"@shikijs/langs",
|
|
1145
1171
|
"@shikijs/themes",
|
|
1146
|
-
"@shikijs/vscode-textmate"
|
|
1147
|
-
"better-auth",
|
|
1148
|
-
"@better-auth/drizzle-adapter"
|
|
1172
|
+
"@shikijs/vscode-textmate"
|
|
1149
1173
|
);
|
|
1150
1174
|
nuxt.options.vite = nuxt.options.vite || {};
|
|
1151
1175
|
nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
|
|
@@ -1164,7 +1188,9 @@ async function setupAliases(options, nuxt, resolver) {
|
|
|
1164
1188
|
nuxt.options.vite.optimizeDeps.include.push(dep);
|
|
1165
1189
|
}
|
|
1166
1190
|
}
|
|
1167
|
-
}
|
|
1191
|
+
}
|
|
1192
|
+
if (options.auth) {
|
|
1193
|
+
nuxt.options.build.transpile.push("better-auth", "@better-auth/drizzle-adapter");
|
|
1168
1194
|
}
|
|
1169
1195
|
addTemplate({
|
|
1170
1196
|
filename: "qarpeo-shiki.css",
|
|
@@ -1799,28 +1825,46 @@ async function setupNitro(options, nuxt, resolver, logger) {
|
|
|
1799
1825
|
nuxt.hook("nitro:config", async (nitroConfig) => {
|
|
1800
1826
|
try {
|
|
1801
1827
|
nitroConfig.alias = nitroConfig.alias || {};
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1828
|
+
try {
|
|
1829
|
+
const drizzleDir = resolvePkgDir("drizzle-orm");
|
|
1830
|
+
nitroConfig.alias["drizzle-orm"] = drizzleDir;
|
|
1831
|
+
nitroConfig.alias["drizzle-orm/"] = `${drizzleDir}/`;
|
|
1832
|
+
} catch {
|
|
1833
|
+
}
|
|
1834
|
+
try {
|
|
1835
|
+
const drizzleKitDir = resolvePkgDir("drizzle-kit");
|
|
1836
|
+
nitroConfig.alias["drizzle-kit"] = drizzleKitDir;
|
|
1837
|
+
nitroConfig.alias["drizzle-kit/"] = `${drizzleKitDir}/`;
|
|
1838
|
+
} catch {
|
|
1839
|
+
}
|
|
1840
|
+
try {
|
|
1841
|
+
const drizzleSeedDir = resolvePkgDir("drizzle-seed");
|
|
1842
|
+
nitroConfig.alias["drizzle-seed"] = drizzleSeedDir;
|
|
1843
|
+
nitroConfig.alias["drizzle-seed/"] = `${drizzleSeedDir}/`;
|
|
1844
|
+
} catch {
|
|
1845
|
+
}
|
|
1846
|
+
try {
|
|
1847
|
+
const wranglerDir = resolvePkgDir("wrangler");
|
|
1848
|
+
nitroConfig.alias["wrangler"] = wranglerDir;
|
|
1849
|
+
nitroConfig.alias["wrangler/"] = `${wranglerDir}/`;
|
|
1850
|
+
} catch {
|
|
1851
|
+
}
|
|
1852
|
+
try {
|
|
1853
|
+
const betterAuthDir = resolvePkgDir("better-auth");
|
|
1854
|
+
nitroConfig.alias["better-auth/vue"] = resolve(betterAuthDir, "dist/client/vue/index.mjs");
|
|
1855
|
+
nitroConfig.alias["better-auth/client"] = resolve(betterAuthDir, "dist/client/index.mjs");
|
|
1856
|
+
nitroConfig.alias["better-auth/crypto"] = resolve(betterAuthDir, "dist/crypto/index.mjs");
|
|
1857
|
+
nitroConfig.alias["better-auth"] = resolve(betterAuthDir, "dist/index.mjs");
|
|
1858
|
+
} catch {
|
|
1859
|
+
}
|
|
1860
|
+
try {
|
|
1861
|
+
const betterAuthAdapterDir = resolvePkgDir("@better-auth/drizzle-adapter");
|
|
1862
|
+
nitroConfig.alias["@better-auth/drizzle-adapter"] = resolve(
|
|
1863
|
+
betterAuthAdapterDir,
|
|
1864
|
+
"dist/index.mjs"
|
|
1865
|
+
);
|
|
1866
|
+
} catch {
|
|
1867
|
+
}
|
|
1824
1868
|
if (options.cms) {
|
|
1825
1869
|
try {
|
|
1826
1870
|
const comarkNuxtDir = resolvePkgDir("@comark/nuxt");
|
|
@@ -3920,6 +3964,23 @@ async function setupFate(options, nuxt, resolver, logger) {
|
|
|
3920
3964
|
|
|
3921
3965
|
async function setupAuth(options, nuxt, resolver, logger) {
|
|
3922
3966
|
if (options.auth) {
|
|
3967
|
+
const missingAuth = [];
|
|
3968
|
+
if (!isPackageInstalled("better-auth", nuxt.options.rootDir)) {
|
|
3969
|
+
missingAuth.push("better-auth");
|
|
3970
|
+
}
|
|
3971
|
+
if (!isPackageInstalled("@better-auth/drizzle-adapter", nuxt.options.rootDir)) {
|
|
3972
|
+
missingAuth.push("@better-auth/drizzle-adapter");
|
|
3973
|
+
}
|
|
3974
|
+
if (missingAuth.length > 0) {
|
|
3975
|
+
logger.error(
|
|
3976
|
+
`[qarpeo] Auth is enabled but the following required packages are not installed:
|
|
3977
|
+
${missingAuth.map((p) => `"${p}"`).join(", ")}
|
|
3978
|
+
|
|
3979
|
+
Run: qp add auth
|
|
3980
|
+
`
|
|
3981
|
+
);
|
|
3982
|
+
return;
|
|
3983
|
+
}
|
|
3923
3984
|
const authSecret = process.env.NUXT_APP_SECRET || nuxt.options.runtimeConfig?.appSecret || (typeof options.auth === "object" ? options.auth?.appSecret || options.auth?.session?.secret : void 0);
|
|
3924
3985
|
if (!authSecret || authSecret.length < 32) {
|
|
3925
3986
|
if (!nuxt.options.dev) {
|
|
@@ -5356,25 +5417,19 @@ async function setupCMS(options, nuxt, resolver, logger) {
|
|
|
5356
5417
|
const pluginConfig = cmsOptions.plugins || {};
|
|
5357
5418
|
const shikiOption = cmsOptions.shiki !== void 0 ? cmsOptions.shiki : pluginConfig.shiki;
|
|
5358
5419
|
const shikiEnabled = shikiOption !== false;
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
await ensurePackage("shiki", {
|
|
5373
|
-
cwd: nuxt.options.rootDir,
|
|
5374
|
-
dev: false,
|
|
5375
|
-
purpose: "CMS code syntax highlighting",
|
|
5376
|
-
autoInstall: true
|
|
5377
|
-
});
|
|
5420
|
+
const missing = [];
|
|
5421
|
+
if (!isPackageInstalled("@comark/vue", nuxt.options.rootDir)) missing.push("@comark/vue");
|
|
5422
|
+
if (!isPackageInstalled("comark", nuxt.options.rootDir)) missing.push("comark");
|
|
5423
|
+
if (shikiEnabled && !isPackageInstalled("shiki", nuxt.options.rootDir)) missing.push("shiki");
|
|
5424
|
+
if (missing.length > 0) {
|
|
5425
|
+
logger.error(
|
|
5426
|
+
`[qarpeo] CMS is enabled but the following required packages are not installed:
|
|
5427
|
+
${missing.map((p) => `"${p}"`).join(", ")}
|
|
5428
|
+
|
|
5429
|
+
Run: qp add cms
|
|
5430
|
+
`
|
|
5431
|
+
);
|
|
5432
|
+
return;
|
|
5378
5433
|
}
|
|
5379
5434
|
}
|
|
5380
5435
|
if (options.cms && !hasNuxtModule("@comark/vue/nuxt") && !hasNuxtModule("@comark/vue") && !hasNuxtModule("@comark/nuxt")) {
|
|
@@ -6850,7 +6905,7 @@ ${extraSources}
|
|
|
6850
6905
|
await setupMultitenant(options, nuxt, resolver);
|
|
6851
6906
|
await setupNotifications(options, nuxt, resolver);
|
|
6852
6907
|
await setupConsole(options, nuxt, resolver, logger);
|
|
6853
|
-
await setupCMS(options, nuxt, resolver);
|
|
6908
|
+
await setupCMS(options, nuxt, resolver, logger);
|
|
6854
6909
|
await setupPayments(options, nuxt, resolver);
|
|
6855
6910
|
await setupComments(options, nuxt, resolver);
|
|
6856
6911
|
await setupStore(options, nuxt, resolver);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export interface FeatureDefinition {
|
|
2
|
+
description: string;
|
|
3
|
+
dependencies: Record<string, string>;
|
|
4
|
+
devDependencies?: Record<string, string>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Pinned package versions tested and supported by this release of qarpeo.
|
|
8
|
+
* Used by `qp add <feature>` so users get exact compatible versions in their package.json.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FEATURE_DEPS: {
|
|
11
|
+
readonly cms: {
|
|
12
|
+
readonly description: "Edge CMS markdown/syntax highlighting (@comark/vue, comark, shiki)";
|
|
13
|
+
readonly dependencies: {
|
|
14
|
+
readonly "@comark/vue": "0.9.1";
|
|
15
|
+
readonly comark: "0.9.1";
|
|
16
|
+
readonly shiki: "4.6.0";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly drizzle: {
|
|
20
|
+
readonly description: "Drizzle ORM, Drizzle Kit, and Drizzle Seed";
|
|
21
|
+
readonly dependencies: {
|
|
22
|
+
readonly "drizzle-orm": "1.0.0-rc.5";
|
|
23
|
+
};
|
|
24
|
+
readonly devDependencies: {
|
|
25
|
+
readonly "drizzle-kit": "1.0.0-rc.5";
|
|
26
|
+
readonly "drizzle-seed": "1.0.0-rc.5";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly auth: {
|
|
30
|
+
readonly description: "Better Auth + Drizzle adapter";
|
|
31
|
+
readonly dependencies: {
|
|
32
|
+
readonly "better-auth": "1.7.20";
|
|
33
|
+
readonly "@better-auth/drizzle-adapter": "1.7.20";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly webauthn: {
|
|
37
|
+
readonly description: "Passkey / WebAuthn server support";
|
|
38
|
+
readonly dependencies: {
|
|
39
|
+
readonly "@simplewebauthn/server": "14.0.3";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly browser: {
|
|
43
|
+
readonly description: "Cloudflare Browser Rendering (@cloudflare/puppeteer)";
|
|
44
|
+
readonly dependencies: {
|
|
45
|
+
readonly "@cloudflare/puppeteer": "1.4.0";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly fate: {
|
|
49
|
+
readonly description: "Normalized data-fetching client (@nkzw/fate, vue-fate)";
|
|
50
|
+
readonly dependencies: {
|
|
51
|
+
readonly "@nkzw/fate": "1.0.0";
|
|
52
|
+
readonly "vue-fate": "1.0.0";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly postgres: {
|
|
56
|
+
readonly description: "PostgreSQL / Hyperdrive driver";
|
|
57
|
+
readonly dependencies: {
|
|
58
|
+
readonly postgres: "4.1.1";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type FeatureName = keyof typeof FEATURE_DEPS;
|
|
63
|
+
export interface ResolvedInstallSpecs {
|
|
64
|
+
label: string;
|
|
65
|
+
dependencies: string[];
|
|
66
|
+
devDependencies: string[];
|
|
67
|
+
}
|
|
68
|
+
/** Returns all supported feature names for `qp add`. */
|
|
69
|
+
export declare function getFeatureNames(): FeatureName[];
|
|
70
|
+
/**
|
|
71
|
+
* Resolves a feature name (e.g. `cms`) or a known pinned package name (e.g. `drizzle-orm`)
|
|
72
|
+
* into exact `pkg@version` install specs. Returns `null` if unknown.
|
|
73
|
+
*/
|
|
74
|
+
export declare function resolveFeatureInstall(target: string): ResolvedInstallSpecs | null;
|
package/dist/utils/local-db.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qarpeo",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "Zero-config Cloudflare Edge Platform for Nuxt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics-engine",
|
|
@@ -140,15 +140,10 @@
|
|
|
140
140
|
"access": "public"
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
|
143
|
-
"@better-auth/drizzle-adapter": "1.7.20",
|
|
144
143
|
"@nuxt/devtools-kit": "^4.2.0",
|
|
145
144
|
"@nuxt/kit": "npm:@nuxt/kit-nightly@^5.0.0-2611231610-fa01a6d",
|
|
146
|
-
"better-auth": "1.7.20",
|
|
147
145
|
"citty": "^0.2.2",
|
|
148
146
|
"defu": "^6.1.7",
|
|
149
|
-
"drizzle-kit": "1.0.0-rc.5",
|
|
150
|
-
"drizzle-orm": "1.0.0-rc.5",
|
|
151
|
-
"drizzle-seed": "1.0.0-rc.5",
|
|
152
147
|
"giget": "^3.3.1",
|
|
153
148
|
"nypm": "^0.6.12",
|
|
154
149
|
"pathe": "^2.0.3",
|
|
@@ -156,13 +151,18 @@
|
|
|
156
151
|
"zod": "^4.6.7"
|
|
157
152
|
},
|
|
158
153
|
"devDependencies": {
|
|
154
|
+
"@better-auth/drizzle-adapter": "1.7.20",
|
|
159
155
|
"@cloudflare/puppeteer": "1.4.0",
|
|
160
156
|
"@comark/vue": "0.9.1",
|
|
161
157
|
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2611041456-7ae6258",
|
|
162
158
|
"@simplewebauthn/server": "14.0.3",
|
|
163
159
|
"@types/node": "^26.6.6",
|
|
164
160
|
"@typescript/typescript6": "^6.0.2",
|
|
161
|
+
"better-auth": "1.7.20",
|
|
165
162
|
"comark": "0.9.1",
|
|
163
|
+
"drizzle-kit": "1.0.0-rc.5",
|
|
164
|
+
"drizzle-orm": "1.0.0-rc.5",
|
|
165
|
+
"drizzle-seed": "1.0.0-rc.5",
|
|
166
166
|
"h3": "^2.0.8",
|
|
167
167
|
"nitro": "3.0.261103-rc",
|
|
168
168
|
"nuxt": "npm:nuxt-nightly@^5.0.0-2611231610-fa01a6d",
|
|
@@ -177,11 +177,16 @@
|
|
|
177
177
|
"yaml": "^2.9.1"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
|
+
"@better-auth/drizzle-adapter": ">=1.7.0",
|
|
180
181
|
"@cloudflare/puppeteer": ">=1.0.0",
|
|
181
182
|
"@comark/vue": ">=0.9.0",
|
|
182
183
|
"@nkzw/fate": ">=1.0.0",
|
|
183
184
|
"@simplewebauthn/server": ">=14.0.0",
|
|
185
|
+
"better-auth": ">=1.7.0",
|
|
184
186
|
"comark": ">=0.9.0",
|
|
187
|
+
"drizzle-kit": ">=1.0.0-rc.1",
|
|
188
|
+
"drizzle-orm": ">=1.0.0-rc.1",
|
|
189
|
+
"drizzle-seed": ">=1.0.0-rc.1",
|
|
185
190
|
"mysql2": ">=3.0.0",
|
|
186
191
|
"postgres": ">=3.0.0",
|
|
187
192
|
"shiki": ">=4.0.0",
|
|
@@ -189,6 +194,9 @@
|
|
|
189
194
|
"yaml": ">=2.0.0"
|
|
190
195
|
},
|
|
191
196
|
"peerDependenciesMeta": {
|
|
197
|
+
"@better-auth/drizzle-adapter": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
192
200
|
"@cloudflare/puppeteer": {
|
|
193
201
|
"optional": true
|
|
194
202
|
},
|
|
@@ -201,9 +209,21 @@
|
|
|
201
209
|
"@simplewebauthn/server": {
|
|
202
210
|
"optional": true
|
|
203
211
|
},
|
|
212
|
+
"better-auth": {
|
|
213
|
+
"optional": true
|
|
214
|
+
},
|
|
204
215
|
"comark": {
|
|
205
216
|
"optional": true
|
|
206
217
|
},
|
|
218
|
+
"drizzle-kit": {
|
|
219
|
+
"optional": true
|
|
220
|
+
},
|
|
221
|
+
"drizzle-orm": {
|
|
222
|
+
"optional": true
|
|
223
|
+
},
|
|
224
|
+
"drizzle-seed": {
|
|
225
|
+
"optional": true
|
|
226
|
+
},
|
|
207
227
|
"mysql2": {
|
|
208
228
|
"optional": true
|
|
209
229
|
},
|