silverwolf-x/project / scripts /check-pre-compiled.sh
silverwolf-x's picture
download
raw
662 Bytes
#!/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

Xet Storage Details

Size:
662 Bytes
·
Xet hash:
df1378b03469a189ce0a8acbcc36a17e5d58ed28e10eb61f6c0ec5b457edc479

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.