https://pulumi.com logo
m

most-lighter-95902

11/26/2021, 3:51 AM
Switching from
await LocalWorkspace.createOrSelectStack(args)
worked fine, but in order to use
removeStack
, I switched the implementation to:
Copy code
const projectSettings: ProjectSettings = {
      name: projectName,
      runtime: 'nodejs',
    }
    const ws = await LocalWorkspace.create({ projectSettings })
    const stack = await Stack.createOrSelect(stackName, ws)