Skip to content

Conversation

@mikeallisonJS
Copy link
Collaborator

@mikeallisonJS mikeallisonJS commented Jan 22, 2026

Summary by CodeRabbit

  • Chores
    • Set workspace package manager to pnpm and added npm configuration enabling hoisting.
    • Broadened .gitignore for node_modules to apply across the repo.
    • Added a new internal service package and updated the typings generation to target it.
    • Removed several framework-related dependencies from the root manifest.

✏️ Tip: You can customize this high-level summary in your review settings.

- Adjusted .gitignore to correctly include node_modules.
- Updated nx.json to specify pnpm as the package manager.
- Removed deprecated NestJS dependencies from package.json.
- Updated pnpm-lock.yaml to reflect changes in dependencies.
- Added new packages to pnpm-workspace.yaml.
- Refactored TypeScript paths in tsconfig.base.json for better module resolution.
- Updated project.json paths in api-journeys for TranslationModule.
- Removed unused NestJS common library and its related files.
- Refactored imports in various files to align with the new structure.
- Updated various dependencies in `package.json` for `@nestjs` packages and others to their latest versions.
- Removed the unused webpack IgnorePlugin configuration from `webpack.config.js` as it was no longer necessary.
@mikeallisonJS mikeallisonJS self-assigned this Jan 22, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

Walkthrough

Updates repository workspace config and the api-journeys service: broadens .gitignore node_modules rule, adds .npmrc, sets pnpm in nx.json, removes several NestJS deps from root package.json, adds apis/api-journeys/package.json, adjusts watcher path, and hardcodes generate-typings paths for api-journeys.

Changes

Cohort / File(s) Summary
Workspace configuration
/.gitignore, /.npmrc, /nx.json, /package.json
.gitignore changed node_modules ignore from /node_modules to node_modules; added .npmrc with shamefully-hoist=true; set packageManager: "pnpm" in nx.json; removed multiple NestJS and adal-node deps from root package.json.
API Journeys package
apis/api-journeys/package.json
Added new package.json for @core/api-journeys listing dependencies (Express, NestJS packages, class-transformer, class-validator, firebase-admin, etc.).
API Journeys project config & script
apis/api-journeys/project.json, apis/api-journeys/scripts/generate-typings.ts
Updated watcher target path to apis/api-journeys/scripts/generate-typings.ts; changed generate-typings.ts to use fixed source (apis/api-journeys/src/app/**/*.graphql) and output (apis/api-journeys/src/app/__generated__/graphql.ts) paths instead of dynamic argv-based paths.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • tanflem
  • Kneesal
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'refactor: api journeys workspace' directly summarizes the main changes: restructuring of the api-journeys workspace with configuration updates and file relocations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 00-00-MA-feat-api-journeys-workspace

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Jan 22, 2026

View your CI Pipeline Execution ↗ for commit 5502002

Command Status Duration Result
nx run journeys-e2e:e2e ✅ Succeeded 1m 25s View ↗
nx run journeys-admin-e2e:e2e ✅ Succeeded 35s View ↗
nx run watch-e2e:e2e ✅ Succeeded 28s View ↗
nx run resources-e2e:e2e ✅ Succeeded 27s View ↗
nx run docs-e2e:e2e ✅ Succeeded 3s View ↗
nx run videos-admin-e2e:e2e ✅ Succeeded 4s View ↗
nx run watch-modern-e2e:e2e ✅ Succeeded 3s View ↗
nx run short-links-e2e:e2e ✅ Succeeded 3s View ↗
Additional runs (28) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-01-23 01:56:41 UTC

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Warnings
⚠️ ❗ Big PR (670 changes)

