@vesk/vesk-cli 0.2.37 → 0.2.38
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/dist/cli.js +16 -3
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -17589,7 +17589,7 @@ function skipComment(text, i) {
|
|
|
17589
17589
|
}
|
|
17590
17590
|
return i;
|
|
17591
17591
|
}
|
|
17592
|
-
function
|
|
17592
|
+
function blankComments(text) {
|
|
17593
17593
|
const chars = text.split("");
|
|
17594
17594
|
const n = text.length;
|
|
17595
17595
|
let lineStart = true;
|
|
@@ -17615,7 +17615,11 @@ function blankLeadingLineComments(text) {
|
|
|
17615
17615
|
i = end;
|
|
17616
17616
|
continue;
|
|
17617
17617
|
}
|
|
17618
|
-
if (ch === "/" && text[i + 1] === "/"
|
|
17618
|
+
if (ch === "/" && text[i + 1] === "/") {
|
|
17619
|
+
if (!lineStart) {
|
|
17620
|
+
i += 2;
|
|
17621
|
+
continue;
|
|
17622
|
+
}
|
|
17619
17623
|
let j = i;
|
|
17620
17624
|
while (j < n && text[j] !== "\n") {
|
|
17621
17625
|
chars[j] = " ";
|
|
@@ -17624,6 +17628,15 @@ function blankLeadingLineComments(text) {
|
|
|
17624
17628
|
i = j;
|
|
17625
17629
|
continue;
|
|
17626
17630
|
}
|
|
17631
|
+
if (ch === "/" && text[i + 1] === "*") {
|
|
17632
|
+
let j = i;
|
|
17633
|
+
while (j < n && !(text[j] === "*" && text[j + 1] === "/")) j++;
|
|
17634
|
+
const end = Math.min(j + 2, n);
|
|
17635
|
+
for (let k = i; k < end; k++) if (text[k] !== "\n") chars[k] = " ";
|
|
17636
|
+
lineStart = false;
|
|
17637
|
+
i = end;
|
|
17638
|
+
continue;
|
|
17639
|
+
}
|
|
17627
17640
|
lineStart = false;
|
|
17628
17641
|
i++;
|
|
17629
17642
|
}
|
|
@@ -18027,7 +18040,7 @@ function createBaseParser() {
|
|
|
18027
18040
|
}
|
|
18028
18041
|
function parse4(source, options = {}) {
|
|
18029
18042
|
const ParserClass = createBaseParser();
|
|
18030
|
-
const { code, annotations } = preprocessForClauses(
|
|
18043
|
+
const { code, annotations } = preprocessForClauses(blankComments(source));
|
|
18031
18044
|
try {
|
|
18032
18045
|
const ast = ParserClass.parse(code, {
|
|
18033
18046
|
ecmaVersion: "latest",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vesk/vesk-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vesk — compiler-first framework for the post-VDOM web. vesk dev, vesk build.",
|
|
6
6
|
"bin": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/cli.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@vesk/adapter": "^0.2.
|
|
12
|
-
"@vesk/compiler": "^0.2.
|
|
13
|
-
"@vesk/plugin-tailwind": "^0.2.
|
|
14
|
-
"@vesk/runtime": "^0.2.
|
|
11
|
+
"@vesk/adapter": "^0.2.38",
|
|
12
|
+
"@vesk/compiler": "^0.2.38",
|
|
13
|
+
"@vesk/plugin-tailwind": "^0.2.38",
|
|
14
|
+
"@vesk/runtime": "^0.2.38",
|
|
15
15
|
"esrap": "^2.3.0",
|
|
16
16
|
"typescript": "^5.8.0",
|
|
17
17
|
"ws": "^8.18.0",
|