Skip to content

Commit

Permalink
Merge pull request #1146 from samchon/feat/typia
Browse files Browse the repository at this point in the history
Bump up `typia`, and `migrate`/`editor` follows the main version.
  • Loading branch information
samchon authored Dec 11, 2024
2 parents 42ebcb5 + 0a347e1 commit e741b9c
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 36 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ on:
pull_request:
paths:
- '.github/workflows/build.yml'
- 'packages/{core,fetcher,sdk}/src/**'
- 'packages/{core,fetcher,sdk}/package.json'
- 'packages/{core,fetcher,sdk,e2e}/src/**'
- 'packages/{core,fetcher,sdk,e2e}/package.json'
- 'test/**'
- 'test/package.json'
- 'package.json'
jobs:
Ubuntu:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"reflect-metadata": "^0.2.2",
"tgrid": "^1.1.0",
"tstl": "^3.0.0",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"devDependencies": {
"@types/autocannon": "^7.9.0",
Expand Down
5 changes: 4 additions & 1 deletion deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const main = async () => {
packages: ["fetcher", "core", "sdk"],
});
if (tag === "latest" || process.argv.includes("--migrate"))
await migrate(tag);
await migrate({
tag,
version: () => version,
});
}
};
main().catch((error) => {
Expand Down
15 changes: 2 additions & 13 deletions deploy/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ const cp = require("child_process");
const { build } = require("./build");
const { publish } = require("./publish");

const { version: stationVersion } = require("../package.json");
const { version: migrateVersion } = require("../packages/migrate/package.json");
const { version: editorVersion } = require("../packages/editor/package.json");

const website = async () => {
console.log("=========================================");
console.log(` Publish @nestia/website`);
Expand All @@ -19,19 +15,12 @@ const website = async () => {
});
};

const migrate = async (tag) => {
const migrate = async ({ tag, version }) => {
await build(["migrate", "editor"]);
await publish({
tag,
packages: ["migrate", "editor"],
version: (name) =>
name === "migrate"
? migrateVersion
: name === "editor"
? editorVersion
: ["fetcher", "core", "sdk"].includes(name)
? stationVersion
: null,
version,
});
await website();
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@nestia/station",
"version": "4.1.0",
"version": "4.2.0",
"description": "Nestia station",
"scripts": {
"build": "node deploy build",
Expand Down
2 changes: 1 addition & 1 deletion packages/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ts-patch": "^3.3.0",
"typescript": "~5.7.2",
"typescript-transform-paths": "^3.4.7",
"typia": "^7.1.0",
"typia": "^7.2.0",
"uuid": "^10.0.0"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/core",
"version": "4.1.0-dev.20241210",
"version": "4.2.0-dev.20241211-2",
"description": "Super-fast validation decorators of NestJS",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -48,16 +48,16 @@
"reflect-metadata": ">=0.1.12",
"rxjs": ">=6.0.3",
"tgrid": "^1.1.0",
"typia": "^7.1.0",
"typia": "^7.2.0",
"ws": "^7.5.3"
},
"peerDependencies": {
"@nestia/fetcher": ">=4.1.0-dev.20241210",
"@nestia/fetcher": ">=4.2.0-dev.20241211-2",
"@nestjs/common": ">=7.0.1",
"@nestjs/core": ">=7.0.1",
"reflect-metadata": ">=0.1.12",
"rxjs": ">=6.0.3",
"typia": ">=7.1.0 <8.0.0"
"typia": ">=7.2.0 <8.0.0"
},
"devDependencies": {
"@nestjs/common": "^10.4.13",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"ts-patch": "^3.3.0",
"typescript": "~5.7.2",
"typescript-transform-paths": "^3.4.7",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"files": [
"lib",
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/editor",
"version": "0.9.5",
"version": "4.2.0-dev.20241211-2",
"typings": "lib/index.d.ts",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down Expand Up @@ -40,7 +40,7 @@
"js-yaml": "^4.1.0",
"prettier": "3.3.3",
"react-mui-fileuploader": "^0.5.2",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/fetcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/fetcher",
"version": "4.1.0-dev.20241210",
"version": "4.2.0-dev.20241211-2",
"description": "Fetcher library of Nestia SDK",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -27,7 +27,7 @@
"homepage": "https://nestia.io",
"dependencies": {
"@samchon/openapi": "^2.0.1",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"peerDependencies": {
"typescript": ">= 4.8.0"
Expand All @@ -38,7 +38,7 @@
"@typescript-eslint/parser": "^5.46.1",
"rimraf": "^3.0.2",
"typescript": "~5.7.2",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"files": [
"README.md",
Expand Down
4 changes: 2 additions & 2 deletions packages/migrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/migrate",
"version": "0.21.5",
"version": "4.2.0-dev.20241211-2",
"description": "Migration program from swagger to NestJS",
"typings": "lib/index.d.ts",
"main": "lib/index.js",
Expand Down Expand Up @@ -78,7 +78,7 @@
"prettier": "^3.2.5",
"tstl": "^3.0.0",
"typescript": "~5.7.2",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"files": [
"lib",
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/sdk",
"version": "4.1.0-dev.20241210",
"version": "4.2.0-dev.20241211-2",
"description": "Nestia SDK and Swagger generator",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -44,16 +44,16 @@
"tsconfck": "^2.1.2",
"tsconfig-paths": "^4.1.1",
"tstl": "^3.0.0",
"typia": "^7.1.0"
"typia": "^7.2.0"
},
"peerDependencies": {
"@nestia/core": ">=4.1.0-dev.20241210",
"@nestia/fetcher": ">=4.1.0-dev.20241210",
"@nestia/core": ">=4.2.0-dev.20241211-2",
"@nestia/fetcher": ">=4.2.0-dev.20241211-2",
"@nestjs/common": ">=7.0.1",
"@nestjs/core": ">=7.0.1",
"reflect-metadata": ">=0.1.12",
"ts-node": ">=10.6.0",
"typia": ">=7.1.0 <8.0.0"
"typia": ">=7.2.0 <8.0.0"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
Expand Down

0 comments on commit e741b9c

Please sign in to comment.