Commit Graph

9 Commits

Author SHA1 Message Date
Robbie McKinstry 0473bb0d2a
Set programRunning to true only once programStarted callback is invoked. 2023-05-17 17:02:43 -04:00
Robbie McKinstry 1c937e3593
Eliminate assignment statements used as expressions.
This change refactors assignment statements used as expressions
to prefer assignment statements instead. Assignments are often
assumed to now evaluate to a value, but instead to represent a
change to a lexical binding. By using them as expressions, we can
write confusing and buggy code. This commit eliminates those instances,
and enables a lint to prevent future occurances.
2023-05-15 19:48:47 -04:00
Robbie McKinstry e05a3bd81c
Apply autoformat
This commit applies the Rome autoformatter to the Node SDK.
These changes are automatically produced. To reproduce these
changes, run `make format` from inside sdk/nodejs.
2023-04-28 18:27:10 -04:00
Robbie McKinstry e978311216
Enable ESModule interoperability 2022-09-20 10:34:00 -04:00
Justin Van Patten 6b0a845cc1
Support publishing Python policy packs ()
Adds support for publishing Python policy packs to the service, and downloading/using such policy packs when applied to stacks in an organization.
2020-05-22 15:01:15 -07:00
CyrusNajmabadi ef69915864
Produce a slightly better error message when a user throws a non-Error object in JS. () 2019-12-16 17:27:36 -08:00
CyrusNajmabadi b135af10be
Enable full strict mode. () 2019-09-11 16:21:35 -07:00
CyrusNajmabadi d47473e462
Remove unnecessary exports () 2019-07-19 12:49:48 -07:00
Alex Clemmer 3fc03167c5 Implement `cmd/run-policy-pack`
This command will cause `pulumi policy publish` to behave in much the
same way `pulumi up` does -- if the policy program is in TypeScript, we
will use ts-node to attempt to compile in-process before executing, and
fall back to plain-old node.

We accomplish this by moving `cmd/run/run.ts` into a generic helper
package, `runtime/run.ts`, which slightly generalizes the use cases
supported (notably, allowing us to exec some program outside of the
context of a Pulumi stack).

This new package is then called by both `cmd/run/index.ts` and
`cmd/run-policy-pack/index.ts`.
2019-07-16 00:58:33 -07:00