Commit 6c6a7c9
Merged PR 833106: fixed powerbi-clients.d.ts file generation
2 issues in generated d.ts file:
1. module names contains "src/" prefix - this breaks package consumers - "import x from powerbi-client" will fail with invalid modules names.
2. tests typings are included in d.ts file
Caused by: https://dev.azure.com/powerbi/Embedded/_git/powerbi-javascript/commit/ad7bf5aadbee40c752f01cb8535357c5ce854512?refName=refs/heads/master&path=/tsconfig.json&_a=contents
This change will not effect tests execution
----
#### AI description (iteration 1)
#### PR Classification
This pull request fixes a bug in the generation of the Power BI TypeScript declarations by cleaning up extra test module declarations and correcting module path names.
#### PR Summary
The changes update the generated `powerbi-client.d.ts` file by removing unnecessary test-related module declarations and standardizing module paths (removing the redundant `src/` prefix). Additionally, the tsconfig update excludes test files from the build to ensure only production code is generated.
- In `dist/powerbi-client.d.ts`, test modules (e.g., mocks and utilities) were removed and module paths were updated.
- Several modules (e.g., `FilterBuilders/index`, `powerbi-client`, `report`, `visual`) now use adjusted paths without the `src/` prefix.
- The `tsconfig.json` file was modified to exclude test directories from the compilation output.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Related work items: #18750161 parent 29fb78b commit 6c6a7c9
9 files changed
Lines changed: 107 additions & 261 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 91 | | |
97 | 92 | | |
98 | 93 | | |
| |||
109 | 104 | | |
110 | 105 | | |
111 | 106 | | |
112 | | - | |
113 | | - | |
114 | 107 | | |
115 | 108 | | |
116 | 109 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7505 | 7505 | | |
7506 | 7506 | | |
7507 | 7507 | | |
7508 | | - | |
| 7508 | + | |
7509 | 7509 | | |
7510 | 7510 | | |
7511 | 7511 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments