diff --git a/packages/xhs-core/bun.config.mjs b/packages/xhs-core/bun.config.mjs index 6afa989..2f2b1aa 100644 --- a/packages/xhs-core/bun.config.mjs +++ b/packages/xhs-core/bun.config.mjs @@ -7,6 +7,7 @@ import path from 'path'; const rp = (resolvePath) => { return path.resolve(process.cwd(), resolvePath); }; +const external = ['jsdom'] // bun run src/index.ts -- await Bun.build({ target: 'node', @@ -16,6 +17,7 @@ await Bun.build({ naming: { entry: 'app.mjs', }, + external: external, define: { VERSION: JSON.stringify(pkg.version), diff --git a/packages/xhs-core/package.json b/packages/xhs-core/package.json index 1d8bb13..dbc6899 100644 --- a/packages/xhs-core/package.json +++ b/packages/xhs-core/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/xhs-core", - "version": "0.0.3", + "version": "0.0.4", "description": "", "main": "dist/app.mjs", "types": "dist/app.d.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3128192..ed589c8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -146,8 +146,8 @@ importers: specifier: ^1.0.14 version: 1.0.14(dotenv@16.5.0) '@kevisual/xhs-core': - specifier: workspace:* - version: link:../xhs-core + specifier: 0.0.3 + version: 0.0.3 '@types/node': specifier: ^22.15.3 version: 22.15.3 @@ -265,6 +265,9 @@ packages: peerDependencies: dotenv: ^16.4.7 + '@kevisual/xhs-core@0.0.3': + resolution: {integrity: sha512-i1prOqtRSqsj4Nkcgw9GNNJXXLMeNnA2oAYX6Xrx/uskwTLoJfSwN41Z9k1XFyZfJ4oOu4ByFKeQLxVi4UkrqA==} + '@ljharb/resumer@0.1.3': resolution: {integrity: sha512-d+tsDgfkj9X5QTriqM4lKesCkMMJC3IrbPKHvayP00ELx2axdXvDfWkqjxrLXIzGcQzmj7VAUT1wopqARTvafw==} engines: {node: '>= 0.4'} @@ -2275,6 +2278,8 @@ snapshots: '@kevisual/load': 0.0.6 dotenv: 16.5.0 + '@kevisual/xhs-core@0.0.3': {} + '@ljharb/resumer@0.1.3': dependencies: '@ljharb/through': 2.3.14