pulumi/sdk/nodejs/index.ts
joeduffy 599ca8ea43 Add accessors to fetch the Pulumi project and stack names
This change adds functions, `pulumi.getProject()` and `pulumi.getStack()`,
to fetch the names of the project and stack, respectively.  These can be
handy in generating names, specializing areas of the code, etc.

This fixes pulumi/pulumi#429.
2017-10-19 08:26:57 -07:00

18 lines
494 B
TypeScript

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
// Enable source map support so we get good stack traces.
import "source-map-support/register";
// Export top-level elements.
export * from "./config";
export * from "./metadata";
export * from "./resource";
// Export submodules individually.
import * as asset from "./asset";
import * as dynamic from "./dynamic";
import * as log from "./log";
import * as runtime from "./runtime";
export { asset, dynamic, log, runtime };