Skip to content

Commit

Permalink
fix: reset script from package.json does not work #1656
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ruzell22 authored and petermetz committed Feb 25, 2022
1 parent d2ef2a4 commit c74e002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]",
Expand Down

0 comments on commit c74e002

Please sign in to comment.