Download next.js/scripts/check-pre-compiled.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/scripts/check-pre-compiled.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/scripts/check-pre-compiled.sh
-
curl -L -o check-pre-compiled.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/scripts/check-pre-compiled.sh
686 Bytes
| 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) ]] && [[ -z $IS_PUBLISH ]];then | |
| echo "Detected changes" | |
| git diff -a --stat | |
| exit 1 | |
| fi | |