@open-pioneer/vite-plugin-pioneer 7.1.0-dev.20261026104943 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,28 +1,30 @@
1
1
  # Changelog @open-pioneer/vite-plugin-pioneer
2
2
 
3
- ## 7.1.0-dev.20261026104943
3
+ ## 7.1.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - 5b85124: Add the virtual module `open-pioneer:test-support` for tests of Trails packages.
8
8
 
9
- The module exports `testMessages`, the i18n messages of the importing package and of all its dependencies.
10
- The record can be passed to the `messages` property of `PackageContextProvider` from `@open-pioneer/test-utils/react`.
11
- It also exports `testMessagesLocale`, the locale of these messages.
12
- Both properties can be helpful when implementing browser tests for React components based on Trails.
9
+ The module exports `messages`, the i18n messages of the importing package and of all its dependencies.
10
+ The record can be passed to the `messages` property of `PackageContextProvider` from `@open-pioneer/test-utils/react`.
11
+ It also exports `messageLocale`, the locale of these messages.
12
+ Both properties can be helpful when implementing browser tests for React components based on Trails.
13
13
 
14
- Messages are returned in the first locale of the package's `i18n` array in `build.config.mjs` by default.
15
- A different locale can be requested with a query, for example `open-pioneer:test-support?locale=de`.
14
+ Messages are returned in the first locale of the package's `i18n` array in `build.config.mjs` by default.
15
+ A different locale can be requested with a query, for example `open-pioneer:test-support?locale=de`.
16
16
 
17
- The module can only be imported from tests.
18
- `vite dev` and `vite build` fail with an error when they encounter the import.
17
+ The module can only be imported from tests.
18
+ `vite dev` and `vite build` fail with an error when they encounter the import.
19
19
 
20
20
  ### Patch Changes
21
21
 
22
+ - 4e657f0: Update dependencies
22
23
  - 2aa6424: Fix virtual modules such as `open-pioneer:source-info` failing on the second Vitest run when `fsModuleCache` is enabled (default since Vitest 5.0.4).
23
24
  The plugin should now resolve the root-relative module ids requested by the warm cache correctly.
25
+ - Updated dependencies [4e657f0]
24
26
  - Updated dependencies [5b85124]
25
- - @open-pioneer/build-common@5.1.0-dev.20261026104943
27
+ - @open-pioneer/build-common@5.1.0
26
28
 
27
29
  ## 7.0.1
28
30
 
@@ -31,7 +33,7 @@
31
33
  - 9e63026: Replace the `@babel/*` dependencies used for code generation with `esrap`.
32
34
  - 4337957: Update dependencies
33
35
  - Updated dependencies [4337957]
34
- - @open-pioneer/build-common@5.0.1
36
+ - @open-pioneer/build-common@5.0.1
35
37
 
36
38
  ## 7.0.0
37
39
 
@@ -45,7 +47,7 @@
45
47
  - Updated dependencies [8e38b33]
46
48
  - Updated dependencies [8e38b33]
47
49
  - Updated dependencies [8e38b33]
48
- - @open-pioneer/build-common@5.0.0
50
+ - @open-pioneer/build-common@5.0.0
49
51
 
50
52
  ## 6.0.3
51
53
 
@@ -53,7 +55,7 @@
53
55
 
54
56
  - 3b1f9cf: Migrate from eslint to oxlint and from prettier to oxfmt
55
57
  - Updated dependencies [3b1f9cf]
56
- - @open-pioneer/build-common@4.0.3
58
+ - @open-pioneer/build-common@4.0.3
57
59
 
58
60
  ## 6.0.2
59
61
 
@@ -63,7 +65,7 @@
63
65
  - 82b4559: Fix parsing of `qualifier` for services defined by dependencies in `node_modules`.
64
66
  - Updated dependencies [1a78924]
65
67
  - Updated dependencies [82b4559]
66
- - @open-pioneer/build-common@4.0.2
68
+ - @open-pioneer/build-common@4.0.2
67
69
 
68
70
  ## 6.0.1
69
71
 
@@ -72,7 +74,7 @@
72
74
  - 78e38e2: Bump various dependencies
73
75
  - 7d706a3: Refactor: use private javascript properties instead of typescript private keyword
74
76
  - Updated dependencies [78e38e2]
75
- - @open-pioneer/build-common@4.0.1
77
+ - @open-pioneer/build-common@4.0.1
76
78
 
77
79
  ## 6.0.0
78
80
 
