mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 16:34:36 +00:00
fix(migrate): share service command semantics
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { projectServiceProxyUrls } from "./service-proxy.js";
|
||||
import { normalizeServiceEnvName } from "@getpaseo/protocol/service-env-name";
|
||||
|
||||
export { normalizeServiceEnvName } from "@getpaseo/protocol/service-env-name";
|
||||
|
||||
export interface WorkspaceServicePeer {
|
||||
scriptName: string;
|
||||
@@ -15,13 +18,6 @@ export interface BuildWorkspaceServiceEnvOptions {
|
||||
peers: readonly WorkspaceServicePeer[];
|
||||
}
|
||||
|
||||
export function normalizeServiceEnvName(scriptName: string): string {
|
||||
return scriptName
|
||||
.toUpperCase()
|
||||
.replace(/[^A-Z0-9]+/g, "_")
|
||||
.replace(/^_+|_+$/g, "");
|
||||
}
|
||||
|
||||
export function buildWorkspaceServiceEnv(
|
||||
options: BuildWorkspaceServiceEnvOptions,
|
||||
): Record<string, string> {
|
||||
|
||||
Reference in New Issue
Block a user