We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 376a0c5 commit d2ceb82Copy full SHA for d2ceb82
.changeset/ninety-cars-peel.md
@@ -0,0 +1,5 @@
1
+---
2
+"trigger.dev": patch
3
4
+
5
+Fix issue where a typescript file with only types causes indexing to fail
packages/cli-v3/src/indexing/registerTasks.ts
@@ -62,6 +62,10 @@ async function tryImport(path: string): Promise<Result<any>> {
62
function getExportNames(module: any) {
63
const exports: string[] = [];
64
65
+ if (!module) {
66
+ return exports;
67
+ }
68
69
const exportKeys = Object.keys(module);
70
71
if (exportKeys.length === 0) {
0 commit comments