bf75fe0662
If --suppress-outputs is passed to `pulumi preview --json`, we should not emit the stack outputs. This change fixes pulumi/pulumi#2765. Also adds a test case for this plus some variants of updates.
9 lines
297 B
TypeScript
9 lines
297 B
TypeScript
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
import { Resource } from "./resource";
|
|
|
|
// Allocate a new resource. When this exists, we should not allow
|
|
// the stack holding it to be `rm`'d without `--force`.
|
|
let a = new Resource("res", { state: 1 });
|
|
|
|
export let o = a.state;
|