Skip to content

Commit

Permalink
Manage the version only in root package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
choidabom committed Sep 30, 2024
1 parent 1c28298 commit 141d6b7
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 127 deletions.
6 changes: 3 additions & 3 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!-- @format -->

# Maintaining CodePair

## Releasing a New Version

### 1. Update the version number.

- For packages that are independently versioned (e.g., `frontend/`, `backend/`), update the `version` field in their respective `package.json` files when making a release.
- Otherwise, centralize version management at the root `package.json` if using a unified versioning strategy.
- The `version` in `pnpm-lock.yaml` will be automatically updated when you run `pnpm install` at the root of the mono repo.
- CodePair uses global version management. Update the `version` field only in the root `package.json` file when making a release.

### 2. Write changelog of this version in [CHANGELOG.md](https://github.com/yorkie-team/codepair/blob/main/CHANGELOG.md).

Expand Down
189 changes: 94 additions & 95 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,96 +1,95 @@
{
"name": "@codepair/backend",
"version": "0.1.14",
"description": "CodePair Backend",
"author": "yorkie-team",
"license": "Apache-2.0",
"scripts": {
"build": "nest build",
"db:generate": "prisma generate --schema=prisma/schema.prisma",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\""
},
"lint-staged": {
"*.{ts,tsx}": [
"pnpm run lint",
"pnpm run format"
]
},
"dependencies": {
"@aws-sdk/client-s3": "^3.509.0",
"@aws-sdk/s3-request-presigner": "^3.509.0",
"@langchain/community": "^0.0.21",
"@langchain/core": "^0.1.18",
"@langchain/ollama": "^0.0.4",
"@langchain/openai": "^0.3.2",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.0",
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.1.17",
"@prisma/client": "^5.8.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"html-pdf-node": "^1.0.8",
"langchain": "^0.1.9",
"markdown-it": "^14.1.0",
"markdown-to-txt": "^2.0.1",
"moment": "^2.30.1",
"passport-github": "^1.1.0",
"passport-jwt": "^4.0.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/supertest": "^6.0.0",
"jest": "^29.5.0",
"prisma": "^5.8.1",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0"
},
"jest": {
"moduleDirectories": [
"node_modules",
"src"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"roots": [
"src"
],
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"src/(.*)": "<rootDir>/src/$1"
}
}
}
"name": "@codepair/backend",
"description": "CodePair Backend",
"author": "yorkie-team",
"license": "Apache-2.0",
"scripts": {
"build": "nest build",
"db:generate": "prisma generate --schema=prisma/schema.prisma",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\""
},
"lint-staged": {
"*.{ts,tsx}": [
"pnpm run lint",
"pnpm run format"
]
},
"dependencies": {
"@aws-sdk/client-s3": "^3.509.0",
"@aws-sdk/s3-request-presigner": "^3.509.0",
"@langchain/community": "^0.0.21",
"@langchain/core": "^0.1.18",
"@langchain/ollama": "^0.0.4",
"@langchain/openai": "^0.3.2",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.0",
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.1.17",
"@prisma/client": "^5.8.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"html-pdf-node": "^1.0.8",
"langchain": "^0.1.9",
"markdown-it": "^14.1.0",
"markdown-to-txt": "^2.0.1",
"moment": "^2.30.1",
"passport-github": "^1.1.0",
"passport-jwt": "^4.0.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/supertest": "^6.0.0",
"jest": "^29.5.0",
"prisma": "^5.8.1",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0"
},
"jest": {
"moduleDirectories": [
"node_modules",
"src"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"roots": [
"src"
],
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"src/(.*)": "<rootDir>/src/$1"
}
}
}
1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@codepair/frontend",
"version": "0.1.14",
"description": "CodePair Frontend",
"type": "module",
"author": "yorkie-team",
Expand Down
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"name": "codepair",
"version": "0.1.14",
"description": "Build your own AI-powered collaborative markdown editor in just 5 minutes",
"keywords": [],
"author": "yorkie-team",
"license": "Apache-2.0",
"scripts": {
"prepare": "husky .husky",
"preinstall": "npx only-allow pnpm",
"frontend": "pnpm --filter=frontend",
"backend": "pnpm --filter=backend",
"lint": "pnpm run --parallel lint",
"lint:check": "pnpm run --parallel lint:check",
"format": "pnpm run --parallel format",
"format:check": "pnpm run --parallel format:check"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^9.1.4",
"prettier": "^3.3.3",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
}
"name": "codepair",
"version": "0.1.14",
"description": "Build your own AI-powered collaborative markdown editor in just 5 minutes",
"keywords": [],
"author": "yorkie-team",
"license": "Apache-2.0",
"scripts": {
"prepare": "husky .husky",
"preinstall": "npx only-allow pnpm",
"frontend": "pnpm --filter=frontend",
"backend": "pnpm --filter=backend",
"lint": "pnpm run --parallel lint",
"lint:check": "pnpm run --parallel lint:check",
"format": "pnpm run --parallel format",
"format:check": "pnpm run --parallel format:check"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^9.1.4",
"prettier": "^3.3.3",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
}

0 comments on commit 141d6b7

Please sign in to comment.