Skip to content

Commit

Permalink
Move the dependencies into individual packages keyshade-xyz#530
Browse files Browse the repository at this point in the history
  • Loading branch information
bansal-harsh-2504 committed Jan 14, 2025
1 parent 5b70805 commit aef02fa
Show file tree
Hide file tree
Showing 9 changed files with 1,493 additions and 3,376 deletions.
13 changes: 11 additions & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"unit": "pnpm db:generate-types && jest --config=jest.config.ts"
},
"dependencies": {
"@keyshade/schema": "workspace:*",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.2.0",
"@nestjs/core": "^10.0.0",
Expand All @@ -34,18 +35,22 @@
"@nestjs/swagger": "^7.3.0",
"@nestjs/throttler": "^6.2.1",
"@nestjs/websockets": "^10.3.7",
"@slack/bolt": "^3.22.0",
"@react-email/components": "^0.0.25",
"@react-email/preview": "0.0.11",
"@slack/bolt": "^3.22.0",
"@react-email/render": "^1.0.1",
"@socket.io/redis-adapter": "^8.3.0",
"@sentry/node": "^7.102.0",
"@sentry/profiling-node": "^7.102.0",
"@supabase/supabase-js": "^2.39.6",
"chalk": "^4.1.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cookie-parser": "^1.4.6",
"dayjs": "^1.11.11",
"eccrypto": "^1.1.6",
"minio": "^8.0.0",
"moment": "^2.30.1",
"nodemailer": "^6.9.9",
"passport-github2": "^0.1.12",
"passport-gitlab2": "^5.0.0",
Expand All @@ -54,9 +59,11 @@
"redis": "^4.6.13",
"rxjs": "^7.8.1",
"socket.io": "^4.7.5",
"uuid": "^9.0.1"
"uuid": "^9.0.1",
"zod": "^3.23.6"
},
"devDependencies": {
"@types/jest": "^29.5.2",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
Expand All @@ -69,8 +76,10 @@
"@types/supertest": "^6.0.0",
"@types/uuid": "^9.0.8",
"ajv": "^7",
"cross-env": "^7.0.3",
"dotenv-cli": "^7.4.2",
"file-loader": "^6.2.0",
"husky": "^9.0.11",
"jest": "^29.5.0",
"jest-mock-extended": "^3.0.5",
"prettier": "^3.0.0",
Expand Down
4 changes: 3 additions & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"type": "module",
"scripts": {
"build": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.esm.js --format=esm --banner:js='#!/usr/bin/env node' && esbuild src/index.ts --bundle --platform=node --outfile=dist/index.cjs --format=cjs --banner:js='#!/usr/bin/env node'",
"build": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.cjs --format=cjs --banner:js=\"#!/usr/bin/env node\" && esbuild src/index.ts --bundle --platform=node --outfile=dist/index.esm.js --format=esm --banner:js=\"#!/usr/bin/env node\"",
"start": "node dist/index.cjs",
"dev": "pnpm build && node dist/index.cjs",
"lint": "eslint \"src/**/*.ts\" --fix",
Expand All @@ -26,6 +26,8 @@
"dependencies": {
"@clack/core": "^0.3.4",
"@clack/prompts": "^0.7.0",
"@keyshade/api-client": "workspace:*",
"@keyshade/secret-scan": "workspace:*",
"chalk": "^4.1.2",
"cli-table": "^0.3.11",
"colors": "^1.4.0",
Expand Down
1 change: 1 addition & 0 deletions apps/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "eslint \"src/**/*.ts\" --fix --config .eslintrc.cjs"
},
"dependencies": {
"@keyshade/schema": "workspace:*",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.4",
"@radix-ui/react-avatar": "^1.0.4",
Expand Down
48 changes: 0 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,53 +140,5 @@
"docker:build:api": "docker build -t ks-api -f apps/api/Dockerfile .",
"docker:run:platform": "docker run --env-file .env --name ks-platform --rm -p 3000:3000 ks-platform",
"docker:build:platform": "docker build -t ks-platform -f apps/platform/Dockerfile ."
},
"devDependencies": {
"@sentry/cli": "^2.28.6",
"@sentry/webpack-plugin": "^2.14.2",
"@types/jest": "^29.5.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.5.11",
"ts-jest": "^29.1.0",
"tsconfig": "workspace:*",
"tsconfig-paths": "^4.2.0",
"turbo": "^2.3.3"
},
"dependencies": {
"@changesets/cli": "^2.27.11",
"@keyshade/api-client": "workspace:*",
"@keyshade/schema": "workspace:*",
"@keyshade/secret-scan": "workspace:*",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.3",
"@semantic-release/release-notes-generator": "^14.0.0",
"@sentry/node": "^7.102.0",
"@sentry/profiling-node": "^7.102.0",
"@types/node": "^20.14.10",
"chalk": "^4.1.2",
"clsx": "^2.1.0",
"conventional-changelog-conventionalcommits": "8.0.0",
"conventional-changelog-writer": "8.0.0",
"framer-motion": "^11.2.9",
"million": "^3.0.5",
"moment": "^2.30.1",
"sharp": "^0.33.3",
"tailwind-merge": "^2.3.0",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.10",
"typescript": "^5.5.2",
"typescript-transform-paths": "^3.5.0",
"zod": "^3.23.6"
}
}
9 changes: 9 additions & 0 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@
"test": "cross-env BACKEND_URL=http://localhost:4200 jest --runInBand",
"lint": "eslint \"{src,tests}/**/*.ts\" --fix",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\""
},
"dependencies": {
"@keyshade/schema": "workspace:*",
"@types/node": "^20.14.10",
"jest": "^29.7.0",
"tsc-alias": "^1.8.10"
},
"devDependencies": {
"@types/jest": "^29.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/api-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tsconfig/base.json",
"extends": "../tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
Expand Down
8 changes: 7 additions & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
"test": "jest"
},
"dependencies": {
"zod": "^3.23.6"
"jest": "^29.7.0",
"zod": "^3.23.6",
"tsc-alias": "^1.8.10"
},
"devDependencies": {
"@types/jest": "^29.5.2",
"eslint-plugin-prettier": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/schema/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tsconfig/base.json",
"extends": "../tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
Expand Down
Loading

0 comments on commit aef02fa

Please sign in to comment.