diff --git a/MAINTAINING.md b/MAINTAINING.md index 0f2d39c9..460b4e6a 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -1,12 +1,12 @@ + + # 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). diff --git a/backend/package.json b/backend/package.json index b4ed2faf..994b1bc0 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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/(.*)": "/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/(.*)": "/src/$1" + } + } +} \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 07aaf174..cebfe37f 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,5 @@ { "name": "@codepair/frontend", - "version": "0.1.14", "description": "CodePair Frontend", "type": "module", "author": "yorkie-team", diff --git a/package.json b/package.json index f03fb6c5..54773ee9 100644 --- a/package.json +++ b/package.json @@ -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": "pnpm@9.4.0+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": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a" +} \ No newline at end of file