@@ -84,14 +86,14 @@
84
86
 
85
87
  - 9dda91c: Support a new virtual module to get the current deployment's base URL both during development and production:
86
88
 
87
- ```ts
88
- import { baseUrl } from "open-pioneer:deployment";
89
+ ```ts
90
+ import { baseUrl } from "open-pioneer:deployment";
89
91
 
90
- // Base URL of the deployed application, for example:
91
- // - http://localhost:5173/ or http://localhost:5173/optional/path/ (during development)
92
- // - https://example.com/path/to/root/ (during production)
93
- console.log(baseUrl);
94
- ```
92
+ // Base URL of the deployed application, for example:
93
+ // - http://localhost:5173/ or http://localhost:5173/optional/path/ (during development)
94
+ // - https://example.com/path/to/root/ (during production)
95
+ console.log(baseUrl);
96
+ ```
95
97
 
96
98
  - 18c9d75: Add codegen support for hot reloading of i18n message during development.
97
99
  HMR of i18n messages requires the latest version of the runtime package.
@@ -105,7 +107,7 @@
105
107
  - Updated dependencies [9dda91c]
106
108
  - Updated dependencies [9dda91c]
107
109
  - Updated dependencies [9dda91c]
108
- - @open-pioneer/build-common@4.0.0
110
+ - @open-pioneer/build-common@4.0.0
109
111
 
110
112
  ## 5.1.2
111
113
 
@@ -113,7 +115,7 @@
113
115
 
114
116
  - 50ddcbd: Fix default package property values not being applied correctly when using a trails package from node modules.
115
117
  - Updated dependencies [50ddcbd]
116
- - @open-pioneer/build-common@3.2.2
118
+ - @open-pioneer/build-common@3.2.2
117
119
 
118
120
  ## 5.1.1
119
121
 
@@ -122,7 +124,7 @@
122
124
  - fa84b0e: Bump dependencies
123
125
  - 093ae42: Prevent detection of duplicated packages on windows
124
126
  - Updated dependencies [fa84b0e]
125
- - @open-pioneer/build-common@3.2.1
127
+ - @open-pioneer/build-common@3.2.1
126
128
 
127
129
  ## 5.1.0
128
130
 
@@ -130,27 +132,27 @@
130
132
 
131
133
  - eac3ef4: Add service modules of trails packages from `node_modules` to the modules optimized by vite's deps optimizer.
132
134
 
133
- This can reduce the number of events like this:
135
+ This can reduce the number of events like this:
134
136
 
135
- ```
136
- 5:14:21 PM [vite] (client) ✨ new dependencies optimized: <...>
137
- 5:14:21 PM [vite] (client) ✨ optimized dependencies changed. reloading
138
- ```
137
+ ```
138
+ 5:14:21 PM [vite] (client) ✨ new dependencies optimized: <...>
139
+ 5:14:21 PM [vite] (client) ✨ optimized dependencies changed. reloading
140
+ ```
139
141
 
140
142
  - 19aa36f: Implement sourceId helper which provides an easy way to obtain an id for the current source file:
141
143
 
142
- ```ts
143
- import { sourceId } from "open-pioneer:source-info";
144
+ ```ts
145
+ import { sourceId } from "open-pioneer:source-info";
144
146
 
145
- // If imported from foo/bar/baz.ts in package my-package: my-package/foo/bar/baz
146
- console.log(sourceId);
147
- ```
147
+ // If imported from foo/bar/baz.ts in package my-package: my-package/foo/bar/baz
148
+ console.log(sourceId);
149
+ ```
148
150
 
149
151
  ### Patch Changes
150
152
 
151
153
  - eac3ef4: Switch from fast-glob to tinyglobby (it has fewer dependencies).
152
154
  - Updated dependencies [19aa36f]
153
- - @open-pioneer/build-common@3.2.0
155
+ - @open-pioneer/build-common@3.2.0
154
156
 
155
157
  ## 5.0.3
156
158
 
@@ -158,7 +160,7 @@
158
160
 
159
161
  - 2c45a18: Bump dependencies
160
162
  - Updated dependencies [2c45a18]
161
- - @open-pioneer/build-common@3.1.2
163
+ - @open-pioneer/build-common@3.1.2
162
164
 
163
165
  ## 5.0.2
164
166
 
@@ -167,7 +169,7 @@
167
169
  - fe37e18: Remove obsolete eslint directive from typings.
168
170
  - f229f63: Bump dependencies
169
171
  - Updated dependencies [f229f63]
