From b294dcd7663fd115d9d81d4369d6657572719381 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sun, 17 Nov 2024 02:16:35 +0100 Subject: [PATCH 1/2] fix export of latest --- src/index.ts | 2 +- src/reference/latest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 81e7fabe..fd6c8b19 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import v8Spec from './reference/v8.json' with {type: 'json'}; const v8 = v8Spec as any; -import {latest} from './reference/latest'; +import latest from './reference/latest'; import {derefLayers} from './deref'; import {diff} from './diff'; import {ValidationError} from './error/validation_error'; diff --git a/src/reference/latest.ts b/src/reference/latest.ts index e3b39df6..915f130c 100644 --- a/src/reference/latest.ts +++ b/src/reference/latest.ts @@ -1,3 +1,3 @@ import latest from './v8.json' with { type: 'json' }; -export {latest} +export default latest as any From bd3abeaea0734cdcdd4277fa450a7ed980501c34 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sun, 17 Nov 2024 02:19:20 +0100 Subject: [PATCH 2/2] leave named import for rest of repo --- src/reference/latest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reference/latest.ts b/src/reference/latest.ts index 915f130c..3de2d203 100644 --- a/src/reference/latest.ts +++ b/src/reference/latest.ts @@ -1,3 +1,4 @@ import latest from './v8.json' with { type: 'json' }; +export {latest} export default latest as any