Open arlyxiao opened 1 year ago
Make sure you have the config
"private": true, "workspaces": [ "packages/**", ],
package.json
{ "name": "@pm/common", "version": "1.0.0", "main": "index.js", "license": "MIT" }
index.ts
export function hello() { console.log('say hello'); return 'hello'; }
More detail https://dev.to/kpiteng/yarn-workspaces-monorepo-approach-354o
Create package.json file and packages folder in root folder.
Make sure you have the config
Create common folder in packages folder
package.json
index.ts
Create ui folder in packages folder
More detail https://dev.to/kpiteng/yarn-workspaces-monorepo-approach-354o