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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -1
  2. 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 buildCmd = `pnpm --filter "./slides/${slideName}" run build --base ${config.baseUrl}${slideName}/`;
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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-workspace",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A workspace tool for managing multiple Slidev presentations with API-based content management",
5
5
  "type": "module",
6
6
  "license": "MIT",