File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const production = !process.env.ROLLUP_WATCH;
1414export default cmd => {
1515
1616 const svelteInputPaths =
17- cmd [ "svelte-in-paths " ] . split ( ":" ) . filter ( d => d != "" )
17+ cmd [ "configSvelteInPaths " ] . split ( ":" ) . filter ( d => d != "" )
1818
1919 // if no svelte paths, bail out early
2020 if ( svelteInputPaths == undefined || svelteInputPaths . length == 0 ) {
@@ -23,10 +23,10 @@ export default cmd => {
2323 }
2424
2525 /* get quarto render dir from cmd line arg */
26- const quartoRenderPath = cmd [ "quarto-out-path " ]
26+ const quartoRenderPath = cmd [ "configQuartoOutPath " ]
2727 if ( quartoRenderPath == undefined ) {
2828 console . error (
29- "Error: supply a --quarto-out-path . Please report this to " +
29+ "Error: supply a --configQuartoOutPath . Please report this to " +
3030 "the Sverto developer." )
3131 process . exit ( 1 )
3232 }
@@ -60,7 +60,7 @@ export default cmd => {
6060 production && terser ( )
6161 ]
6262 } )
63-
63+
6464 )
6565
6666}
Original file line number Diff line number Diff line change @@ -133,11 +133,8 @@ cmd =
133133 get_cmd_prefix () ..
134134 " npm run build " ..
135135 rollup_config .. " -- " ..
136- ' --quarto-out-path="' .. os.getenv (" QUARTO_PROJECT_OUTPUT_DIR" ) .. ' " ' ..
137- ' --svelte-in-paths="' .. svelte_path_string .. ' "'
138-
139- print (" Preparing to run rollup with command:" )
140- print (cmd )
136+ ' --configQuartoOutPath="' .. os.getenv (" QUARTO_PROJECT_OUTPUT_DIR" ) .. ' " ' ..
137+ ' --configSvelteInPaths="' .. svelte_path_string .. ' "'
141138
142139local svelteResult = os.execute (cmd )
143140
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ function inject_svelte_and_compile(m)
9898 else
9999 local svelteCommand =
100100 " npm run build rollup.config.js -- " ..
101- ' --quarto-out-path ="./" ' ..
102- ' --svelte-in-paths ="' .. sveltePaths .. ' "'
101+ ' --configQuartoOutPath ="./" ' ..
102+ ' --configSvelteInPaths ="' .. sveltePaths .. ' "'
103103 local svelteResult = os.execute (svelteCommand )
104104 quarto .log .warning (" Svelte compiler finished with code " .. svelteResult )
105105
You can’t perform that action at this time.
0 commit comments