Update napcat-types usage and config in plugin

Changed napcat-plugin-builtin to use workspace reference for napcat-types instead of a fixed version. Updated tsconfig to use bundler module resolution and improved Vite config plugin resolution. Enhanced napcat-types package.json exports for better type support.
This commit is contained in:
手瓜一十雪 committed 2026-01-27 20:22:40 +08:00
1 parent 25714244dc
commit 15a983d392
7 files changed
+55 -17

No files matched your search

@@ -68,14 +68,7 @@ export default defineConfig({
entry: 'index.ts',
formats: ['es'],
fileName: () => 'index.mjs',
},
rollupOptions: {
external: (id) => {
if (nodeModules.includes(id)) return true;
if (id.startsWith('napcat-')) return true;
return false;
},
},
}
},
plugins: [nodeResolve(), copyToShellPlugin()],
});