/
githubmirror
/
serverless
Обзор
Документация
Войти
/
githubmirror
/
serverless
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/setup-sls-cmd.cjs
15 строк
503 B
Tomasz Czubocha
fix(python): add zip path normalization test and Windows CI (#13383)
05 май 2026, 18:41
Не верифицирован
05 май 2026, 18:41
bfee234
Код
Авторство
О чём код?
/** * Creates a sls.cmd wrapper on Windows that points to the sf-core CLI. * Used by CI to make `sls` available in PATH on Windows runners. */ const fs = require('fs') const path = require('path') const binDir = path.join('.github', 'bin') fs.mkdirSync(binDir, { recursive: true }) const target = path.resolve('packages', 'sf-core', 'bin', 'sf-core.js') const content = `@node "${target}" %*\r\n` fs.writeFileSync(path.join(binDir, 'sls.cmd'), content) console.log(`Created sls.cmd -> ${target}`)