slidev-workspace 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -204,7 +204,8 @@ async function buildAllSlides() {
|
|
|
204
204
|
}
|
|
205
205
|
console.log(`📦 Building slide: ${slideName}`);
|
|
206
206
|
try {
|
|
207
|
-
const
|
|
207
|
+
const baseUrl = config.baseUrl.endsWith("/") ? config.baseUrl : config.baseUrl + "/";
|
|
208
|
+
const buildCmd = `pnpm --filter "./slides/${slideName}" run build --base ${baseUrl}${slideName}/`;
|
|
208
209
|
execSync(buildCmd, {
|
|
209
210
|
cwd: workspaceCwd,
|
|
210
211
|
stdio: "inherit"
|