170
- - @open-pioneer/build-common@3.1.1
172
+ - @open-pioneer/build-common@3.1.1
171
173
 
172
174
  ## 5.0.1
173
175
 
@@ -176,17 +178,17 @@
176
178
  - 1b99d82: Update eslint to version 9.
177
179
  - f12e73f: Emit better errors when an application's i18n configuration does not match the supported locales of its dependencies.
178
180
 
179
- This can happen if:
181
+ This can happen if:
180
182
 
181
- - An application does not list the `i18n` option in its `build.config.mjs` at all, or if
182
- - there is no overlap between the application's locales and the locales supported by one of its dependencies.
183
+ - An application does not list the `i18n` option in its `build.config.mjs` at all, or if
184
+ - there is no overlap between the application's locales and the locales supported by one of its dependencies.
183
185
 
184
- The vite plugin will now throw errors such as this to make it easier to detect the issue:
186
+ The vite plugin will now throw errors such as this to make it easier to detect the issue:
185
187
 
186
- ```
187
- [plugin:pioneer:codegen] Invalid i18n configuration in application at <...>/src/samples/chakra-sample/chakra-app:
188
- There is no match between the locales supported by the application (none) and the locales supported by the packages '@open-pioneer/chakra-snippets' (de, en).
189
- ```
188
+ ```
189
+ [plugin:pioneer:codegen] Invalid i18n configuration in application at <...>/src/samples/chakra-sample/chakra-app:
190
+ There is no match between the locales supported by the application (none) and the locales supported by the packages '@open-pioneer/chakra-snippets' (de, en).
191
+ ```
190
192
 
191
193
  ## 5.0.0
192
194
 
@@ -204,7 +206,7 @@
204
206
  - 6dc999e: Refactor caching of package.json, build.config.mjs and i18n files. Manual caching code was removed.
205
207
  - Updated dependencies [340c415]
206
208
  - Updated dependencies [ba600ea]
207
- - @open-pioneer/build-common@3.1.0
209
+ - @open-pioneer/build-common@3.1.0
208
210
 
209
211
  ## 4.0.2
210
212
 
@@ -212,7 +214,7 @@
212
214
 
213
215
  - 26cb9d8: Bump dependencies
214
216
  - Updated dependencies [26cb9d8]
215
- - @open-pioneer/build-common@3.0.2
217
+ - @open-pioneer/build-common@3.0.2
216
218
 
217
219
  ## 4.0.1
218
220
 
@@ -223,7 +225,7 @@
223
225
  - 67ba039: Bump dependencies
224
226
  - Updated dependencies [23c031a]
225
227
  - Updated dependencies [67ba039]
226
- - @open-pioneer/build-common@3.0.1
228
+ - @open-pioneer/build-common@3.0.1
227
229
 
228
230
  ## 4.0.0
229
231
 
@@ -240,7 +242,7 @@
240
242
 
241
243
  - Updated dependencies [798ef0b]
242
244
  - Updated dependencies [798ef0b]
243
- - @open-pioneer/build-common@3.0.0
245
+ - @open-pioneer/build-common@3.0.0
244
246
 
245
247
  ## 3.0.5
246
248
 
@@ -250,7 +252,7 @@
250
252
  - 7668cd9: Update dependencies.
251
253
  - Updated dependencies [2526935]
252
254
  - Updated dependencies [7668cd9]
253
- - @open-pioneer/build-common@2.0.5
255
+ - @open-pioneer/build-common@2.0.5
254
256
 
255
257
  ## 3.0.4
256
258
 
@@ -258,11 +260,11 @@
258
260
 
259
261
  - 1b84a49: Fix a problem that may produce dev server errors on newer versions of vite:
260
262
 
261
- ```
262
- 11:11:21 AM [vite] Internal server error: Failed to resolve services entry point for package $DIR/src/samples/showcase/showcase-app
263
+ ```
264
+ 11:11:21 AM [vite] Internal server error: Failed to resolve services entry point for package $DIR/src/samples/showcase/showcase-app
263
265
 
264
- Caused by: Cannot read properties of undefined (reading 'resolveId')
265
- ```
266
+ Caused by: Cannot read properties of undefined (reading 'resolveId')
267
+ ```
266
268
 
267
269
  ## 3.0.3
268
270
 
@@ -270,7 +272,7 @@
270
272
 
271
273
  - 3550ca8: Update dependencies
272
274
  - Updated dependencies [d9a0c1b]
