@xiaozhi-client/cli 1.9.4-beta.8 → 1.9.4-beta.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tsup.config.ts +2 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaozhi-client/cli",
3
- "version": "1.9.4-beta.8",
3
+ "version": "1.9.4-beta.9",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/tsup.config.ts CHANGED
@@ -60,16 +60,9 @@ export default defineConfig({
60
60
  const filePath = resolve("../../dist/cli/index.js");
61
61
  let content = readFileSync(filePath, "utf-8");
62
62
 
63
- // 替换 @xiaozhi-client/config 和 @root/* 为指向正确位置的相对路径
63
+ // 替换 @root/* 为指向正确位置的相对路径
64
+ // 注意:@xiaozhi-client/config 现在从 node_modules 解析,不需要替换
64
65
  content = content
65
- .replace(
66
- /from\s*["']@xiaozhi-client\/config\.js["']/g,
67
- 'from "../config/index.js"'
68
- )
69
- .replace(
70
- /from\s*["']@xiaozhi-client\/config["']/g,
71
- 'from "../config/index.js"'
72
- )
73
66
  .replace(
74
67
  /from\s*["']@root\/WebServer\.js["']/g,
75
68
  'from "../backend/WebServer.js"'