From aa869114d976b09ee25fc72e0f324af2d0db53d5 Mon Sep 17 00:00:00 2001 From: William Phetsinorath Date: Mon, 16 Mar 2026 18:02:00 +0100 Subject: [PATCH] fix: NestJS CJS and module Tsconfig alias break NestJS build because it doesn't care about the dist, it looks at the TypeScript sources directly. Signed-off-by: William Phetsinorath *** Signed-off-by: William Phetsinorath --- packages/hooks/package.json | 5 +---- packages/hooks/src/hooks/hook-project.ts | 2 +- packages/hooks/src/utils/plugin-result-handler.ts | 2 +- packages/shared/package.json | 5 +---- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/hooks/package.json b/packages/hooks/package.json index aabc7763d..d90187ac0 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -11,12 +11,9 @@ "exports": { ".": { "types": "./types/index.d.ts", - "import": "./dist/index.js" + "default": "./dist/index.js" } }, - "main": "dist/index.js", - "module": "dist/index.js", - "types": "types/index.d.ts", "files": [ "dist", "types" diff --git a/packages/hooks/src/hooks/hook-project.ts b/packages/hooks/src/hooks/hook-project.ts index 9f92098dc..c74177569 100644 --- a/packages/hooks/src/hooks/hook-project.ts +++ b/packages/hooks/src/hooks/hook-project.ts @@ -1,4 +1,4 @@ -import type { PluginApi } from '@/utils/utils.js' +import type { PluginApi } from '../utils/utils.js' import type { Hook } from './hook.js' import { createHook } from './hook.js' import type { ClusterObject, ExternalRepoUrl, InternalRepoName, IsInfra, IsPrivate, UserObject } from './index.js' diff --git a/packages/hooks/src/utils/plugin-result-handler.ts b/packages/hooks/src/utils/plugin-result-handler.ts index eb4a7c3d9..c9f74889d 100644 --- a/packages/hooks/src/utils/plugin-result-handler.ts +++ b/packages/hooks/src/utils/plugin-result-handler.ts @@ -1,4 +1,4 @@ -import type { PluginResult, PluginResultStore, PluginResultStoreValue } from '@/hooks/hook.js' +import type { PluginResult, PluginResultStore, PluginResultStoreValue } from '../hooks/hook.js' import { parseError } from './logger.js' export class PluginResultBuilder { diff --git a/packages/shared/package.json b/packages/shared/package.json index 703a35a24..509d6a534 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -11,12 +11,9 @@ "exports": { ".": { "types": "./types/index.d.ts", - "import": "./dist/index.js" + "default": "./dist/index.js" } }, - "main": "dist/index.js", - "module": "dist/index.js", - "types": "types/index.d.ts", "files": [ "dist", "types"