Skip to content

Commit 76d7c63

Browse files
Olfa MaslahOlfa Maslah
authored andcommitted
build(chat-widget): emit declarations during package build
1 parent 3635da3 commit 76d7c63

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/frontend/chat-widget/project.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@
1414
"targets": {
1515
"build": {
1616
"executor": "@nx/vite:build",
17+
"dependsOn": ["generate-types"],
1718
"outputs": ["{options.outputPath}"],
1819
"options": {
1920
"outputPath": "dist/chat-widget"
2021
}
2122
},
23+
"generate-types": {
24+
"executor": "nx:run-commands",
25+
"options": {
26+
"command": "npx tsc -p chat-widget/tsconfig.lib.json --emitDeclarationOnly",
27+
"cwd": "src/frontend"
28+
}
29+
},
2230
"nx-release-publish": {
2331
"options": {
2432
"packageRoot": "dist/{projectRoot}"

src/frontend/chat-widget/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"module": "esnext",
66
"lib": ["ES2020", "DOM"],
77
"declaration": true,
8-
"declarationMap": true
8+
"declarationMap": true,
9+
"composite": true,
10+
"noEmit": false
911
},
1012
"files": [],
1113
"include": [],

0 commit comments

Comments
 (0)