Open licarth opened 6 years ago
@mikbry FYI, and if you see any problems with that please tell me.
@lodelestra Then we can use workspaces and yarn link without hacks
{
"private": true,
"workspaces": {
"packages": ["opla/backend", "zoapp-backend"],
"nohoist": ["zoapp-backend/**", "opla-backend/**"]
}
}
Ok if it works as previously, in dev and deployed to npm
In the CI :
In
package.json
:mv ./dist/zoapp.js ./dist/index.js
All of those hacks make
yarn link
and yarn workspaces not work as expected.INSTEAD in
package.json
: add"main": "dist/zoapp.js"
and remove the hacks. See https://docs.npmjs.com/files/package.json#main for details.TODO