You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To follow the mono repository approach, it should be possible to install the dependencies for Strapi in the general node_modules folder, instead of in a separate one inside the app folder.
Is this possible ?
The text was updated successfully, but these errors were encountered:
I think this should be possible yes, but since we use the strapi provided package to generate the project its placed there. You can if you want move the deps from that one manually to the root package.
We could also update the generator to move all the deps after it generated the project to the root package.json
Also, keep in mind that you have to set cwd to process.cwd() because if you run npx strapi build in an application folder (not root), the build will fail since Strapi internals check for package.json file alongside Strapi app.
Even so, npx strapi develop must be executed within Strapi app because it requires src folder. The bad part is that npx strapi develop also requires you to have a package.json within Strapi app. So the workaround is to create a package.json that meets Strapi requirements:
{
"dependencies": {
"@strapi/strapi": "*"
}
}
But, based on this, you don't have to run npx strapi build in a root anymore. In general, everything is not so straightforward :)
To follow the mono repository approach, it should be possible to install the dependencies for Strapi in the general node_modules folder, instead of in a separate one inside the app folder.
Is this possible ?
The text was updated successfully, but these errors were encountered: