@ui5/webcomponents-tools 2.16.1 → 2.17.0-rc.1

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
@@ -3,7 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [2.16.1](https://github.com/UI5/webcomponents/compare/v2.16.0...v2.16.1) (2025-11-07)
6
+ # [2.17.0-rc.1](https://github.com/UI5/webcomponents/compare/v2.17.0-rc.0...v2.17.0-rc.1) (2025-11-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tools:** dev-server for 3rd party packages ([#12631](https://github.com/UI5/webcomponents/issues/12631)) ([a4f4dd5](https://github.com/UI5/webcomponents/commit/a4f4dd5b0a68620ec063de32e724c064bd73af87))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.17.0-rc.0](https://github.com/UI5/webcomponents/compare/v2.16.1-rc.0...v2.17.0-rc.0) (2025-11-06)
18
+
19
+
20
+ ### Features
21
+
22
+ * **framework:** Custom Illustrations Documentation & API Enhancement ([#12260](https://github.com/UI5/webcomponents/issues/12260)) ([2ee9b02](https://github.com/UI5/webcomponents/commit/2ee9b024e152029394b39324f2bb7dcb73293dbb))
23
+
24
+
25
+
26
+
27
+
28
+ ## [2.16.1-rc.0](https://github.com/UI5/webcomponents/compare/v2.16.0...v2.16.1-rc.0) (2025-11-06)
7
29
 
8
30
  **Note:** Version bump only for package @ui5/webcomponents-tools
9
31
 
package/bin/ui5nps.js CHANGED
@@ -140,7 +140,11 @@ class Parser {
140
140
  process.exit(1);
141
141
  }
142
142
 
143
- envs = scripts.__ui5envs;
143
+ envs = JSON.parse(JSON.stringify(scripts.__ui5envs || {}));
144
+
145
+ Object.entries(envs).forEach(([key, value]) => {
146
+ envs[key] = String(value);
147
+ });
144
148
 
145
149
  // Package-script should provide default export with scripts object
146
150
  if (envs && typeof envs !== "object") {
@@ -121,7 +121,7 @@ const generate = async (argv) => {
121
121
  // If no Dot is present, Spot will be imported as Dot
122
122
  const hasDot = dotIllustrationNames.indexOf(illustrationName) !== -1 ? 'Dot' : 'Spot';
123
123
 
124
- return `import { registerIllustration } from "@ui5/webcomponents-base/dist/asset-registries/Illustrations.js";
124
+ return `import { unsafeRegisterIllustration } from "@ui5/webcomponents-base/dist/asset-registries/Illustrations.js";
125
125
  import dialogSvg from "./${illustrationsPrefix}-Dialog-${illustrationName}.js";
126
126
  import sceneSvg from "./${illustrationsPrefix}-Scene-${illustrationName}.js";
127
127
  import spotSvg from "./${illustrationsPrefix}-Spot-${illustrationName}.js";
@@ -136,7 +136,7 @@ const collection = "${collection}";${defaultText ? `
136
136
  const title = IM_TITLE_${illustrationNameUpperCase};
137
137
  const subtitle = IM_SUBTITLE_${illustrationNameUpperCase};` : ``}
138
138
 
139
- registerIllustration(name, {
139
+ unsafeRegisterIllustration(name, {
140
140
  dialogSvg,
141
141
  sceneSvg,
142
142
  spotSvg,
@@ -4,13 +4,9 @@ import yargs from 'yargs';
4
4
  import { hideBin } from 'yargs/helpers';
5
5
  import { pathToFileURL } from "url";
6
6
 
7
- const argv = yargs(hideBin(process.argv))
8
- .alias("c", "config")
9
- .argv;
10
-
11
- const startVite = async (port) => {
7
+ const startVite = async (config, port) => {
12
8
  const server = await createServer({
13
- configFile: argv.config,
9
+ configFile: config,
14
10
  server: {
15
11
  port: port,
16
12
  strictPort: true,
@@ -37,7 +33,11 @@ const rmPortFile = async () => {
37
33
  process.on(eventType, rmPortFile);
38
34
  });
39
35
 
40
- async function start() {
36
+ async function start(outArgv) {
37
+ const argv = yargs(hideBin(outArgv))
38
+ .alias("c", "config")
39
+ .argv;
40
+
41
41
  let retries = 10;
42
42
  let port = 8080;
43
43
  while (retries--) {
@@ -45,7 +45,7 @@ async function start() {
45
45
  await fs.writeFile(".dev-server-port", `${port}`);
46
46
  try {
47
47
  // execSync(command, {stdio: 'pipe'});
48
- const server = await startVite(port);
48
+ const server = await startVite(argv.config ?? "", port);
49
49
  if (server) {
50
50
  // server started, don't try other ports
51
51
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "2.16.1",
3
+ "version": "2.17.0-rc.1",
4
4
  "description": "UI5 Web Components: webcomponents.tools",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -84,5 +84,5 @@
84
84
  "esbuild": "^0.25.0",
85
85
  "yargs": "^17.5.1"
86
86
  },
87
- "gitHead": "d7222386c6c86fe7cafea4541d8f8f655abb5898"
87
+ "gitHead": "5419a5cbb330b94cd8263ef4ee77575ad72c728a"
88
88
  }