Skip to content

Commit cec011b

Browse files
committed
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.
1 parent 9cbaafe commit cec011b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/napcat-schema/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const external = [
99
'express',
1010
'electron'
1111
];
12-
const nodeModules = [...builtinModules, builtinModules.map((m) => `node:${m}`)].flat();
12+
const nodeModules = [...builtinModules, builtinModules.map((m) => `node:${m}`), 'node:sqlite'].flat();
1313

1414
export default defineConfig({
1515
resolve: {

packages/napcat-types/package.public.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "napcat-types",
3-
"version": "0.0.16",
3+
"version": "0.0.17",
44
"private": false,
55
"type": "module",
66
"types": "./napcat-types/index.d.ts",

0 commit comments

Comments
 (0)