rsnext/scripts/check-pre-compiled.sh
JJ Kasper 6fd2a7fa31
Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types.
2022-08-16 09:55:37 +00:00

23 lines
638 B
Bash
Executable file

#!/bin/bash
set -e
cd packages/next
cp node_modules/webpack/lib/hmr/HotModuleReplacement.runtime.js bundles/webpack/packages/
cp node_modules/webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js bundles/webpack/packages/
cp node_modules/webpack/hot/lazy-compilation-node.js bundles/webpack/packages/
cp node_modules/webpack/hot/lazy-compilation-web.js 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