(change count - 670): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by 🚫 dangerJS against 5502002

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apis/api-journeys/tsconfig.json`:
- Around line 10-13: The path aliases in apis/api-journeys/tsconfig.json for
"@core/nest/common/*", "@core/nest/decorators/*", "@core/nest/gqlAuthGuard/*",
and "@core/nest/powerBi/*" incorrectly use "./libs/..." (resolving inside
apis/api-journeys); change each mapping to point at the repo-root libs by
replacing "./libs/..." with "../../libs/..." so they resolve to
"../../libs/nest/<package>/src/lib/*" (update all four alias entries
accordingly).

@github-actions github-actions bot temporarily deployed to Preview - watch-modern January 22, 2026 23:09 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin January 22, 2026 23:09 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin January 22, 2026 23:09 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources January 22, 2026 23:10 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links January 22, 2026 23:10 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys January 22, 2026 23:10 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
docs ✅ Ready docs preview Fri Jan 23 14:51:57 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch-modern ✅ Ready watch-modern preview Fri Jan 23 14:51:47 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
player ✅ Ready player preview Fri Jan 23 14:52:36 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Fri Jan 23 14:51:59 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
short-links ✅ Ready short-links preview Fri Jan 23 14:52:51 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Fri Jan 23 14:52:08 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
resources ✅ Ready resources preview Fri Jan 23 14:52:14 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready journeys-admin preview Fri Jan 23 14:52:09 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Fri Jan 23 14:52:17 NZDT 2026

@github-actions github-actions bot temporarily deployed to Preview - journeys January 22, 2026 23:26 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin January 22, 2026 23:26 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links January 22, 2026 23:26 Inactive
@stage-branch-merger
Copy link

I see you added the "on stage" label, I'll get this merged to the stage branch!

@mikeallisonJS mikeallisonJS requested a review from tanflem January 23, 2026 00:54
- Updated the command in project.json to point to the new location of the generate-typings script.
- Deleted the outdated generate-typings.ts script as it is no longer needed.
@github-actions github-actions bot temporarily deployed to Preview - resources January 23, 2026 01:46 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys January 23, 2026 01:46 Inactive
@github-actions github-actions bot temporarily deployed to Preview - watch-modern January 23, 2026 01:46 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin January 23, 2026 01:46 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links January 23, 2026 01:46 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin January 23, 2026 01:46 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys January 23, 2026 01:50 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links January 23, 2026 01:50 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources January 23, 2026 01:50 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin January 23, 2026 01:50 Inactive
@github-actions github-actions bot temporarily deployed to Preview - watch-modern January 23, 2026 01:50 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin January 23, 2026 01:50 Inactive
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apis/api-journeys/scripts/generate-typings.ts`:
- Around line 8-12: The typePaths/path entries currently build locations with
process.cwd() which makes the script sensitive to the working directory; change
them to resolve relative to the script file (use __dirname or path.resolve with
join from the script directory) so typePaths and the output path (the variables
referenced as typePaths and path in this file) point to 'src/app/**/*.graphql'
and 'src/app/__generated__/graphql.ts' relative to the script location rather
than process.cwd(); update any uses of join(process.cwd(), ...) to
join(__dirname, ...) or path.resolve(__dirname, '..', 'src', ...) accordingly so
the script runs correctly from any working directory.

Comment on lines +8 to 12
typePaths: [join(process.cwd(), 'apis/api-journeys/src/app/**/*.graphql')],
path: join(
process.cwd(),
`apis/${process.argv[2]}/src/app/__generated__/graphql.ts`
'apis/api-journeys/src/app/__generated__/graphql.ts'
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Avoid process.cwd()-dependent paths.

If this script is run from apis/api-journeys/, the current process.cwd() usage will double the path (e.g., apis/api-journeys/apis/api-journeys/...). Resolve paths relative to the script instead to make execution location-agnostic.

🔧 Suggested adjustment
-import { join } from 'path'
+import { join, resolve } from 'path'

 const definitionsFactory = new GraphQLFederationDefinitionsFactory()
+const apiJourneysRoot = resolve(__dirname, '..')

 definitionsFactory
   .generate({
-    typePaths: [join(process.cwd(), 'apis/api-journeys/src/app/**/*.graphql')],
+    typePaths: [join(apiJourneysRoot, 'src/app/**/*.graphql')],
     path: join(
-      process.cwd(),
-      'apis/api-journeys/src/app/__generated__/graphql.ts'
+      apiJourneysRoot,
+      'src/app/__generated__/graphql.ts'
     ),
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
typePaths: [join(process.cwd(), 'apis/api-journeys/src/app/**/*.graphql')],
path: join(
process.cwd(),
`apis/${process.argv[2]}/src/app/__generated__/graphql.ts`
'apis/api-journeys/src/app/__generated__/graphql.ts'
),
import { join, resolve } from 'path'
const definitionsFactory = new GraphQLFederationDefinitionsFactory()
const apiJourneysRoot = resolve(__dirname, '..')
definitionsFactory
.generate({
typePaths: [join(apiJourneysRoot, 'src/app/**/*.graphql')],
path: join(
apiJourneysRoot,
'src/app/__generated__/graphql.ts'
),
🤖 Prompt for AI Agents
In `@apis/api-journeys/scripts/generate-typings.ts` around lines 8 - 12, The
typePaths/path entries currently build locations with process.cwd() which makes
the script sensitive to the working directory; change them to resolve relative
to the script file (use __dirname or path.resolve with join from the script
directory) so typePaths and the output path (the variables referenced as
typePaths and path in this file) point to 'src/app/**/*.graphql' and
'src/app/__generated__/graphql.ts' relative to the script location rather than
process.cwd(); update any uses of join(process.cwd(), ...) to join(__dirname,
...) or path.resolve(__dirname, '..', 'src', ...) accordingly so the script runs
correctly from any working directory.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What packages do we need to use this for? If it's only a few we should probably use public hoist pattern.
public-hoist-pattern[]=eslint
public-hoist-pattern[]=@types/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants