Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
francislagares committed Dec 23, 2024
1 parent 8bdac69 commit 8a77adb
Show file tree
Hide file tree
Showing 8 changed files with 1,273 additions and 361 deletions.
10 changes: 5 additions & 5 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"seed": "ts-node --transpile-only src/prisma/seed.ts"
},
"dependencies": {
"@prisma/client": "^6.0.1",
"@prisma/client": "^6.1.0",
"bcrypt": "^5.1.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
Expand All @@ -29,10 +29,10 @@
"helmet": "^8.0.0",
"hpp": "^0.2.3",
"http-status-codes": "^2.2.0",
"ioredis": "^5.3.2",
"ioredis": "^5.4.2",
"jsonwebtoken": "^9.0.0",
"mongodb": "^6.12.0",
"prisma": "^6.0.1",
"prisma": "^6.1.0",
"winston": "^3.17.0",
"zod": "^3.24.1"
},
Expand All @@ -49,7 +49,7 @@
"@types/supertest": "^6.0.2",
"@types/swagger-jsdoc": "^6.0.1",
"@types/swagger-ui-express": "^4.1.7",
"dotenv-cli": "^7.4.4",
"dotenv-cli": "^8.0.0",
"supertest": "^7.0.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1",
Expand All @@ -58,7 +58,7 @@
"tsc-alias": "^1.8.6",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.2",
"typescript-transform-paths": "^3.5.2"
"typescript-transform-paths": "^3.5.3"
},
"config": {
"commitizen": {
Expand Down
31 changes: 21 additions & 10 deletions client/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
import path from 'path';
import path, { dirname, join } from 'path';

import tsconfigPaths from 'vite-tsconfig-paths';

import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-onboarding'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-mdx-gfm'),
],

framework: {
name: '@storybook/react-vite',
name: getAbsolutePath('@storybook/react-vite'),
options: {},
},
docs: {
autodocs: 'tag',
},

docs: {},

viteFinal: async config => {
config.plugins?.push(
tsconfigPaths({
Expand All @@ -29,6 +32,14 @@ const config: StorybookConfig = {

return config;
},

typescript: {
reactDocgen: 'react-docgen-typescript',
},
};

export default config;

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
22 changes: 11 additions & 11 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,41 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@tanstack/query-core": "^5.62.7",
"@tanstack/react-query": "^5.62.7",
"@tanstack/query-core": "^5.62.8",
"@tanstack/react-query": "^5.62.8",
"axios": "^1.7.9",
"ms": "^2.1.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.0.2",
"react-router-dom": "^7.1.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.2",
"@chromatic-com/storybook": "^3.2.3",
"@mdx-js/react": "^3.1.0",
"@storybook/addon-actions": "^8.4.7",
"@storybook/addon-docs": "^8.4.7",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
"@storybook/addon-mdx-gfm": "^8.4.7",
"@storybook/addon-onboarding": "^8.4.7",
"@storybook/blocks": "^8.4.7",
"@storybook/builder-vite": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/test": "^8.4.7",
"@tanstack/eslint-plugin-query": "^5.62.1",
"@tanstack/react-query-devtools": "^5.62.7",
"@tanstack/react-query-devtools": "^5.62.8",
"@testing-library/cypress": "^10.0.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.4.3",
"@types/react": "^19.0.1",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/ui": "^2.1.8",
"cypress": "^13.16.1",
"cypress": "^13.17.0",
"cypress-vite": "^1.4.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
Expand All @@ -63,16 +63,16 @@
"jest-axe": "^9.0.0",
"jest-environment-jsdom": "^29.5.0",
"jsdom": "^25.0.1",
"msw": "^2.6.8",
"msw": "^2.7.0",
"msw-storybook-addon": "^2.0.4",
"prettier-stylelint": "^0.4.2",
"prop-types": "^15.8.1",
"storybook": "^8.4.7",
"stylelint": "^16.11.0",
"stylelint": "^16.12.0",
"stylelint-a11y": "^1.2.3",
"stylelint-config-standard": "^36.0.1",
"stylelint-order": "^6.0.3",
"vite": "^6.0.3",
"vite": "^6.0.5",
"vite-plugin-svgr": "^4.3.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.8"
Expand Down
2 changes: 1 addition & 1 deletion client/src/App.test.tsx → client/src/tests/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import { describe, expect, test } from 'vitest';

import App from './App';
import App from '../App';

describe('App', () => {
test('renders without crashing', () => {
Expand Down
5 changes: 4 additions & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { env } = require('process');

/**
* @description Root PM2 configuration file for monorepo
*/
Expand All @@ -6,7 +8,8 @@ module.exports = {
{
name: 'api-prod',
cwd: './api',
script: 'dist/app/index.js',
script: 'pnpm',
args: 'node --env-file=.env.production dist/app/index.js',
exec_mode: 'cluster',
instance_var: 'INSTANCE_ID',
instances: 2,
Expand Down
7 changes: 4 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ export default [
},
},
rules: {
...typescriptRules,
...typescriptRules,
'import/order': importOrderConfig,
},
},
{
ignores: [
'node_modules/**',
'dist/**',
'build/**',
'coverage/**',
'.storybook/**',
'**/node_modules/',
'node_modules/',
'*.config.{js,ts,mjs}',
'.next/**',
],
},
];
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,31 @@
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/js": "^9.16.0",
"@eslint/js": "^9.17.0",
"@mern-monorepo/client": "workspace:^",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@vitest/coverage-v8": "^2.1.8",
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.13.0",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"pm2": "^5.4.3",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.0",
"vite": "^6.0.3",
"typescript-eslint": "^8.18.1",
"vite": "^6.0.5",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.8",
"vitest-mock-extended": "^2.0.2"
Expand Down
Loading

0 comments on commit 8a77adb

Please sign in to comment.