Skip to content

Commit

Permalink
build(manager): yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 6, 2023
1 parent 641250b commit f92a401
Show file tree
Hide file tree
Showing 7 changed files with 13,081 additions and 11,914 deletions.
5 changes: 1 addition & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"packages": [
"packages/*"
],
"npmClient": "yarn",
"npmClient": "pnpm",
"useWorkspaces": true,
"version": "1.2.0"
}
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"bootstrap": "lerna bootstrap --use-workspaces",
"dev": "lerna run dev",
"serve": "lerna run serve",
"build": "lerna run build --verbose",
"test": "lerna run test",
"lint": "lerna run lint",
"deploy": "yarn bootstrap && yarn build",
"deploy": "pnpm run build",
"patch": "generi log patch",
"minor": "generi log minor",
"major": "generi log major"
},
"devDependencies": {
"generi": "1.1.0",
"generi": "1.2.0",
"lerna": "6.6.2"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"src/*"
],
"@vueuse/schema-org/runtime": [
"./../../node_modules/@vueuse/schema-org/dist/runtime-simple/index"
"./../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@vueuse/schema-org/dist/runtime-simple/index"
]
},
"lib": [
Expand Down
9 changes: 5 additions & 4 deletions packages/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ export default ({ mode }) => {
minify: 'esbuild',
rollupOptions: {
output:{
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString();
}
manualChunks: {
pdfmake: ['pdfmake'],
three: ['three'],
docx: ['docx'],
'xml-js': ['xml-js']
}
}
}
Expand Down

0 comments on commit f92a401

Please sign in to comment.