This commit is contained in:
熊潇 2025-06-21 17:07:49 +08:00
parent ebe7c9afce
commit d5c2964e0e
3 changed files with 10 additions and 3 deletions

View File

@ -7,6 +7,7 @@ import path from 'path';
const rp = (resolvePath) => { const rp = (resolvePath) => {
return path.resolve(process.cwd(), resolvePath); return path.resolve(process.cwd(), resolvePath);
}; };
const external = ['jsdom']
// bun run src/index.ts -- // bun run src/index.ts --
await Bun.build({ await Bun.build({
target: 'node', target: 'node',
@ -16,6 +17,7 @@ await Bun.build({
naming: { naming: {
entry: 'app.mjs', entry: 'app.mjs',
}, },
external: external,
define: { define: {
VERSION: JSON.stringify(pkg.version), VERSION: JSON.stringify(pkg.version),

View File

@ -1,6 +1,6 @@
{ {
"name": "@kevisual/xhs-core", "name": "@kevisual/xhs-core",
"version": "0.0.3", "version": "0.0.4",
"description": "", "description": "",
"main": "dist/app.mjs", "main": "dist/app.mjs",
"types": "dist/app.d.ts", "types": "dist/app.d.ts",

9
pnpm-lock.yaml generated
View File

@ -146,8 +146,8 @@ importers:
specifier: ^1.0.14 specifier: ^1.0.14
version: 1.0.14(dotenv@16.5.0) version: 1.0.14(dotenv@16.5.0)
'@kevisual/xhs-core': '@kevisual/xhs-core':
specifier: workspace:* specifier: 0.0.3
version: link:../xhs-core version: 0.0.3
'@types/node': '@types/node':
specifier: ^22.15.3 specifier: ^22.15.3
version: 22.15.3 version: 22.15.3
@ -265,6 +265,9 @@ packages:
peerDependencies: peerDependencies:
dotenv: ^16.4.7 dotenv: ^16.4.7
'@kevisual/xhs-core@0.0.3':
resolution: {integrity: sha512-i1prOqtRSqsj4Nkcgw9GNNJXXLMeNnA2oAYX6Xrx/uskwTLoJfSwN41Z9k1XFyZfJ4oOu4ByFKeQLxVi4UkrqA==}
'@ljharb/resumer@0.1.3': '@ljharb/resumer@0.1.3':
resolution: {integrity: sha512-d+tsDgfkj9X5QTriqM4lKesCkMMJC3IrbPKHvayP00ELx2axdXvDfWkqjxrLXIzGcQzmj7VAUT1wopqARTvafw==} resolution: {integrity: sha512-d+tsDgfkj9X5QTriqM4lKesCkMMJC3IrbPKHvayP00ELx2axdXvDfWkqjxrLXIzGcQzmj7VAUT1wopqARTvafw==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
@ -2275,6 +2278,8 @@ snapshots:
'@kevisual/load': 0.0.6 '@kevisual/load': 0.0.6
dotenv: 16.5.0 dotenv: 16.5.0
'@kevisual/xhs-core@0.0.3': {}
'@ljharb/resumer@0.1.3': '@ljharb/resumer@0.1.3':
dependencies: dependencies:
'@ljharb/through': 2.3.14 '@ljharb/through': 2.3.14