@rainynest/ext 0.1.0 → 0.1.1
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/lib/bundle.js +2 -2
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require('node:fs');
|
|
|
5
5
|
const path = require('node:path');
|
|
6
6
|
|
|
7
7
|
// 宿主提供的运行时模块,禁止打进包里
|
|
8
|
-
const EXTERNALS = ['react', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'react-dom', 'next', 'next/*', '@prisma/client', '@rainynest/plugin-types'];
|
|
8
|
+
const EXTERNALS = ['react', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'react-dom', 'next', 'next/*', '@prisma/client', '@rainynest/plugin-types', 'better-sqlite3'];
|
|
9
9
|
|
|
10
10
|
const BASE = {
|
|
11
11
|
format: 'cjs',
|
|
@@ -21,7 +21,7 @@ const BASE = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const STATIC_FILES = [
|
|
24
|
-
'plugin.json', 'theme.json', 'theme.css', 'preview.png', 'preview.jpg',
|
|
24
|
+
'plugin.json', 'config.json', 'theme.json', 'theme.css', 'preview.png', 'preview.jpg',
|
|
25
25
|
'README.md', 'LICENSE',
|
|
26
26
|
];
|
|
27
27
|
|