From 027769e06f548c080df2768112b4c3fff6300a4e Mon Sep 17 00:00:00 2001 From: dasiklasik <70663414+dasiklasik@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:15:42 +0300 Subject: [PATCH] feat: change type package import (#258) --- template/apps/api/package.json | 2 +- template/apps/web/package.json | 2 +- template/packages/{types => app-types}/.eslintrc.js | 0 template/packages/{types => app-types}/.gitignore | 0 template/packages/{types => app-types}/package.json | 2 +- template/packages/{types => app-types}/src/index.ts | 0 template/packages/{types => app-types}/src/token.types.ts | 0 template/packages/{types => app-types}/src/user.types.ts | 0 template/packages/{types => app-types}/tsconfig.json | 0 template/pnpm-lock.yaml | 8 ++++---- 10 files changed, 7 insertions(+), 7 deletions(-) rename template/packages/{types => app-types}/.eslintrc.js (100%) rename template/packages/{types => app-types}/.gitignore (100%) rename template/packages/{types => app-types}/package.json (95%) rename template/packages/{types => app-types}/src/index.ts (100%) rename template/packages/{types => app-types}/src/token.types.ts (100%) rename template/packages/{types => app-types}/src/user.types.ts (100%) rename template/packages/{types => app-types}/tsconfig.json (100%) diff --git a/template/apps/api/package.json b/template/apps/api/package.json index 26246ba2..a2155c0e 100644 --- a/template/apps/api/package.json +++ b/template/apps/api/package.json @@ -29,6 +29,7 @@ "@socket.io/redis-adapter": "8.1.0", "@socket.io/redis-emitter": "5.1.0", "app-constants": "workspace:*", + "app-types": "workspace:*", "bcryptjs": "2.4.3", "dotenv": "16.0.3", "google-auth-library": "8.7.0", @@ -52,7 +53,6 @@ "redis": "4.6.5", "schemas": "workspace:*", "socket.io": "4.6.1", - "app-types": "npm:types", "winston": "3.8.2", "zod": "3.21.4" }, diff --git a/template/apps/web/package.json b/template/apps/web/package.json index 1e66e0bf..09931f35 100644 --- a/template/apps/web/package.json +++ b/template/apps/web/package.json @@ -25,7 +25,7 @@ "@tanstack/react-query": "5.13.4", "@tanstack/react-table": "8.7.9", "app-constants": "workspace:*", - "app-types": "npm:types", + "app-types": "workspace:*", "axios": "1.3.4", "clsx": "2.0.0", "dayjs": "1.11.7", diff --git a/template/packages/types/.eslintrc.js b/template/packages/app-types/.eslintrc.js similarity index 100% rename from template/packages/types/.eslintrc.js rename to template/packages/app-types/.eslintrc.js diff --git a/template/packages/types/.gitignore b/template/packages/app-types/.gitignore similarity index 100% rename from template/packages/types/.gitignore rename to template/packages/app-types/.gitignore diff --git a/template/packages/types/package.json b/template/packages/app-types/package.json similarity index 95% rename from template/packages/types/package.json rename to template/packages/app-types/package.json index a94a767c..a5258311 100644 --- a/template/packages/types/package.json +++ b/template/packages/app-types/package.json @@ -1,5 +1,5 @@ { - "name": "types", + "name": "app-types", "version": "1.0.0", "main": "./src/index.ts", "types": "./src/index.ts", diff --git a/template/packages/types/src/index.ts b/template/packages/app-types/src/index.ts similarity index 100% rename from template/packages/types/src/index.ts rename to template/packages/app-types/src/index.ts diff --git a/template/packages/types/src/token.types.ts b/template/packages/app-types/src/token.types.ts similarity index 100% rename from template/packages/types/src/token.types.ts rename to template/packages/app-types/src/token.types.ts diff --git a/template/packages/types/src/user.types.ts b/template/packages/app-types/src/user.types.ts similarity index 100% rename from template/packages/types/src/user.types.ts rename to template/packages/app-types/src/user.types.ts diff --git a/template/packages/types/tsconfig.json b/template/packages/app-types/tsconfig.json similarity index 100% rename from template/packages/types/tsconfig.json rename to template/packages/app-types/tsconfig.json diff --git a/template/pnpm-lock.yaml b/template/pnpm-lock.yaml index fd257da6..9cced28d 100644 --- a/template/pnpm-lock.yaml +++ b/template/pnpm-lock.yaml @@ -109,8 +109,8 @@ importers: specifier: workspace:* version: link:../../packages/app-constants app-types: - specifier: npm:types - version: link:../../packages/types + specifier: workspace:* + version: link:../../packages/app-types bcryptjs: specifier: 2.4.3 version: 2.4.3 @@ -332,8 +332,8 @@ importers: specifier: workspace:* version: link:../../packages/app-constants app-types: - specifier: npm:types - version: link:../../packages/types + specifier: workspace:* + version: link:../../packages/app-types axios: specifier: 1.3.4 version: 1.3.4