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) => {
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),

View File

@ -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",

9
pnpm-lock.yaml generated
View File

@ -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