mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
interface Env {
|
|
VSCODE_REF: string;
|
|
PRERELEASE_VERSION: string;
|
|
}
|
|
|
|
export function getNightlyEnv(): Env {
|
|
const env: Env = process.env as any;
|
|
if (!env.PRERELEASE_VERSION) {
|
|
throw new Error(`Missing PRERELEASE_VERSION in process.env`);
|
|
}
|
|
if (!env.VSCODE_REF) {
|
|
throw new Error(`Missing VSCODE_REF in process.env`);
|
|
}
|
|
return env;
|
|
}
|