273
- - @open-pioneer/build-common@2.0.4
275
+ - @open-pioneer/build-common@2.0.4
274
276
 
275
277
  ## 3.0.2
276
278
 
@@ -284,7 +286,7 @@
284
286
 
285
287
  - 017b8f3: Harmonize naming of Open Pioneer Trails in READMEs, package.json files and error messages.
286
288
  - Updated dependencies [017b8f3]
287
- - @open-pioneer/build-common@2.0.3
289
+ - @open-pioneer/build-common@2.0.3
288
290
 
289
291
  ## 3.0.0
290
292
 
@@ -299,7 +301,7 @@
299
301
  - c08520d: Update dependencies
300
302
  - Updated dependencies [c08520d]
301
303
  - Updated dependencies [c08520d]
302
- - @open-pioneer/build-common@2.0.2
304
+ - @open-pioneer/build-common@2.0.2
303
305
 
304
306
  ## 2.0.1
305
307
 
@@ -308,7 +310,7 @@
308
310
  - 9d4a9d5: Bump dependencies
309
311
  - 715b45e: Update package.json metadata
310
312
  - Updated dependencies [715b45e]
311
- - @open-pioneer/build-common@2.0.1
313
+ - @open-pioneer/build-common@2.0.1
312
314
 
313
315
  ## 2.0.0
314
316
 
@@ -318,17 +320,17 @@
318
320
  - c15512c: **Breaking Change:** A trails package's `devDependencies` are no longer included in the build (fixes #43).
319
321
  For normal dependencies, service classes are automatically picked up and compiled into the application.
320
322
 
321
- This behavior is surprising for `devDependencies`: license scanners and cve scanner sometimes chose to exclude
322
- `devDependencies`; which would have been invalid prior to this change (as the code was compiled in anyway).
323
+ This behavior is surprising for `devDependencies`: license scanners and cve scanner sometimes chose to exclude
324
+ `devDependencies`; which would have been invalid prior to this change (as the code was compiled in anyway).
323
325
 
324
- If your package depends on another trails package at runtime, configure an entry in `peerDependencies` instead.
326
+ If your package depends on another trails package at runtime, configure an entry in `peerDependencies` instead.
325
327
 
326
328
  ### Patch Changes
327
329
 
328
330
  - 5601a5e: Bump dependencies
329
331
  - Updated dependencies [5601a5e]
330
332
  - Updated dependencies [5601a5e]
331
- - @open-pioneer/build-common@2.0.0
333
+ - @open-pioneer/build-common@2.0.0
332
334
 
333
335
  ## 1.1.2
334
336
 
@@ -353,29 +355,29 @@
353
355
  - 99354bf: Improve error message when two versions of the same Trails package are encountered.
354
356
  Only a single version per Trails package per app is supported: all packages must share the same version and location on disk.
355
357
 
356
- The vite overlay in the browser now shows a comprehensible error message such as this:
358
+ The vite overlay in the browser now shows a comprehensible error message such as this:
357
359
 
358
- ```text
359
- [plugin:pioneer:codegen] Encountered the package '@open-pioneer/runtime' at two different locations.
360
- Trails packages cannot be used more than once in the same application.
361
- All packages must use a common version of '@open-pioneer/runtime'.
360
+ ```text
361
+ [plugin:pioneer:codegen] Encountered the package '@open-pioneer/runtime' at two different locations.
362
+ Trails packages cannot be used more than once in the same application.
363
+ All packages must use a common version of '@open-pioneer/runtime'.
362
364
 
363
- 1. @open-pioneer/runtime@1.0.0 at $HOME/projects/pioneer/starter/node_modules/.pnpm/@open-pioneer+runtime@1.0.0_@formatjs+intl@2.9.0_@open-pioneer+chakra-integration@1.0.0_@open_4cza3noe47gq2v2rsqn2cypo4q/node_modules/@open-pioneer/runtime
365
+ 1. @open-pioneer/runtime@1.0.0 at $HOME/projects/pioneer/starter/node_modules/.pnpm/@open-pioneer+runtime@1.0.0_@formatjs+intl@2.9.0_@open-pioneer+chakra-integration@1.0.0_@open_4cza3noe47gq2v2rsqn2cypo4q/node_modules/@open-pioneer/runtime
364
366
 
