4f212ee91d
Co-authored-by: sokra <sokra@users.noreply.github.com>
14 lines
489 B
Bash
Executable file
14 lines
489 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cp node_modules/webpack5/lib/hmr/HotModuleReplacement.runtime.js packages/next/bundles/webpack/packages/
|
|
cp node_modules/webpack5/lib/hmr/JavascriptHotModuleReplacement.runtime.js packages/next/bundles/webpack/packages/
|
|
yarn --cwd packages/next ncc-compiled
|
|
|
|
# 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
|