From ac98e2572b6ce1566eaf2ada21a73e90d8c4f18f Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Tue, 24 Sep 2024 23:10:40 -0400 Subject: [PATCH] fix(orchestration): Resolve module import issues - add types.js indirection layer to fix ERR_MODULE_NOT_FOUND error. - maintains public API shape for intra-monorepo and npm installs. - refs #10086 --- packages/orchestration/index.js | 3 ++- packages/orchestration/types.d.ts | 1 + packages/orchestration/types.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 packages/orchestration/types.d.ts create mode 100644 packages/orchestration/types.js diff --git a/packages/orchestration/index.js b/packages/orchestration/index.js index af958a142b6..e6981b73d64 100644 --- a/packages/orchestration/index.js +++ b/packages/orchestration/index.js @@ -2,7 +2,8 @@ /// /// -export * from './src/types.js'; +// eslint-disable-next-line import/export +export * from './types.js'; // no named exports export * from './src/exos/cosmos-interchain-service.js'; export * from './src/exos/chain-hub-admin.js'; export * from './src/typeGuards.js'; diff --git a/packages/orchestration/types.d.ts b/packages/orchestration/types.d.ts new file mode 100644 index 00000000000..4c253cec241 --- /dev/null +++ b/packages/orchestration/types.d.ts @@ -0,0 +1 @@ +export * from './src/types.js'; diff --git a/packages/orchestration/types.js b/packages/orchestration/types.js new file mode 100644 index 00000000000..cb0ff5c3b54 --- /dev/null +++ b/packages/orchestration/types.js @@ -0,0 +1 @@ +export {};