-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monorepo hoist&local deps #2
Comments
2.1. hoist dependencieshoist dependencies from workspaces to top "dependencies": {
"@capacitor/app": "5.0.7",
"@capacitor/core": "5.7.4",
"@capacitor/haptics": "5.0.7",
"@capacitor/keyboard": "5.0.8",
"@capacitor/status-bar": "5.0.7",
"@ionic/vue": "^7.0.0",
"@ionic/vue-router": "^7.0.0",
"ionicons": "^7.0.0",
"vue": "^3.3.0",
"vue-router": "^4.2.0"
},
"devDependencies": {
"@capacitor/cli": "5.7.4",
"@vitejs/plugin-legacy": "^5.0.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.3.0",
"cypress": "^13.5.0",
"eslint": "^8.35.0",
"eslint-plugin-vue": "^9.9.0",
"jsdom": "^22.1.0",
"terser": "^5.4.0",
"typescript": "^5.1.6",
"vite": "^5.0.0",
"vitest": "^0.34.6",
"vue-tsc": "^1.0.24"
} then, modify and reorder ## at top project, install and check
npm install
##> added 702 packages, and removed 1474 packages in 37s
## move shared deps, for workspace `node_modules` to top's
cd packages/front-desktop
npx cap open @capacitor-community/electron
##> Opening Electron platform: running electron app
## save point
git add --all && git commit -am '2.1 hoist deps #2' |
build electron
add {
"compilerOptions": {
"skipLibCheck": true
}
}
delete
|
install local monorepo npm install @razor/shared --workspace packages/front-shared
npm install @razor/front-shared --workspace packages/front-desktop
npm install @razor/front-shared --workspace packages/front-mobile and use - "@razor/front-shared": "1.0.0-beta.100",
+ "@razor/front-shared": "file:../front-shared",
- "@razor/shared": "1.0.0-beta.100",
+ "@razor/shared": "file:../shared", |
The text was updated successfully, but these errors were encountered: