@webiny/pulumi-sdk 5.18.3 → 5.19.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +8 -4
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -81,7 +81,9 @@ class Pulumi {
81
81
 
82
82
 
83
83
  (0, _set2.default)(args.execa, "env.PULUMI_SKIP_UPDATE_CHECK", "true");
84
- (0, _set2.default)(args.execa, "env.PULUMI_HOME", this.pulumiFolder);
84
+ (0, _set2.default)(args.execa, "env.PULUMI_HOME", this.pulumiFolder); // Use ";" when on Windows. For Mac and Linux, use ":".
85
+
86
+ const PATH_SEPARATOR = _os.default.platform() === "win32" ? ";" : ":";
85
87
 
86
88
  const execaArgs = _objectSpread(_objectSpread({}, args.execa), {}, {
87
89
  env: _objectSpread(_objectSpread({}, args.execa.env || {}), {}, {
@@ -91,11 +93,13 @@ class Pulumi {
91
93
  * we need to specify the exact location of our Pulumi binaries, using the PATH environment variable, so it can correctly resolve
92
94
  * plugins necessary for custom resources and dynamic providers to work.
93
95
  */
94
- PATH: `${process.env.PATH};${this.pulumiFolder}`
96
+ PATH: process.env.PATH + PATH_SEPARATOR + this.pulumiFolder
95
97
  })
96
- });
98
+ }); // We want to keep the "interactive" output format of the Pulumi command when `--preview` flag is passed in.
99
+
97
100
 
98
- return (0, _execa.default)(this.pulumiBinaryPath, [...args.command, ...finalArgs, FLAG_NON_INTERACTIVE], execaArgs);
101
+ const flags = args.command && args.command.includes("preview") ? [] : [FLAG_NON_INTERACTIVE];
102
+ return (0, _execa.default)(this.pulumiBinaryPath, [...args.command, ...finalArgs, ...flags], execaArgs);
99
103
  }
100
104
 
101
105
  async install(rawArgs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/pulumi-sdk",
3
- "version": "5.18.3",
3
+ "version": "5.19.0-beta.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,8 +27,8 @@
27
27
  "@babel/cli": "^7.5.5",
28
28
  "@babel/core": "^7.5.5",
29
29
  "@types/node": "^10.0.0",
30
- "@webiny/cli": "^5.18.3",
31
- "@webiny/project-utils": "^5.18.3",
30
+ "@webiny/cli": "^5.19.0-beta.0",
31
+ "@webiny/project-utils": "^5.19.0-beta.0",
32
32
  "rimraf": "^3.0.2",
33
33
  "typescript": "^4.1.3"
34
34
  },
@@ -44,5 +44,5 @@
44
44
  "build": "yarn webiny run build",
45
45
  "watch": "yarn webiny run watch"
46
46
  },
47
- "gitHead": "3ccdb07d10c57086a63eb42ba7484e17bc388297"
47
+ "gitHead": "6c834e0b356e9099800f4094f2023b05b951d8ea"
48
48
  }