@apps-in-toss/cli 2.0.5 → 2.0.6
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 +4 -0
- package/dist/index.js +4 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1713,6 +1713,8 @@ var DeployCommand = class extends import_clipanion2.Command {
|
|
|
1713
1713
|
const deploymentId2 = reader.deploymentId;
|
|
1714
1714
|
(0, import_assert.default)(typeof appName2 === "string", "ait \uD30C\uC77C\uC5D0 appName\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1715
1715
|
(0, import_assert.default)(typeof deploymentId2 === "string", "ait \uD30C\uC77C\uC5D0 deploymentId\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1716
|
+
const runtimeVersion = reader.metadata?.runtimeVersion;
|
|
1717
|
+
(0, import_assert.default)(typeof runtimeVersion === "string" && runtimeVersion.length > 0, "ait \uD30C\uC77C\uC5D0 runtimeVersion\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uBC88\uB4E4\uC744 \uB2E4\uC2DC \uBE4C\uB4DC\uD574\uC8FC\uC138\uC694.");
|
|
1716
1718
|
return { appName: appName2, deploymentId: deploymentId2 };
|
|
1717
1719
|
} else if (format === import_ait_format.AppsInTossBundle.Format.ZIP) {
|
|
1718
1720
|
const rawAppManifest = await (0, import_utils5.readZipContent)(resolvedArtifactPath, APP_MANIFEST_NAME);
|
|
@@ -1721,6 +1723,8 @@ var DeployCommand = class extends import_clipanion2.Command {
|
|
|
1721
1723
|
const deploymentId2 = appManifest._metadata.deploymentId;
|
|
1722
1724
|
(0, import_assert.default)(typeof appName2 === "string", "app.json \uD30C\uC77C\uC5D0 appName\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1723
1725
|
(0, import_assert.default)(typeof deploymentId2 === "string", "app.json \uD30C\uC77C\uC5D0 deploymentId\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1726
|
+
const runtimeVersion = appManifest._metadata?.runtimeVersion;
|
|
1727
|
+
(0, import_assert.default)(typeof runtimeVersion === "string" && runtimeVersion.length > 0, "app.json \uD30C\uC77C\uC5D0 runtimeVersion\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uBC88\uB4E4\uC744 \uB2E4\uC2DC \uBE4C\uB4DC\uD574\uC8FC\uC138\uC694.");
|
|
1724
1728
|
return { appName: appName2, deploymentId: deploymentId2 };
|
|
1725
1729
|
} else {
|
|
1726
1730
|
throw new Error("\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uD615\uC2DD\uC785\uB2C8\uB2E4");
|
package/dist/index.js
CHANGED
|
@@ -1705,6 +1705,8 @@ var DeployCommand = class extends Command2 {
|
|
|
1705
1705
|
const deploymentId2 = reader.deploymentId;
|
|
1706
1706
|
assert(typeof appName2 === "string", "ait \uD30C\uC77C\uC5D0 appName\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1707
1707
|
assert(typeof deploymentId2 === "string", "ait \uD30C\uC77C\uC5D0 deploymentId\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1708
|
+
const runtimeVersion = reader.metadata?.runtimeVersion;
|
|
1709
|
+
assert(typeof runtimeVersion === "string" && runtimeVersion.length > 0, "ait \uD30C\uC77C\uC5D0 runtimeVersion\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uBC88\uB4E4\uC744 \uB2E4\uC2DC \uBE4C\uB4DC\uD574\uC8FC\uC138\uC694.");
|
|
1708
1710
|
return { appName: appName2, deploymentId: deploymentId2 };
|
|
1709
1711
|
} else if (format === AppsInTossBundle.Format.ZIP) {
|
|
1710
1712
|
const rawAppManifest = await readZipContent(resolvedArtifactPath, APP_MANIFEST_NAME);
|
|
@@ -1713,6 +1715,8 @@ var DeployCommand = class extends Command2 {
|
|
|
1713
1715
|
const deploymentId2 = appManifest._metadata.deploymentId;
|
|
1714
1716
|
assert(typeof appName2 === "string", "app.json \uD30C\uC77C\uC5D0 appName\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1715
1717
|
assert(typeof deploymentId2 === "string", "app.json \uD30C\uC77C\uC5D0 deploymentId\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4");
|
|
1718
|
+
const runtimeVersion = appManifest._metadata?.runtimeVersion;
|
|
1719
|
+
assert(typeof runtimeVersion === "string" && runtimeVersion.length > 0, "app.json \uD30C\uC77C\uC5D0 runtimeVersion\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uBC88\uB4E4\uC744 \uB2E4\uC2DC \uBE4C\uB4DC\uD574\uC8FC\uC138\uC694.");
|
|
1716
1720
|
return { appName: appName2, deploymentId: deploymentId2 };
|
|
1717
1721
|
} else {
|
|
1718
1722
|
throw new Error("\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uD615\uC2DD\uC785\uB2C8\uB2E4");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.6",
|
|
5
5
|
"description": "CLI for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apps-in-toss/ait-format": "1.0.0",
|
|
46
|
-
"@apps-in-toss/plugins": "2.0.
|
|
47
|
-
"@apps-in-toss/web-config": "2.0.
|
|
46
|
+
"@apps-in-toss/plugins": "2.0.6",
|
|
47
|
+
"@apps-in-toss/web-config": "2.0.6",
|
|
48
48
|
"@clack/prompts": "^0.10.0",
|
|
49
49
|
"@granite-js/utils": "1.0.4",
|
|
50
50
|
"@sentry/cli": "^2.46.0",
|