@oadank/dsh-input-tools 0.3.2 → 0.3.3
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/package.json +1 -1
- package/scripts/install-asr.ps1 +3 -1
package/package.json
CHANGED
package/scripts/install-asr.ps1
CHANGED
|
@@ -170,7 +170,9 @@ const server = http.createServer(async (req, res) => {
|
|
|
170
170
|
});
|
|
171
171
|
server.listen(PORT, () => console.log('[ASR] listening on ' + PORT));
|
|
172
172
|
"@
|
|
173
|
-
|
|
173
|
+
# 服务脚本用 .cjs:插件包 package.json 声明了 "type":"module",.js 会被当 ESM 解析导致 require 报错
|
|
174
|
+
# (2026-08-21 XDN 实测:asr-service.js 抛 ReferenceError: require is not defined)
|
|
175
|
+
$serviceFile = "$InstallDir\asr-service.cjs"
|
|
174
176
|
Set-Content -Path $serviceFile -Value $serviceScript -Encoding UTF8
|
|
175
177
|
|
|
176
178
|
# ---- 6. 注册 nssm 服务 ----
|