Move branch-slug to @getpaseo/protocol

The app must not import @getpaseo/server. Moving the slug validation
and slugify helpers into @getpaseo/protocol (already a shared dep of
app, client, server) gives every package a legitimate home for the
import. Drops the corresponding ./utils/branch-slug subpath from
@getpaseo/server's exports map.

Unblocks the Deploy App workflow, which only builds protocol/client/
audio for the app — server's dist never exists in that pipeline.
This commit is contained in:
Mohamed Boudra
2026-05-28 18:41:13 +07:00
parent 6d1aa1f415
commit 24526a3b23
6 changed files with 4 additions and 24 deletions
+2 -2
View File
@@ -30,9 +30,9 @@ import { spawnProcess } from "./spawn.js";
import { resolvePaseoHome } from "../server/paseo-home.js";
import { createExternalProcessEnv } from "../server/paseo-env.js";
import { parseGitRevParsePath, resolveGitRevParsePath } from "./git-rev-parse-path.js";
import { validateBranchSlug } from "./branch-slug.js";
import { validateBranchSlug } from "@getpaseo/protocol/branch-slug";
export { slugify, validateBranchSlug } from "./branch-slug.js";
export { slugify, validateBranchSlug } from "@getpaseo/protocol/branch-slug";
const execFileAsync = promisify(execFile);
const READ_ONLY_GIT_ENV = {