From c74e002a636994bd1b864fa0bde495bfc5026f9f Mon Sep 17 00:00:00 2001 From: ruzell22 Date: Tue, 22 Feb 2022 13:41:04 +0800 Subject: [PATCH] fix: reset script from package.json does not work #1656 fixes: #1656 Upon reading further about yarn.lock, del-cli yarn.lock wasn't needed and may cause problems. Letting yarn update the yarn.lock file is the better way in terms of updating dependencies. (https://classic.yarnpkg.com/en/docs/yarn-lock/#toc-managed-by yarn : # Managed by Yarn) (https://stackoverflow.com/questions/60509429) (https://stackoverflow.com/questions/41126217) Testing has also been done in terms of using "del-cli '**/node_modules'" and reinstalling it. yarn del-cli emptied node_modules. yarn install --update-checksum --force checks yarn.lock and updates it necessarily and also installs node_modules together. (https://classic.yarnpkg.com/en/docs/cli/install) (https://stackoverflow.com/questions/41864099) (https://www.codegrepper.com/code-examples/shell/yarn+reinstall+all+packages) yarn configure configured the package and outputs all lerna success. yarn reset is also reusable even after using yarn reset once. Signed-off-by: ruzell22 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 12fff52044..d67a8cf200 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "run-ci": "./tools/ci.sh", "reset:node-modules": "del-cli '**/node_modules'", "reset:git": "git clean -f -X", - "reset:yarn-lock": "del-cli yarn.lock && yarn install --update-checksums --force", + "reset:yarn-lock": "yarn install --update-checksums --force", "reset": "run-s reset:git reset:node-modules reset:yarn-lock configure", "configure": "yarn install --frozen-lockfile --non-interactive && yarn run build:dev:backend", "install-yarn": "npm install --global yarn@1.18.0",