Skip to content

Commit

Permalink
fix(protocol): Ensure relative imports have extensions (#1722)
Browse files Browse the repository at this point in the history
It seems that there's a difference between `moduleResolution: "node"` and `"moduleResolution": "node16"` in that you need to always have an extension for `node16` to resolve a relative filepath.

This adds some missing extensions to the relative filepaths in our protocol package to resolve this issue.

Fixes #1720
  • Loading branch information
blaine-arcjet authored Sep 20, 2024
1 parent 3602e9c commit 73928c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
ArcjetSlidingWindowRateLimitRule,
ArcjetShieldRule,
ArcjetSensitiveInfoRule,
} from "./index";
} from "./index.js";
import {
ArcjetAllowDecision,
ArcjetBotReason,
Expand All @@ -31,7 +31,7 @@ import {
ArcjetStack,
ArcjetIpDetails,
ArcjetSensitiveInfoReason,
} from "./index";
} from "./index.js";
import type { IpDetails } from "./proto/decide/v1alpha1/decide_pb.js";
import {
BotV2Reason,
Expand Down

0 comments on commit 73928c8

Please sign in to comment.