Skip to content

Commit 2656921

Browse files
authored
fix(task): allow colons in filenames (#311)
1 parent 639b341 commit 2656921

6 files changed

Lines changed: 82 additions & 31 deletions

File tree

Cargo.lock

Lines changed: 27 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ tokio = "1.48.0"
6565
tracing = "0.1.41"
6666
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] }
6767
vite_error = { path = "crates/vite_error" }
68-
vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "d4fa5ecfa06cded665fd235db99b5ba9cfe43ab4" }
68+
vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "96bd2eba19cdbfd7612057b41debc0fbb692d1be" }
6969
vite_install = { path = "crates/vite_install" }
70-
vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "d4fa5ecfa06cded665fd235db99b5ba9cfe43ab4" }
71-
vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "d4fa5ecfa06cded665fd235db99b5ba9cfe43ab4" }
72-
vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "d4fa5ecfa06cded665fd235db99b5ba9cfe43ab4" }
73-
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "d4fa5ecfa06cded665fd235db99b5ba9cfe43ab4" }
70+
vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "96bd2eba19cdbfd7612057b41debc0fbb692d1be" }
71+
vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "96bd2eba19cdbfd7612057b41debc0fbb692d1be" }
72+
vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "96bd2eba19cdbfd7612057b41debc0fbb692d1be" }
73+
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "96bd2eba19cdbfd7612057b41debc0fbb692d1be" }
7474
wax = "0.6.0"
7575
which = "8.0.0"
7676

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"scripts": {
3+
"read_colon_in_name": "node read_node_fs.js"
4+
}
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
try {
2+
require('node:fs').readFileSync('node:fs');
3+
} catch {}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
> vp run read_colon_in_name
2+
$ node read_node_fs.js
3+
4+
5+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6+
Vite+ Task Runner • Execution Summary
7+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
8+
9+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Performance: 0% cache hit rate
11+
12+
Task Details:
13+
────────────────────────────────────────────────
14+
[1] read_colon_in_name: $ node read_node_fs.js ✓
15+
→ Cache miss: no previous cache entry found
16+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
17+
18+
> vp run read_colon_in_name
19+
$ node read_node_fs.js (✓ cache hit, replaying)
20+
21+
22+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
23+
Vite+ Task Runner • Execution Summary
24+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
25+
26+
Statistics: 1 tasks • 1 cache hits • 0 cache misses
27+
Performance: 100% cache hit rate, <variable>ms saved in total
28+
29+
Task Details:
30+
────────────────────────────────────────────────
31+
[1] read_colon_in_name: $ node read_node_fs.js ✓
32+
→ Cache hit - output replayed - <variable>ms saved
33+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"env": {
3+
"VITE_DISABLE_AUTO_INSTALL": "1"
4+
},
5+
"commands": [
6+
"vp run read_colon_in_name",
7+
"vp run read_colon_in_name"
8+
]
9+
}

0 commit comments

Comments
 (0)