We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a2e141 commit 0105304Copy full SHA for 0105304
.changes/fix-schema-path-fmt.md
@@ -0,0 +1,6 @@
1
+---
2
+"cli.js": patch
3
+"cli.rs": patch
4
5
+
6
+Use UNIX path separator on the init `$schema` field.
tooling/cli/src/init.rs
@@ -217,7 +217,12 @@ pub fn command(mut options: Options) -> Result<()> {
217
let mut map = serde_json::Map::default();
218
map.insert(
219
"$schema".into(),
220
- serde_json::Value::String(cli_node_module_path.display().to_string()),
+ serde_json::Value::String(
221
+ cli_node_module_path
222
+ .display()
223
+ .to_string()
224
+ .replace('\\', "/"),
225
+ ),
226
);
227
let merge_config = serde_json::Value::Object(map);
228
json_patch::merge(&mut config, &merge_config);
0 commit comments