sleepcode 1.4.1 → 1.4.2
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/bin/index.js
CHANGED
|
@@ -279,6 +279,8 @@ function generateFiles(targetDir, { typeKey, projectName, role, buildCmd, testCm
|
|
|
279
279
|
if (fs.existsSync(src)) {
|
|
280
280
|
let content = fs.readFileSync(src, 'utf-8');
|
|
281
281
|
content = content.replace(/\{\{SLEEP_INTERVAL\}\}/g, sleepInterval);
|
|
282
|
+
// PowerShell은 UTF-8 BOM 필요 (한글 깨짐 방지)
|
|
283
|
+
if (file.endsWith('.ps1')) content = '\uFEFF' + content;
|
|
282
284
|
fs.writeFileSync(dest, content);
|
|
283
285
|
}
|
|
284
286
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# AI Worker - 1회 실행 스크립트 (Windows PowerShell)
|
|
2
2
|
# run_forever.ps1 (무한 루프) 대신 수동으로 1회만 돌릴 때 사용
|
|
3
3
|
|
|
4
|
+
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
5
|
+
$OutputEncoding = [System.Text.Encoding]::UTF8
|
|
4
6
|
$ErrorActionPreference = "Stop"
|
|
5
7
|
Set-Location (Split-Path (Split-Path $PSScriptRoot -Parent) -Parent)
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# AI Night Worker - 감시자 스크립트 (Windows PowerShell)
|
|
2
2
|
# 사용법: powershell -File .\.sleepcode\scripts\run_forever.ps1
|
|
3
3
|
|
|
4
|
+
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
5
|
+
$OutputEncoding = [System.Text.Encoding]::UTF8
|
|
4
6
|
$ErrorActionPreference = "Continue"
|
|
5
7
|
Set-Location (Split-Path (Split-Path $PSScriptRoot -Parent) -Parent)
|
|
6
8
|
|