Skip to content

Commit

Permalink
Bug: Fix blockset cli failing when path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Dec 5, 2023
1 parent 735bace commit 5a4d2b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-pumas-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@faustwp/cli': patch
---

Bug: Quote blockset "output-path" to prevent issues with space in paths.
2 changes: 1 addition & 1 deletion packages/faustwp-cli/src/blockset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export async function compileBlocks(): Promise<void> {
args = args.concat([
'--no-watch',
`--webpack-src-dir=${FAUST_BLOCKS_SRC_DIR}`,
`--output-path=${FAUST_BUILD_DIR}`,
`--output-path="${FAUST_BUILD_DIR}"`,
]);
const res = spawnSync(command, args, {
shell: true,
Expand Down

0 comments on commit 5a4d2b8

Please sign in to comment.