rsnext/scripts/check-pre-compiled.sh
JJ Kasper f7b81316ae
Update to leverage pnpm for monorepo (#37259)
* Update to leverage pnpm for monorepo

* update compiled

* update stats action

* update ci install step

* update ci

* add test dep

* update invoking scripts

* update caching

* skip cache for now

* update dep

* update packages and fix babel

* update compiled

* update lint

* update test

* update ci

* update pnpm store caching

* update path for windows

* update restore-key config

* update caching

* remove extra build azure stage

* re-add checkout

* update setting pnpm store

* bump

* remove azure caching as pnpm is faster to download

* update contributing

* apply suggestions

* remove install-peers

* prepublish -> prepublishOnly

* prepublish -> prepublishOnly more

* more yarn -> pnpm references

* more yarn -> pnpm references take 2

* use workspace protocol for root package.json

Co-authored-by: Steven <steven@ceriously.com>
2022-05-28 23:35:16 -05:00

21 lines
634 B
Bash
Executable file

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