https://pulumi.com logo
#automation-api
Title
# automation-api
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)