|
173 | 173 | "entry": ["src/index.ts", "src/runtime.ts", "scripts/*.ts"] |
174 | 174 | }, |
175 | 175 | "packages/sim-setup": { "includeEntryExports": false }, |
176 | | - // The SDK's main entry is `core.d.ts`, the authoring surface workflow files outside this |
177 | | - // monorepo import (the CLI writes it next to them as `CORE_DTS`), so no workspace imports its |
178 | | - // exports. `test/examples`, `test/negative` and `test/core` are type-check fixtures whose |
| 176 | + // Entry exports stay checked, so a `./codegen` export nothing in the monorepo imports fails. |
| 177 | + // Exempt: `core.d.ts` and `workspace/*.d.ts`, the authoring surface workflow files outside |
| 178 | + // this monorepo import (the CLI writes them next to those files as `CORE_DTS` and |
| 179 | + // `WORKSPACE_SDK_DTS`), so no workspace imports them. `test/examples`, `test/negative` and `test/core` are type-check fixtures whose |
179 | 180 | // default export is the workflow: nothing imports them, because `test/typecheck-project.ts` |
180 | 181 | // globs them into a tsconfig that a test runs tsgo against. `cookbook/examples/*.ts` are |
181 | 182 | // the examples the CLI writes as text (`COOKBOOK_EXAMPLES`), type-checked by apps/sim's real-catalog test; |
182 | 183 | // `cookbook/workspace/**` is the example workspace directory it writes as `WORKSPACE_COOKBOOK` |
183 | 184 | // (its `tools/*.js` is custom tool code, which runs in a sandbox, not as a module). |
184 | 185 | "packages/workflow-sdk": { |
185 | | - "includeEntryExports": false, |
186 | 186 | "entry": [ |
187 | | - "src/runtime.ts", |
188 | | - "src/codegen/index.ts", |
189 | 187 | "scripts/*.ts", |
190 | 188 | "cookbook/examples/*.ts", |
191 | 189 | "cookbook/workspace/**/*.{ts,js}", |
192 | 190 | "test/core/*.ts", |
193 | 191 | "test/examples/*.ts", |
194 | 192 | "test/negative/*.ts" |
195 | | - ] |
| 193 | + ], |
| 194 | + "ignoreIssues": { |
| 195 | + "src/core.d.ts": ["exports", "types"], |
| 196 | + "src/workspace/*.d.ts": ["exports", "types"], |
| 197 | + "cookbook/**": ["exports"], |
| 198 | + "test/{core,examples,negative}/*.ts": ["exports"] |
| 199 | + } |
196 | 200 | }, |
197 | 201 | // This shared config is consumed by apps that own the Next dependency. |
198 | 202 | "packages/tsconfig": { "ignoreUnresolved": ["next"] } |
|
0 commit comments