@ui5/webcomponents-tools 2.16.0-rc.2 → 2.16.0-rc.3
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,6 +3,18 @@
|
|
|
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.0-rc.3](https://github.com/UI5/webcomponents/compare/v2.16.0-rc.2...v2.16.0-rc.3) (2025-10-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* dev server on windows ([#12565](https://github.com/UI5/webcomponents/issues/12565)) ([af96b2c](https://github.com/UI5/webcomponents/commit/af96b2ce2292e7624c6186c58e002c6337e13847))
|
|
12
|
+
* devServer exception ([#12547](https://github.com/UI5/webcomponents/issues/12547)) ([6b3e28e](https://github.com/UI5/webcomponents/commit/6b3e28ea2790868755d5679cabb8a5f5a22f93c5))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [2.16.0-rc.2](https://github.com/UI5/webcomponents/compare/v2.16.0-rc.1...v2.16.0-rc.2) (2025-10-23)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
|
@@ -6,6 +6,7 @@ import { writeFile, mkdir } from "fs/promises";
|
|
|
6
6
|
import chokidar from "chokidar";
|
|
7
7
|
import scopeVariables from "./scope-variables.mjs";
|
|
8
8
|
import { writeFileIfChanged, getFileContent } from "./shared.mjs";
|
|
9
|
+
import { pathToFileURL } from "url";
|
|
9
10
|
|
|
10
11
|
const generate = async (argv) => {
|
|
11
12
|
const tsMode = process.env.UI5_TS === "true";
|
|
@@ -79,7 +80,10 @@ const generate = async (argv) => {
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
const filePath = process.argv[1];
|
|
84
|
+
const fileUrl = pathToFileURL(filePath).href;
|
|
85
|
+
|
|
86
|
+
if (import.meta.url === fileUrl) {
|
|
83
87
|
generate(process.argv)
|
|
84
88
|
}
|
|
85
89
|
|
|
@@ -7,6 +7,7 @@ import postcss from "postcss";
|
|
|
7
7
|
import combineDuplicatedSelectors from "../postcss-combine-duplicated-selectors/index.js"
|
|
8
8
|
import { writeFileIfChanged, getFileContent } from "./shared.mjs";
|
|
9
9
|
import scopeVariables from "./scope-variables.mjs";
|
|
10
|
+
import { pathToFileURL } from "url";
|
|
10
11
|
|
|
11
12
|
const generate = async (argv) => {
|
|
12
13
|
const tsMode = process.env.UI5_TS === "true";
|
|
@@ -89,7 +90,10 @@ const generate = async (argv) => {
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
const filePath = process.argv[1];
|
|
94
|
+
const fileUrl = pathToFileURL(filePath).href;
|
|
95
|
+
|
|
96
|
+
if (import.meta.url === fileUrl) {
|
|
93
97
|
generate(process.argv)
|
|
94
98
|
}
|
|
95
99
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import fs from "fs/promises";
|
|
2
2
|
import { createServer } from 'vite';
|
|
3
3
|
import yargs from 'yargs';
|
|
4
|
-
import { hideBin }
|
|
4
|
+
import { hideBin } from 'yargs/helpers';
|
|
5
|
+
import { pathToFileURL } from "url";
|
|
5
6
|
|
|
6
7
|
const argv = yargs(hideBin(process.argv))
|
|
7
8
|
.alias("c", "config")
|
|
@@ -28,7 +29,7 @@ const rmPortFile = async () => {
|
|
|
28
29
|
// exit handler must be sync
|
|
29
30
|
try {
|
|
30
31
|
await fs.rm(".dev-server-port");
|
|
31
|
-
} catch (e) {}
|
|
32
|
+
} catch (e) { }
|
|
32
33
|
process.exit();
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -36,7 +37,7 @@ const rmPortFile = async () => {
|
|
|
36
37
|
process.on(eventType, rmPortFile);
|
|
37
38
|
});
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
async function start() {
|
|
40
41
|
let retries = 10;
|
|
41
42
|
let port = 8080;
|
|
42
43
|
while (retries--) {
|
|
@@ -63,4 +64,15 @@ const rmPortFile = async () => {
|
|
|
63
64
|
// no error normal exit
|
|
64
65
|
// process.exit();
|
|
65
66
|
}
|
|
66
|
-
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const filePath = process.argv[1];
|
|
70
|
+
const fileUrl = pathToFileURL(filePath).href;
|
|
71
|
+
|
|
72
|
+
if (import.meta.url === fileUrl) {
|
|
73
|
+
start(process.argv)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export default {
|
|
77
|
+
_ui5mainFn: start
|
|
78
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { globby } from "globby";
|
|
2
2
|
import * as esbuild from 'esbuild'
|
|
3
3
|
import * as fs from "fs";
|
|
4
|
+
import { pathToFileURL } from "url";
|
|
4
5
|
|
|
5
6
|
const generate = async () => {
|
|
6
7
|
let customPlugin = {
|
|
@@ -38,7 +39,10 @@ const generate = async () => {
|
|
|
38
39
|
const result = await esbuild.build(config);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
const filePath = process.argv[1];
|
|
43
|
+
const fileUrl = pathToFileURL(filePath).href;
|
|
44
|
+
|
|
45
|
+
if (import.meta.url === fileUrl) {
|
|
42
46
|
generate()
|
|
43
47
|
}
|
|
44
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
|
3
|
-
"version": "2.16.0-rc.
|
|
3
|
+
"version": "2.16.0-rc.3",
|
|
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": "73762a2be34acc196e0f251c0b54f3559d02c1aa"
|
|
88
88
|
}
|