Format authored monorepo code with pinned language formatters
This commit is contained in:
@@ -10,7 +10,12 @@ for await (const chunk of process.stdin) {
|
||||
}
|
||||
const document = JSON.parse(input);
|
||||
if (!Array.isArray(document) && document?.operation === "instantiate-workspace") {
|
||||
if (typeof document.source !== "string" || document.source.length > 262144 || typeof document.workspaceId !== "string") throw new Error("Invalid template identity request");
|
||||
if (
|
||||
typeof document.source !== "string" ||
|
||||
document.source.length > 262144 ||
|
||||
typeof document.workspaceId !== "string"
|
||||
)
|
||||
throw new Error("Invalid template identity request");
|
||||
process.stdout.write(JSON.stringify({ source: instantiateWorkspaceIdentity(document.source, document.workspaceId) }));
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user