Reverse the dependency between @faststore/core and @faststore/cli
Reverse the dependency between @faststore/core
and @faststore/cli
What has changed?
The new CLI version now depends on the core package, reversing the previous dependency. Therefore, an explicit dependency on @faststore/cli
is sufficient, eliminating the need for both dependencies decreasing the possibility of incompatibilities between versions of different packages.
What needs to be done?
In your local FastStore project, go to package.json
file and check the dependencies list:
"dependencies": {
"@faststore/cli": "^3.0.87",
"next": "^13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
If @faststore/cli
is already listed there, no action is needed. If not, follow the instructions below:
1. Remove the explicit dependency on @faststore/core
in favor of depending only on @faststore/cli
. The dependency list should look like:
"dependencies": {
"@faststore/cli": "^3.0.87", // it was @faststore/core": "^3.0.xx"
"next": "^13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
2. Remove @faststore/cli
from devDependencies list:
"devDependencies": {
"@cypress/code-coverage": "^3.12.1",
"@lhci/cli": "^0.9.0",
"@testing-library/cypress": "^10.0.1",
"cypress": "12.17.4",
"cypress-axe": "^1.5.0",
"cypress-wait-until": "^2.0.1",
"typescript": "^4.9.4"
},
3. Apply changes:
Run yarn
to install the changes. Your yarn.lock
file should be modified.
Refer to this PR to see the necessary changes.
Warning
We strongly recommend trying this in your local development environment to ensure compatibility with your existing codebase before changing to production.
These changes should not cause any issues in your project. After verifying that everything is working as expected, create a pull request with these changes to your remote repository.