/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
scripts/check-pre-compiled.sh
23 строки
662 B
Sebastian "Sebbie" Silbermann
[ci] Stop running explicit build when creating release (#87212)
16 дек 2025, 12:46
Не верифицирован
16 дек 2025, 12:46
0812317
Код
Авторство
О чём код?
#!/usr/bin/env bash set -e cd packages/next cp node_modules/webpack/lib/hmr/HotModuleReplacement.runtime.js src/bundles/webpack/packages/ cp node_modules/webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js src/bundles/webpack/packages/ cp node_modules/webpack/hot/lazy-compilation-node.js src/bundles/webpack/packages/ cp node_modules/webpack/hot/lazy-compilation-web.js src/bundles/webpack/packages/ pnpm run ncc-compiled cd ../../ # Make sure to exit with 1 if there are changes after running ncc-compiled # step to ensure we get any changes committed if [[ ! -z $(git status -s) ]];then echo "Detected changes" git diff -a --stat exit 1 fi