Skip to content

Commit fe1cb5a

Browse files
author
James Goldie
committed
Silence "unexpected option" warnings
1 parent 9062123 commit fe1cb5a

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

_extensions/sverto/rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const production = !process.env.ROLLUP_WATCH;
1414
export 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
}

_extensions/sverto/sverto-prerender.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

142139
local svelteResult = os.execute(cmd)
143140

_extensions/sverto/sverto.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)