@jtl-software/create-cloud-app 0.5.10 → 0.6.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/dist/index.js +5 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -763,7 +763,7 @@ function readExistingCredentials(backend) {
763
763
  function authBaseFromApi(apiHost) {
764
764
  return apiHost.replace(/:\/\/api\./, "://auth.").replace(/\/$/, "");
765
765
  }
766
- function writeBackendCredentials(backend, clientId, clientSecret, issuer, apiBase) {
766
+ function writeBackendCredentials(backend, clientId, clientSecret, issuer, apiBase, appId) {
767
767
  const hosts = apiBase ? {
768
768
  JTL_API_BASE: apiBase.replace(/\/$/, ""),
769
769
  JTL_AUTH_BASE: authBaseFromApi(apiBase)
@@ -773,6 +773,7 @@ function writeBackendCredentials(backend, clientId, clientSecret, issuer, apiBas
773
773
  CLIENT_ID: clientId,
774
774
  CLIENT_SECRET: clientSecret,
775
775
  ...issuer ? { JTL_ISSUER: issuer } : {},
776
+ ...appId ? { JTL_APP_ID: appId } : {},
776
777
  ...hosts
777
778
  });
778
779
  return backend.envFile;
@@ -1105,7 +1106,8 @@ async function persistCredentials(backend, clientId, clientSecret, root, opts, c
1105
1106
  clientId,
1106
1107
  clientSecret,
1107
1108
  opts.auth,
1108
- opts.api
1109
+ opts.api,
1110
+ context.appId
1109
1111
  );
1110
1112
  printHubLink(
1111
1113
  context.hub,
@@ -1920,7 +1922,7 @@ import os2 from "os";
1920
1922
  import path6 from "path";
1921
1923
  import { PostHog } from "posthog-node";
1922
1924
  var TOKEN = "phc_SkFAxTIa4RUQxotci1Ftdw7xefZK2Ax0LEIGcl8zuD2";
1923
- var CLI_VERSION = "0.5.10";
1925
+ var CLI_VERSION = "0.6.0";
1924
1926
  var client = TOKEN ? new PostHog(TOKEN, { host: "https://e.jtl-cloud.com" }) : null;
1925
1927
  function telemetryDisabledByEnv() {
1926
1928
  const dnt = process.env.DO_NOT_TRACK;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtl-software/create-cloud-app",
3
- "version": "0.5.10",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "CLI tool for scaffolding JTL Platform cloud apps",
6
6
  "bin": {
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@clack/prompts": "^1.7.0",
21
21
  "@jtl-software/cloud-app-template-backend-dotnet": "0.0.13",
22
- "@jtl-software/cloud-app-template-backend-node": "0.1.0",
22
+ "@jtl-software/cloud-app-template-backend-node": "0.2.0",
23
23
  "@jtl-software/cloud-app-template-backend-php": "0.1.3",
24
- "@jtl-software/cloud-app-template-frontend-react": "0.2.0",
24
+ "@jtl-software/cloud-app-template-frontend-react": "0.2.1",
25
25
  "@jtl-software/cloud-app-template-shared": "0.1.3",
26
26
  "picocolors": "^1.1.1",
27
27
  "posthog-node": "^5.49.1"