Skip to content

Commit f44969f

Browse files
committed
fix: shared package for nodenext module resolution
Running tests using vitest in the server-nestjs package seems to break module resolution because of nodenext module resolution. ``` Error: Failed to resolve entry for package "@cpn-console/shared". The package may have incorrect main/module/exports specified in its package.json. ``` Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
1 parent 5f023f1 commit f44969f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/hooks/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"type": "git",
99
"url": "https://github.com/cloud-pi-native/console"
1010
},
11+
"exports": {
12+
".": {
13+
"types": "./types/index.d.ts",
14+
"import": "./dist/index.js"
15+
}
16+
},
1117
"main": "dist/index.js",
1218
"module": "dist/index.js",
1319
"types": "types/index.d.ts",

packages/shared/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"type": "git",
99
"url": "https://github.com/cloud-pi-native/console"
1010
},
11+
"exports": {
12+
".": {
13+
"types": "./types/index.d.ts",
14+
"import": "./dist/index.js"
15+
}
16+
},
1117
"main": "dist/index.js",
1218
"module": "dist/index.js",
1319
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)