Include node:sqlite and bump napcat-types version

Add 'node:sqlite' to nodeModules in packages/napcat-schema/vite.config.ts so sqlite imports (node:sqlite) are recognized as builtins/externals. Also bump napcat-types package version from 0.0.16 to 0.0.17 in packages/napcat-types/package.public.json.
This commit is contained in:
手瓜一十雪 committed 2026-03-04 11:26:54 +08:00
1 parent 9cbaafe806
commit 2a864afd0f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ const external = [
'express',
'electron'
];
const nodeModules = [...builtinModules, builtinModules.map((m) => `node:${m}`)].flat();
const nodeModules = [...builtinModules, builtinModules.map((m) => `node:${m}`), 'node:sqlite'].flat();
export default defineConfig({
resolve: {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "napcat-types",
"version": "0.0.16",
"version": "0.0.17",
"private": false,
"type": "module",
"types": "./napcat-types/index.d.ts",