File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,11 @@ pub async fn load_schema_js(path: &Path) -> io::Result<LoadSchemaJsResult> {
26
26
let res_json = run_node ( & format ! (
27
27
r#"
28
28
import {{ loadSchemaJs }} from "@nitrogql/core";
29
- import {{ stdout }} from "process";
30
29
31
30
const result = await loadSchemaJs("{}");
32
31
export default result;
33
32
"# ,
34
- path. display ( )
33
+ path. to_string_lossy ( ) . escape_default ( )
35
34
) )
36
35
. await ?;
37
36
let parsed: LoadSchemaJsResult = serde_yaml:: from_str ( & res_json) . expect ( "failed to parse JSON" ) ;
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ import config from "{}";
120
120
import {{ stdout }} from "process";
121
121
export default config?.default ?? config;
122
122
"# ,
123
- path. display ( )
123
+ path. to_string_lossy ( ) . escape_default ( )
124
124
) )
125
125
. await
126
126
}
You can’t perform that action at this time.
0 commit comments