@deveco-test/deveco-code 0.1.0-TD.23.5 → 0.1.0-TD.24

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/README.md CHANGED
@@ -241,7 +241,6 @@ DevEco Code 集成了常用 HarmonyOS 开发工具能力:
241
241
  | `hdc_log` | 收集/清理设备日志/查看连接模拟器 |
242
242
  | `verify_ui` | 执行 UI 操作验证功能是否正确 |
243
243
  | `arkts_check` | ArkTS 静态语法检查 |
244
- | `arkts_knowledge_search` | HarmonyOS 知识搜索 |
245
244
  | `switch_cwd` | 切换构建项目路径 |
246
245
 
247
246
  常见场景包括:从零到一创建 HarmonyOS 工程、增量开发页面、修复编译报错、真机调试。
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "postinstall": "node ./postinstall.mjs"
8
8
  },
9
- "version": "0.1.0-TD.23.5",
9
+ "version": "0.1.0-TD.24",
10
10
  "license": "MIT",
11
11
  "os": [
12
12
  "darwin",
@@ -25,8 +25,9 @@
25
25
  "assets/**/*"
26
26
  ],
27
27
  "optionalDependencies": {
28
- "@deveco-test/deveco-code-windows-x64": "0.1.0-TD.23.5",
29
- "@deveco-test/deveco-code-darwin-x64": "0.1.0-TD.23.5",
30
- "@deveco-test/deveco-code-darwin-arm64": "0.1.0-TD.23.5"
28
+ "@deveco-test/deveco-code-windows-x64": "0.1.0-TD.24",
29
+ "@deveco-test/deveco-code-darwin-x64": "0.1.0-TD.24",
30
+ "@deveco-test/deveco-code-darwin-arm64": "0.1.0-TD.24",
31
+ "@deveco-test/deveco-code": "0.1.0-TD.24"
31
32
  }
32
33
  }
package/postinstall.mjs CHANGED
@@ -136,6 +136,9 @@ function copyDir(src, dst) {
136
136
  copyDir(srcPath, dstPath)
137
137
  } else {
138
138
  fs.copyFileSync(srcPath, dstPath)
139
+ if (process.platform !== "win32") {
140
+ fs.chmodSync(dstPath, fs.statSync(srcPath).mode)
141
+ }
139
142
  }
140
143
  }
141
144
  }
@@ -146,6 +149,7 @@ function copyVendor(packageDir) {
146
149
  if (fs.existsSync(vendorSrc)) {
147
150
  copyDir(vendorSrc, vendorDst)
148
151
  restoreDevecoCliDeps(path.join(vendorDst, "deveco-cli"))
152
+ restoreDevecoCliDeps(path.join(packageDir, "vendor", "deveco-cli"))
149
153
  }
150
154
  }
151
155