sleepcode 1.4.4 → 1.4.5
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/.claude/settings.local.json +4 -1
- package/.gitattributes +4 -0
- package/bin/index.js +4 -0
- package/package.json +1 -1
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
"Bash(NPM_TOKEN=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 npm publish:*)",
|
|
14
14
|
"Bash(NPM_TOKEN=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 npm publish)",
|
|
15
15
|
"Bash(git push:*)",
|
|
16
|
-
"Bash(claude:*)"
|
|
16
|
+
"Bash(claude:*)",
|
|
17
|
+
"Bash(git reset:*)",
|
|
18
|
+
"Bash(NPM_TOKEN=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 npm publish --registry=https://registry.npmjs.org/)",
|
|
19
|
+
"Bash(npm publish --//registry.npmjs.org/:_authToken=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)"
|
|
17
20
|
]
|
|
18
21
|
}
|
|
19
22
|
}
|
package/.gitattributes
ADDED
package/bin/index.js
CHANGED
|
@@ -279,6 +279,10 @@ 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
|
+
// Shell/Python 스크립트는 반드시 LF 줄바꿈 (Windows에서도)
|
|
283
|
+
if (file.endsWith('.sh') || file.endsWith('.py')) {
|
|
284
|
+
content = content.replace(/\r\n/g, '\n');
|
|
285
|
+
}
|
|
282
286
|
// PowerShell은 UTF-8 BOM 필요 (한글 깨짐 방지)
|
|
283
287
|
if (file.endsWith('.ps1')) content = '\uFEFF' + content;
|
|
284
288
|
fs.writeFileSync(dest, content);
|