365
- 2. @open-pioneer/runtime@0.1.5 at $HOME/projects/pioneer/starter/node_modules/.pnpm/@open-pioneer+runtime@0.1.5_@formatjs+intl@2.9.0_@open-pioneer+chakra-integration@0.1.4_@open_m544g2vyxvedm3ipuqpqhltgfy/node_modules/@open-pioneer/runtime
366
- ```
367
+ 2. @open-pioneer/runtime@0.1.5 at $HOME/projects/pioneer/starter/node_modules/.pnpm/@open-pioneer+runtime@0.1.5_@formatjs+intl@2.9.0_@open-pioneer+chakra-integration@0.1.4_@open_m544g2vyxvedm3ipuqpqhltgfy/node_modules/@open-pioneer/runtime
368
+ ```
367
369
 
368
370
  - 146743d: Bump dependencies
369
371
  - Updated dependencies [3a0fb62]
370
372
  - Updated dependencies [146743d]
371
- - @open-pioneer/build-common@1.0.2
373
+ - @open-pioneer/build-common@1.0.2
372
374
 
373
375
  ## 1.0.2
374
376
 
375
377
  ### Patch Changes
376
378
 
377
379
  - Updated dependencies [1a8c745]
378
- - @open-pioneer/build-common@1.0.1
380
+ - @open-pioneer/build-common@1.0.1
379
381
 
380
382
  ## 1.0.1
381
383
 
@@ -392,7 +394,7 @@
392
394
  ### Patch Changes
393
395
 
394
396
  - Updated dependencies [991be0f]
395
- - @open-pioneer/build-common@1.0.0
397
+ - @open-pioneer/build-common@1.0.0
396
398
 
397
399
  ## 0.8.7
398
400
 
@@ -400,7 +402,7 @@
400
402
 
401
403
  - f0cd283: Add package.json metadata
402
404
  - Updated dependencies [f0cd283]
403
- - @open-pioneer/build-common@0.6.1
405
+ - @open-pioneer/build-common@0.6.1
404
406
 
405
407
  ## 0.8.6
406
408
 
@@ -408,9 +410,9 @@
408
410
 
409
411
  - cf32df5: Add another workaround that unfortunately currently requires pnpm's `shamefully-hoist` option.
410
412
 
