-
Notifications
You must be signed in to change notification settings - Fork 14
refactor: api journeys workspace #8630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
09bef67
68ee902
5f80459
79f970d
51e202f
0f5d3ab
2c50dd8
5502002
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ | |
| /out-tsc | ||
|
|
||
| # dependencies | ||
| /node_modules | ||
| node_modules | ||
|
|
||
| # IDEs and editors | ||
| /.idea | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| shamefully-hoist=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "name": "@core/api-journeys", | ||
| "version": "0.0.0", | ||
| "private": true, | ||
| "dependencies": { | ||
| "express": "5.0.1", | ||
| "@nestjs/apollo": "13.0.4", | ||
| "@nestjs/bullmq": "11.0.3", | ||
| "@nestjs/cache-manager": "3.0.1", | ||
| "@nestjs/common": "11.0.16", | ||
| "@nestjs/core": "11.0.12", | ||
| "@nestjs/graphql": "13.0.4", | ||
| "@nestjs/platform-express": "11.0.12", | ||
| "class-transformer": "0.5.1", | ||
| "class-validator": "0.14.1", | ||
| "file-type": "^20.4.1", | ||
| "nestjs-ddtrace": "6.0.0", | ||
| "nestjs-pino": "4.4.0", | ||
| "adal-node": "0.2.4", | ||
| "@casl/ability": "6.7.3", | ||
| "@casl/prisma": "1.5.2", | ||
| "firebase-admin": "11.11.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@nestjs/schematics": "11.0.5", | ||
| "@nestjs/testing": "11.0.12" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,15 +1,14 @@ | ||||||||||||||||||||||||||||||||||||||
| import { join } from 'path' | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| import { GraphQLFederationDefinitionsFactory } from '@nestjs/graphql' | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| const definitionsFactory = new GraphQLFederationDefinitionsFactory() | ||||||||||||||||||||||||||||||||||||||
| definitionsFactory | ||||||||||||||||||||||||||||||||||||||
| .generate({ | ||||||||||||||||||||||||||||||||||||||
| typePaths: [ | ||||||||||||||||||||||||||||||||||||||
| join(process.cwd(), `apis/${process.argv[2]}/src/app/**/*.graphql`) | ||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||
| 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' | ||||||||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+8
to
12
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid If this script is run from 🔧 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
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| outputAs: 'class', | ||||||||||||||||||||||||||||||||||||||
| watch: true, | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,5 +121,6 @@ | |
| ], | ||
| "tui": { | ||
| "enabled": false | ||
| } | ||
| }, | ||
| "packageManager": "pnpm" | ||
| } | ||
Large diffs are not rendered by default.
There was a problem hiding this comment.
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/*