|
75 | 75 | "inputs": [{ "dependentTasksOutputFiles": "**/*.ts" }],
|
76 | 76 | "outputs": [
|
77 | 77 | "{projectRoot}/src/cli/api/graphql/admin/generated/**/*.ts",
|
78 |
| - "{projectRoot}/src/cli/api/graphql/business-platform-destinations/generated/**/*.ts" |
| 78 | + "{projectRoot}/src/cli/api/graphql/business-platform-destinations/generated/**/*.ts", |
| 79 | + "{projectRoot}/src/cli/api/graphql/business-platform-organizations/generated/**/*.ts" |
79 | 80 | ],
|
80 | 81 | "options": {
|
81 | 82 | "commands": [
|
82 | 83 | "pnpm eslint 'src/cli/api/graphql/admin/generated/**/*.ts' --fix --rule '@typescript-eslint/ban-ts-comment: off' --rule 'eslint-comments/no-unused-disable: off'",
|
83 |
| - "pnpm eslint 'src/cli/api/graphql/business-platform-destinations/generated/**/*.ts' --fix --rule '@typescript-eslint/ban-ts-comment: off' --rule 'eslint-comments/no-unused-disable: off'" |
84 |
| - ], |
| 84 | + "pnpm eslint 'src/cli/api/graphql/business-platform-destinations/generated/**/*.ts' --fix --rule '@typescript-eslint/ban-ts-comment: off' --rule 'eslint-comments/no-unused-disable: off'", |
| 85 | + "pnpm eslint 'src/cli/api/graphql/business-platform-organizations/generated/**/*.{ts,tsx}' --fix --rule '@typescript-eslint/ban-ts-comment: off' --rule 'eslint-comments/no-unused-disable: off'"], |
85 | 86 | "cwd": "packages/store"
|
86 | 87 | }
|
87 | 88 | },
|
|
107 | 108 | "cwd": "{workspaceRoot}"
|
108 | 109 | }
|
109 | 110 | },
|
| 111 | + "graphql-codegen:generate:business-platform-organizations": { |
| 112 | + "executor": "nx:run-commands", |
| 113 | + "inputs": ["{workspaceRoot}/graphql.config.ts", "{projectRoot}/src/cli/api/graphql/business-platform-organizations/**/*.graphql"], |
| 114 | + "outputs": ["{projectRoot}/src/cli/api/graphql/business-platform-organizations/generated/**/*.ts"], |
| 115 | + "options": { |
| 116 | + "commands": [ |
| 117 | + "pnpm exec graphql-codegen --project=storeBusinessPlatformOrganizations" |
| 118 | + ], |
| 119 | + "cwd": "{workspaceRoot}" |
| 120 | + } |
| 121 | + }, |
110 | 122 | "graphql-codegen:postfix": {
|
111 | 123 | "executor": "nx:run-commands",
|
112 | 124 | "dependsOn": [
|
113 | 125 | "graphql-codegen:generate:admin",
|
114 |
| - "graphql-codegen:generate:business-platform-destinations" |
| 126 | + "graphql-codegen:generate:business-platform-destinations", |
| 127 | + "graphql-codegen:generate:business-platform-organizations" |
115 | 128 | ],
|
116 | 129 | "inputs": [{ "dependentTasksOutputFiles": "**/*.ts" }],
|
117 | 130 | "outputs": [
|
118 | 131 | "{projectRoot}/src/cli/api/graphql/admin/generated/**/*.ts",
|
119 |
| - "{projectRoot}/src/cli/api/graphql/business-platform-destinations/generated/**/*.ts" |
| 132 | + "{projectRoot}/src/cli/api/graphql/business-platform-destinations/generated/**/*.ts", |
| 133 | + "{projectRoot}/src/cli/api/graphql/business-platform-organizations/generated/**/*.ts" |
120 | 134 | ],
|
121 | 135 | "options": {
|
122 | 136 | "commands": [
|
123 | 137 | "find ./packages/store/src/cli/api/graphql/admin/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;",
|
124 |
| - "find ./packages/store/src/cli/api/graphql/business-platform-destinations/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;" |
| 138 | + "find ./packages/store/src/cli/api/graphql/business-platform-destinations/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;", |
| 139 | + "find ./packages/store/src/cli/api/graphql/business-platform-organizations/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;" |
125 | 140 | ],
|
126 | 141 | "cwd": "{workspaceRoot}"
|
127 | 142 | }
|
|
0 commit comments