411
- [`shamefully-hoist`](https://pnpm.io/npmrc#shamefully-hoist) allows the application to 'see' all other installed node packages.
412
- This is usually a bad practice but we currently require it for the virtual module that imports all Open Pioneer Trails services.
413
- For more details see the linked commit.
413
+ [`shamefully-hoist`](https://pnpm.io/npmrc#shamefully-hoist) allows the application to 'see' all other installed node packages.
414
+ This is usually a bad practice but we currently require it for the virtual module that imports all Open Pioneer Trails services.
415
+ For more details see the linked commit.
414
416
 
415
417
  ## 0.8.5
416
418
 
@@ -432,7 +434,7 @@
432
434
  - e6bbbfb: Simplify license comment in README
433
435
  - Updated dependencies [b6f55fe]
434
436
  - Updated dependencies [e6bbbfb]
435
- - @open-pioneer/build-common@0.6.0
437
+ - @open-pioneer/build-common@0.6.0
436
438
 
437
439
  ## 0.8.2
438
440
 
@@ -440,7 +442,7 @@
440
442
 
441
443
  - fdb5347: Use unresolved module ids for generated code.
442
444
  - Updated dependencies [fdb5347]
443
- - @open-pioneer/build-common@0.5.1
445
+ - @open-pioneer/build-common@0.5.1
444
446
 
445
447
  ## 0.8.1
446
448
 
@@ -448,7 +450,7 @@
448
450
 
449
451
  - 9f82090: Use react hooks code generation from @open-pioneer/build-common
450
452
  - Updated dependencies [9f82090]
451
- - @open-pioneer/build-common@0.5.0
453
+ - @open-pioneer/build-common@0.5.0
452
454
 
453
455
  ## 0.8.0
454
456
 
@@ -463,7 +465,7 @@
463
465
  - 38c8ee0: Don't re-emit warnings when a cached metadata entry is returned.
464
466
  - Updated dependencies [348afd8]
465
467
  - Updated dependencies [aeb702c]
466
- - @open-pioneer/build-common@0.4.0
468
+ - @open-pioneer/build-common@0.4.0
467
469
 
468
470
  ## 0.7.0
469
471
 
@@ -477,7 +479,7 @@
477
479
 
478
480
  - 0692aa2: Revert back to commonjs
479
481
  - Updated dependencies [0692aa2]
480
- - @open-pioneer/build-common@0.3.1
482
+ - @open-pioneer/build-common@0.3.1
481
483
 
482
484
  ## 0.6.0
483
485
 
@@ -491,7 +493,7 @@
491
493
  - Updated dependencies [393b294]
492
494
  - Updated dependencies [454ea2b]
493
495
  - Updated dependencies [39855ce]
494
- - @open-pioneer/build-common@0.3.0
496
+ - @open-pioneer/build-common@0.3.0
495
497
 
496
498
  ## 0.5.3
497
499
 
@@ -501,7 +503,7 @@
501
503
  - Updated dependencies [ef54f35]
502
504
  - Updated dependencies [125fd57]
503
505
  - Updated dependencies [37413f4]
504
- - @open-pioneer/build-common@0.2.0
506
+ - @open-pioneer/build-common@0.2.0
505
507
 
506
508
  ## 0.5.2
507
509
 
@@ -510,7 +512,7 @@
510
512
  - 434cc23: Migrate all tests to vitest.
511
513
  - 41399fa: Use new shared package to validate build.config.mjs
512
514
  - Updated dependencies [41399fa]
513
- - @open-pioneer/build-common@0.1.0
515
+ - @open-pioneer/build-common@0.1.0
514
516
 
515
517
  ## 0.5.1
516
518
 
package/client.d.ts CHANGED
@@ -133,11 +133,11 @@ declare module "open-pioneer:deployment" {
133
133
  * @example
134
134
  * // Render a component with the real messages of its package.
135
135
  * import { PackageContextProvider } from "@open-pioneer/test-utils/react";
136
- * import { testMessages, testMessagesLocale } from "open-pioneer:test-support";
136
+ * import { messages, messageLocale } from "open-pioneer:test-support";
137
137
  * import { render } from "@testing-library/react"; // or import { render } from "vitest-browser-react";
138
138
  *
139
139
  * render(
140
- * <PackageContextProvider messages={testMessages} locale={testMessagesLocale}>
140
+ * <PackageContextProvider messages={messages} locale={messageLocale}>
141
141
  * <MyComponent />
142
142
  * </PackageContextProvider>
143
143
  * );
@@ -145,7 +145,7 @@ declare module "open-pioneer:deployment" {
145
145
  * @example
146
146
  * // Request a different locale.
147
147
  * // The locale must be listed in the `i18n` array of the package's `build.config.mjs`.
148
- * import { testMessages, testMessagesLocale } from "open-pioneer:test-support?locale=de";
148
+ * import { messages, messageLocale } from "open-pioneer:test-support?locale=de";
149
149
  */
150
150
  declare module "open-pioneer:test-support" {
151
151
  /**
@@ -154,13 +154,13 @@ declare module "open-pioneer:test-support" {
154
154
  * The record fits the `messages` property of `PackageContextProvider` from `@open-pioneer/test-utils/react`.
155
155
  * It is empty when the package does not declare any locales in its `build.config.mjs`.
156
156
  */
157
- export const testMessages: Record<string, Record<string, string>>;
157
+ export const messages: Record<string, Record<string, string>>;
158
158
 
159
159
  /**
160
- * The locale of {@link testMessages}.
160
+ * The locale of {@link messages}.
161
161
  * It is an empty string when the package does not declare any locales.
162
162
  */
163
- export const testMessagesLocale: string;
163
+ export const messageLocale: string;
164
164
  }
165
165
 
166
166
  /**
@@ -172,10 +172,10 @@ declare module "open-pioneer:test-support?*" {
172
172
  /**
173
173
  * I18n messages keyed by package name and message id, in the requested locale.
174
174
  */
175
- export const testMessages: Record<string, Record<string, string>>;
175
+ export const messages: Record<string, Record<string, string>>;
176
176
 
177
177
  /**
178
178
  * The requested locale.
179
179
  */
180
- export const testMessagesLocale: string;
180
+ export const messageLocale: string;
181
181
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from "vite";
2
- //#region src/types.d.ts
3
2
  interface PioneerPluginOptions {
4
3
  /**
5
4
  * Whether to include the root `index.html` site (by default at `src/index.html`) in the build.
@@ -62,8 +61,5 @@ interface AdvancedAppOptions {
62
61
  */
63
62
  [appName: string]: string;
64
63
  }
65
- //#endregion
66
- //#region src/index.d.ts
67
64
  export declare function pioneer(options?: PioneerPluginOptions): Plugin[];
68
- //#endregion
69
65
  export type { AdvancedAppOptions, PioneerPluginOptions };