Skip to content

Commit 0fbcff2

Browse files
ruzell22petermetz
authored andcommitted
fix: reset script from package.json does not work hyperledger-cacti#1656
fixes: hyperledger-cacti#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]>
1 parent d2ef2a4 commit 0fbcff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"run-ci": "./tools/ci.sh",
1717
"reset:node-modules": "del-cli '**/node_modules'",
1818
"reset:git": "git clean -f -X",
19-
"reset:yarn-lock": "del-cli yarn.lock && yarn install --update-checksums --force",
19+
"reset:yarn-lock": "yarn install --update-checksums --force",
2020
"reset": "run-s reset:git reset:node-modules reset:yarn-lock configure",
2121
"configure": "yarn install --frozen-lockfile --non-interactive && yarn run build:dev:backend",
2222
"install-yarn": "npm install --global [email protected]",

0 commit comments

Comments
 (0)