Skip to content

Commit

Permalink
feat: migrate to pnpm (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia authored Oct 4, 2023
1 parent 5df454d commit ee62e3e
Show file tree
Hide file tree
Showing 211 changed files with 25,984 additions and 24,350 deletions.
7 changes: 4 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"npmClient": "pnpm",
"useWorkspaces": true,
"version": "0.9.6",
"npmClient": "npm"
}
"packages": ["packages/*"]
}
5,730 changes: 0 additions & 5,730 deletions package-lock.json

This file was deleted.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "bigcapital-monorepo",
"private": true,
"scripts": {
"bootstrap": "lerna exec npm install",
"dev": "lerna run dev",
"build": "lerna run build",
"dev:webapp": "lerna run dev --scope \"@bigcapital/webapp\"",
Expand All @@ -13,10 +12,6 @@
"test:e2e": "playwright test",
"prepare": "husky install"
},
"workspaces": [
"packages/*",
"shared/*"
],
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
Expand All @@ -27,7 +22,7 @@
"lerna": "^6.4.1"
},
"engines": {
"node": "14.x"
"node": "16.x || 17.x || 18.x"
},
"husky": {
"hooks": {
Expand Down
3 changes: 1 addition & 2 deletions packages/server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/node_modules/
/.env
/storage
package-lock.json
stdout.log
/dist
/build
/build
5 changes: 4 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"babel-loader": "^9.1.2",
"bcryptjs": "^2.4.3",
"bluebird": "^3.7.2",
"body-parser": "^1.20.2",
"compression": "^1.7.4",
"country-codes-list": "^1.6.8",
"cpy": "^8.1.2",
Expand Down Expand Up @@ -72,6 +73,8 @@
"memory-cache": "^0.2.0",
"moment": "^2.24.0",
"moment-range": "^4.0.2",
"moment-timezone": "^0.5.43",
"mongodb": "^6.1.0",
"mongoose": "^5.10.0",
"mustache": "^3.0.3",
"mysql": "^2.17.1",
Expand Down Expand Up @@ -131,7 +134,7 @@
"rimraf": "^3.0.2",
"rtlcss": "^3.3.0",
"run-script-webpack-plugin": "^0.1.1",
"sass": "^1.37.5",
"sass": "^1.58.0",
"sinon": "^7.4.2",
"start-server-webpack-plugin": "^2.2.5",
"ts-loader": "^9.4.2",
Expand Down
1 change: 0 additions & 1 deletion packages/webapp/.npmrc

This file was deleted.

11 changes: 0 additions & 11 deletions packages/webapp/craco.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
const path = require('path');
const webpack = require('webpack');
const dotenv = require('dotenv-webpack');

module.exports = {
webpack: {
plugins: [
new dotenv(),
new webpack.DefinePlugin({
'process.env': {
MONOREPO_VERSION: JSON.stringify(require('../../lerna.json').version),
},
}),
],

alias: {
'@': path.resolve(__dirname, 'src'),
},
Expand Down
Loading

0 comments on commit ee62e3e

Please sign in to comment.