2020-04-07 15:42:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-21 19:17:16 +02:00
|
|
|
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/
|
2021-12-14 11:33:04 +01:00
|
|
|
cp node_modules/webpack5/hot/lazy-compilation-node.js packages/next/bundles/webpack/packages/
|
|
|
|
cp node_modules/webpack5/hot/lazy-compilation-web.js packages/next/bundles/webpack/packages/
|
2020-04-07 15:42:16 +02:00
|
|
|
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"
|
2021-09-21 19:17:16 +02:00
|
|
|
git diff -a --stat
|
2020-04-07 15:42:16 +02:00
|
|
|
exit 1
|
|
|
|
fi
|