diff --git a/apps/nest-app/.env.example b/apps/nestjs/.env.example similarity index 100% rename from apps/nest-app/.env.example rename to apps/nestjs/.env.example diff --git a/apps/nest-app/README.md b/apps/nestjs/README.md similarity index 100% rename from apps/nest-app/README.md rename to apps/nestjs/README.md diff --git a/apps/nest-app/nest-cli.json b/apps/nestjs/nest-cli.json similarity index 100% rename from apps/nest-app/nest-cli.json rename to apps/nestjs/nest-cli.json diff --git a/apps/nest-app/package.json b/apps/nestjs/package.json similarity index 93% rename from apps/nest-app/package.json rename to apps/nestjs/package.json index cb03cde..f1c5b0b 100644 --- a/apps/nest-app/package.json +++ b/apps/nestjs/package.json @@ -1,5 +1,5 @@ { - "name": "@coldrun/monorepo-typescript-nest-app", + "name": "@coldrun/monorepo-typescript-app-nestjs", "private": true, "version": "1.0.0", "description": "Starter app service powered by NestJS", @@ -18,6 +18,7 @@ }, "dependencies": { "@coldrun/monorepo-typescript-core": "workspace:*", + "@coldrun/monorepo-typescript-shared": "workspace:*", "@nestjs/common": "^11.1.10", "@nestjs/config": "^4.0.2", "@nestjs/core": "^11.1.10", diff --git a/apps/nest-app/src/app/app.config.ts b/apps/nestjs/src/app/app.config.ts similarity index 100% rename from apps/nest-app/src/app/app.config.ts rename to apps/nestjs/src/app/app.config.ts diff --git a/apps/nest-app/src/app/app.module.ts b/apps/nestjs/src/app/app.module.ts similarity index 100% rename from apps/nest-app/src/app/app.module.ts rename to apps/nestjs/src/app/app.module.ts diff --git a/apps/nest-app/src/app/environment.ts b/apps/nestjs/src/app/environment.ts similarity index 100% rename from apps/nest-app/src/app/environment.ts rename to apps/nestjs/src/app/environment.ts diff --git a/apps/nest-app/src/app/index.ts b/apps/nestjs/src/app/index.ts similarity index 100% rename from apps/nest-app/src/app/index.ts rename to apps/nestjs/src/app/index.ts diff --git a/apps/nest-app/src/main.ts b/apps/nestjs/src/main.ts similarity index 100% rename from apps/nest-app/src/main.ts rename to apps/nestjs/src/main.ts diff --git a/apps/nest-app/src/modules/hello/hello.controller.spec.ts b/apps/nestjs/src/modules/hello/hello.controller.spec.ts similarity index 100% rename from apps/nest-app/src/modules/hello/hello.controller.spec.ts rename to apps/nestjs/src/modules/hello/hello.controller.spec.ts diff --git a/apps/nest-app/src/modules/hello/hello.controller.ts b/apps/nestjs/src/modules/hello/hello.controller.ts similarity index 100% rename from apps/nest-app/src/modules/hello/hello.controller.ts rename to apps/nestjs/src/modules/hello/hello.controller.ts diff --git a/apps/nest-app/src/modules/hello/hello.module.ts b/apps/nestjs/src/modules/hello/hello.module.ts similarity index 100% rename from apps/nest-app/src/modules/hello/hello.module.ts rename to apps/nestjs/src/modules/hello/hello.module.ts diff --git a/apps/nest-app/src/modules/hello/hello.service.ts b/apps/nestjs/src/modules/hello/hello.service.ts similarity index 100% rename from apps/nest-app/src/modules/hello/hello.service.ts rename to apps/nestjs/src/modules/hello/hello.service.ts diff --git a/apps/nest-app/src/modules/hello/index.ts b/apps/nestjs/src/modules/hello/index.ts similarity index 100% rename from apps/nest-app/src/modules/hello/index.ts rename to apps/nestjs/src/modules/hello/index.ts diff --git a/apps/nest-app/test/app.e2e-spec.ts b/apps/nestjs/test/app.e2e-spec.ts similarity index 100% rename from apps/nest-app/test/app.e2e-spec.ts rename to apps/nestjs/test/app.e2e-spec.ts diff --git a/apps/nest-app/test/jest-e2e.json b/apps/nestjs/test/jest-e2e.json similarity index 100% rename from apps/nest-app/test/jest-e2e.json rename to apps/nestjs/test/jest-e2e.json diff --git a/apps/nest-app/tsconfig.build.json b/apps/nestjs/tsconfig.build.json similarity index 100% rename from apps/nest-app/tsconfig.build.json rename to apps/nestjs/tsconfig.build.json diff --git a/apps/nest-app/tsconfig.json b/apps/nestjs/tsconfig.json similarity index 100% rename from apps/nest-app/tsconfig.json rename to apps/nestjs/tsconfig.json diff --git a/eslint.config.js b/eslint.config.js index 926dcc0..d8f787b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -42,13 +42,7 @@ export default config( // Node scripts { - files: [ - 'eslint.config.js', - 'rollup*.config.js', - 'scripts/**', - './*.{js,ts}', - 'packages/*/*.js', - ], + files: ['eslint.config.js', 'rollup*.config.js', 'scripts/**', './*.{js,ts}', 'libs/*/*.js'], languageOptions: { globals: globals.node }, rules: { 'no-restricted-globals': 'off', diff --git a/package.json b/package.json index 75aadbc..5901f13 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "prepare": "husky", "shared": "pnpm -F monorepo-typescript-shared", "core": "pnpm -F monorepo-typescript-core", - "api": "pnpm -F monorepo-typescript-api" + "app-nestjs": "pnpm -F monorepo-typescript-app-nestjs" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7903b85..cbbc5fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,11 +75,14 @@ importers: specifier: ^17.7.2 version: 17.7.2 - apps/nest-app: + apps/nestjs: dependencies: '@coldrun/monorepo-typescript-core': specifier: workspace:* version: link:../../libs/core + '@coldrun/monorepo-typescript-shared': + specifier: workspace:* + version: link:../../libs/shared '@nestjs/common': specifier: ^11.1.10 version: 11.1.10(reflect-metadata@0.2.2)(rxjs@7.8.2) @@ -1036,9 +1039,6 @@ packages: '@jridgewell/source-map@0.3.6': resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} - '@jridgewell/sourcemap-codec@1.5.0': - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} @@ -6464,8 +6464,6 @@ snapshots: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 - '@jridgewell/sourcemap-codec@1.5.0': {} - '@jridgewell/sourcemap-codec@1.5.5': {} '@jridgewell/trace-mapping@0.3.31': @@ -9829,7 +9827,7 @@ snapshots: magic-string@0.30.17: dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 magic-string@0.30.21: dependencies: