diff --git a/.githooks/init-repo.sh b/.githooks/init-repo.sh index 2f3ff1c9..5f24278f 100755 --- a/.githooks/init-repo.sh +++ b/.githooks/init-repo.sh @@ -19,6 +19,7 @@ if [ -z "$CI" ]; then git config --local core.precomposeUnicode true git config --local fetch.prune true git config --local pull.rebase true + git config --local push.autoSetupRemote true git config --local push.followTags true git config --local rebase.autoStash true git config --local remote.origin.prune true diff --git a/.scripts/purge.sh b/.scripts/purge.sh index 81da1ae4..7177697f 100755 --- a/.scripts/purge.sh +++ b/.scripts/purge.sh @@ -2,9 +2,15 @@ npm run clean + if [[ -d node_modules/nx ]]; then nx reset fi + rm -rf node_modules package-lock.json npm run refresh +if [[ -d node_modules/nx ]]; then + nx reset +fi + diff --git a/package.json b/package.json index dd7d1952..4338cc5e 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "bootstrap": "npm i --loglevel info --disturl=https://npmmirror.com/dist/", "build": "sh .scripts/build.sh", "ci": "npm run cov", - "clean": "lerna clean --loglevel error --yes && lerna run clean && nx reset", + "clean": "lerna clean --loglevel error --yes && lerna run clean", "cov": "sh .scripts/cov.sh", "lint": "sh .scripts/lint.sh", "lint:cycle": "lerna exec -- madge --circular --extensions ts src",