From c68918f2f0b7140eca0a863d7aea36123f20e654 Mon Sep 17 00:00:00 2001 From: Lukas Bableck Date: Wed, 8 Jul 2026 19:53:49 +0200 Subject: [PATCH] Switch to Node16 moduleResolution --- src/client.ts | 4 ++-- src/index.ts | 6 +++--- tsconfig.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client.ts b/src/client.ts index f1c4183..e8d62ad 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,4 +1,4 @@ -import {Versions} from './types'; +import {Versions} from './types.js'; import type { Autoprimary, CacheFlushResult, @@ -23,7 +23,7 @@ import type { ZoneSummary, ZoneCreateRequest, ZoneUpdateRequest -} from './types'; +} from './types.js'; const encodePathSegment = (value: string | number) => encodeURIComponent(String(value)); const stringify = (value: { [key: string]: unknown } = {}) => { diff --git a/src/index.ts b/src/index.ts index f443f3e..4ba8a81 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ -export { Client } from './client'; -export * from './types'; +export { Client } from './client.js'; +export * from './types.js'; -import {Client} from './client'; +import {Client} from './client.js'; export default Client; diff --git a/tsconfig.json b/tsconfig.json index 8c87f8c..5106498 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "ES2020", - "module": "ESNext", - "moduleResolution": "Node", + "module": "Node16", + "moduleResolution": "Node16", "lib": [ "ES2020", "ES2021.String",