Skip to content

Commit

Permalink
chore(root): 🤖 upgrade dependencies and build
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyghiani committed Nov 20, 2023
1 parent bb73a6f commit 7b1901e
Show file tree
Hide file tree
Showing 5 changed files with 551 additions and 480 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@
}
},
"devDependencies": {
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@commitlint/config-lerna-scopes": "^18.1.0",
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@commitlint/config-lerna-scopes": "^18.4.0",
"@testing-library/jest-dom": "^6.1.4",
"@types/jest": "^29.5.7",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.1.1",
"@types/jest": "^29.5.8",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vitejs/plugin-react": "^4.2.0",
"babel-loader": "^9.1.3",
"commitlint": "^18.2.0",
"eslint": "^8.53.0",
"commitlint": "^18.4.2",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
Expand All @@ -52,14 +52,14 @@
"jest-localstorage-mock": "^2.4.26",
"lerna": "^7.4.2",
"lerna-changelog": "^2.2.0",
"lint-staged": "^15.0.2",
"prettier": "^3.0.3",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"sort-package-json": "^2.6.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite": "^5.0.0",
"vite-plugin-babel-macros": "^1.0.6",
"vite-tsconfig-paths": "^4.2.1"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/react-mnt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"react-props-check": "^1.1.0"
},
"devDependencies": {
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.36",
"@types/react-dom": "^18.2.14",
"@testing-library/react": "^14.1.2",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
10 changes: 6 additions & 4 deletions packages/react-mnt/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import packageJson from './package.json';

export default defineConfig(() => ({
plugins: [react(), macrosPlugin(), viteTsconfigPaths()],
define: {
'process.env': {}
},
build: {
minify: false,
lib: {
Expand All @@ -33,7 +30,12 @@ export default defineConfig(() => ({
preserveModulesRoot: 'src'
}
],
external: ['react/jsx-runtime', ...Object.keys(packageJson.peerDependencies)]
external: [
...Object.keys(packageJson.dependencies).map(dep => new RegExp(dep)), // don't bundle dependencies
...Object.keys(packageJson.peerDependencies), // don't bundle peerDependencies
/^node:.*/, // don't bundle built-in Node.js modules (use protocol imports!),
'react/jsx-runtime'
]
}
}
}));
3 changes: 0 additions & 3 deletions packages/react-props-check/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import viteTsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig(() => ({
plugins: [react(), macrosPlugin(), viteTsconfigPaths()],
define: {
'process.env': {}
},
build: {
minify: false,
lib: {
Expand Down
Loading

0 comments on commit 7b1901e

Please sign in to comment.