Skip to content

Commit 86f0a34

Browse files
authored
fix: NestJS CJS and module (#2003)
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 <william.phetsinorath-open@interieur.gouv.fr>
1 parent 1904fc7 commit 86f0a34

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

packages/hooks/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
"exports": {
1212
".": {
1313
"types": "./types/index.d.ts",
14-
"import": "./dist/index.js"
14+
"default": "./dist/index.js"
1515
}
1616
},
17-
"main": "dist/index.js",
18-
"module": "dist/index.js",
19-
"types": "types/index.d.ts",
2017
"files": [
2118
"dist",
2219
"types"

packages/hooks/src/hooks/hook-project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PluginApi } from '@/utils/utils.js'
1+
import type { PluginApi } from '../utils/utils.js'
22
import type { Hook } from './hook.js'
33
import { createHook } from './hook.js'
44
import type { ClusterObject, ExternalRepoUrl, InternalRepoName, IsInfra, IsPrivate, UserObject } from './index.js'

packages/hooks/src/utils/plugin-result-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PluginResult, PluginResultStore, PluginResultStoreValue } from '@/hooks/hook.js'
1+
import type { PluginResult, PluginResultStore, PluginResultStoreValue } from '../hooks/hook.js'
22
import { parseError } from './logger.js'
33

44
export class PluginResultBuilder {

packages/shared/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
"exports": {
1212
".": {
1313
"types": "./types/index.d.ts",
14-
"import": "./dist/index.js"
14+
"default": "./dist/index.js"
1515
}
1616
},
17-
"main": "dist/index.js",
18-
"module": "dist/index.js",
19-
"types": "types/index.d.ts",
2017
"files": [
2118
"dist",
2219
"types"

0 commit comments

Comments
 (0)