@ui5/webcomponents-tools 2.17.0-rc.0 → 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 +11 -0
- package/bin/ui5nps.js +5 -1
- package/lib/dev-server/dev-server.mjs +8 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.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
|
+
|
|
6
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)
|
|
7
18
|
|
|
8
19
|
|
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") {
|
|
@@ -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
|
|
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:
|
|
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.17.0-rc.
|
|
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": "
|
|
87
|
+
"gitHead": "5419a5cbb330b94cd8263ef4ee77575ad72c728a"
|
|
88
88
|
}
|