Hi @thedavid and @peterp - thanks for checking in and the fix.
Unfortunately this looks like a partial fix, it now generates the js files but the imports in the generated graphql.js looks incorrect. The build still fails trying to import services in ts. In my case its github.ts
Netlify build log snippet
12:33:21 PM: Error message
12:33:21 PM: Error: In file "/opt/build/repo/api/dist/functions/graphql.js": Cannot find module './../services/github/github.ts' from '/opt/build/repo/api/dist/functions'
Snippet from generated graphql.js
.
.
var _servicesGithubGithubTs = _interopRequireWildcard(require("./../services/github/github.ts"));
var _servicesGithubTypesTs = _interopRequireWildcard(require("./../services/github/types.ts"));
.
.
Its probably the importAll.macro
that doesn’t know how to handle ts. I tried modifying it a bit - but it looks like its depracated anyway. Maybe I should import services differently? An example would be really helpful (without needing to import each service by hand ideally!)