@apps-in-toss/cli 0.0.0-dev.1741084084392 → 0.0.0-dev.1741160651607

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.
package/dist/index.cjs CHANGED
@@ -30482,8 +30482,9 @@ var DeployCommand = class extends import_clipanion.Command {
30482
30482
  const { appName, deploymentId } = await readZipContent(resolvedArtifactPath, APP_MANIFEST_NAME).then((rawAppManifest) => {
30483
30483
  const appManifest = JSON.parse(rawAppManifest);
30484
30484
  const appName2 = appManifest.appName;
30485
- const deploymentId2 = appManifest.deploymentId;
30485
+ const deploymentId2 = appManifest._metadata.deploymentId;
30486
30486
  (0, import_assert.default)(typeof appName2 === "string", "invalid appName");
30487
+ (0, import_assert.default)(typeof deploymentId2 === "string", "invalid deploymentId");
30487
30488
  return { appName: appName2, deploymentId: deploymentId2 };
30488
30489
  }).catch((error) => {
30489
30490
  debug2("invalid ait file", error);
@@ -30505,9 +30506,7 @@ var DeployCommand = class extends import_clipanion.Command {
30505
30506
  }
30506
30507
  }
30507
30508
  ]);
30508
- if (deploymentId) {
30509
- p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30510
- }
30509
+ p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30511
30510
  } catch (error) {
30512
30511
  if (error instanceof Error) {
30513
30512
  p.log.error(error.message);
@@ -37594,8 +37593,6 @@ async function setupNpm(cwd) {
37594
37593
  cwd,
37595
37594
  stdio: "inherit"
37596
37595
  });
37597
- await import_fs4.default.promises.rm(import_path3.default.join(cwd, "node_modules"), { recursive: true, force: true });
37598
- await import_fs4.default.promises.rm(import_path3.default.join(cwd, "package-lock.json"), { force: true });
37599
37596
  await execa("npm", ["install", "--legacy-peer-deps"], {
37600
37597
  cwd,
37601
37598
  stdio: "inherit"
package/dist/index.js CHANGED
@@ -30485,8 +30485,9 @@ var DeployCommand = class extends Command {
30485
30485
  const { appName, deploymentId } = await readZipContent(resolvedArtifactPath, APP_MANIFEST_NAME).then((rawAppManifest) => {
30486
30486
  const appManifest = JSON.parse(rawAppManifest);
30487
30487
  const appName2 = appManifest.appName;
30488
- const deploymentId2 = appManifest.deploymentId;
30488
+ const deploymentId2 = appManifest._metadata.deploymentId;
30489
30489
  assert(typeof appName2 === "string", "invalid appName");
30490
+ assert(typeof deploymentId2 === "string", "invalid deploymentId");
30490
30491
  return { appName: appName2, deploymentId: deploymentId2 };
30491
30492
  }).catch((error) => {
30492
30493
  debug2("invalid ait file", error);
@@ -30508,9 +30509,7 @@ var DeployCommand = class extends Command {
30508
30509
  }
30509
30510
  }
30510
30511
  ]);
30511
- if (deploymentId) {
30512
- p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30513
- }
30512
+ p.note(import_picocolors.default.underline(import_picocolors.default.green(`intoss-private://${appName}?_deploymentId=${deploymentId}`)));
30514
30513
  } catch (error) {
30515
30514
  if (error instanceof Error) {
30516
30515
  p.log.error(error.message);
@@ -37602,8 +37601,6 @@ async function setupNpm(cwd) {
37602
37601
  cwd,
37603
37602
  stdio: "inherit"
37604
37603
  });
37605
- await fs4.promises.rm(path9.join(cwd, "node_modules"), { recursive: true, force: true });
37606
- await fs4.promises.rm(path9.join(cwd, "package-lock.json"), { force: true });
37607
37604
  await execa("npm", ["install", "--legacy-peer-deps"], {
37608
37605
  cwd,
37609
37606
  stdio: "inherit"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/cli",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.1741084084392",
4
+ "version": "0.0.0-dev.1741160651607",
5
5
  "description": "CLI for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "11d12af0efde0770852587f140c79ea020ef6fb7"
49
+ "gitHead": "4178d7e71725ad60536cc25aa4057a018b166633"
50
50
  }