@jtl-software/create-cloud-app 0.0.22 → 0.0.23

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/dist/index.js +10 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -237,14 +237,17 @@ function makeCachedToken(clientId, tokens, fallbackRefreshToken, scope) {
237
237
  }
238
238
  var defaultOpener = (url) => {
239
239
  const platform = process.platform;
240
- const cmd = platform === "darwin" ? "open" : platform === "win32" ? "start" : "xdg-open";
241
- const args = platform === "win32" ? ["", url] : [url];
242
240
  try {
243
- spawn(cmd, args, {
244
- stdio: "ignore",
245
- detached: true,
246
- shell: platform === "win32"
247
- }).unref();
241
+ if (platform === "win32") {
242
+ spawn("cmd.exe", ["/c", `start "" "${url}"`], {
243
+ stdio: "ignore",
244
+ detached: true,
245
+ windowsVerbatimArguments: true
246
+ }).unref();
247
+ } else {
248
+ const cmd = platform === "darwin" ? "open" : "xdg-open";
249
+ spawn(cmd, [url], { stdio: "ignore", detached: true }).unref();
250
+ }
248
251
  } catch {
249
252
  }
250
253
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtl-software/create-cloud-app",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "description": "CLI tool for scaffolding JTL Platform cloud apps",
6
6
  "bin": {