pulumi/sdk/nodejs/tests/runtime
joeduffy 44c17e4877 Allow promise exports
This change partly addresses pulumi/pulumi#1611, by permitting you
to export a promise at the top-level, and have it be recognized as
a stack output. In other words, you can now say things like

    async function main() {
        ...
        return {
            a: "x",
            ...,
            z: 42,
        };
    }

    module.exports = main();

and your Pulumi program will record distinct outputs as you'd hope:

    ---outputs:---
    a: "x"
    ...
    z: 42

This is arguably just a bug in the way we implemented stack outputs.
The remainder of the requests in #1611 will remain open for future
design and discussion, as they have more subtle ramifications.
2018-09-02 10:41:04 -07:00
..
langhost Allow promise exports 2018-09-02 10:41:04 -07:00
closure.spec.ts Merge pull request #1834 from pulumi/joeduffy/1671_more_config_types 2018-08-28 21:57:34 -07:00
jsClosureCases.js Issue a better error message if you capture a V8 intrinsic (#1423) 2018-05-24 11:54:31 -07:00
props.spec.ts Discriminate unknown values in the JS runtime. (#1414) 2018-05-23 14:47:40 -07:00