@apps-in-toss/cli 3.0.2 → 3.0.3
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.js +9 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -74,8 +74,16 @@ async function buildArtifact() {
|
|
|
74
74
|
outPath
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
+
const SDK_PACKAGE_NAME = "@apps-in-toss/web-framework";
|
|
77
78
|
async function getSDKPackageJson() {
|
|
78
|
-
const
|
|
79
|
+
const projectRequire = createRequire(path$1.resolve(getPackageRoot(process.cwd()), "package.json"));
|
|
80
|
+
let packageJsonPath;
|
|
81
|
+
try {
|
|
82
|
+
packageJsonPath = projectRequire.resolve(`${SDK_PACKAGE_NAME}/package.json`);
|
|
83
|
+
} catch {
|
|
84
|
+
packageJsonPath = path$1.resolve(getPackageRoot(import.meta.dirname), "package.json");
|
|
85
|
+
}
|
|
86
|
+
const packageJsonString = (await readFile(packageJsonPath)).toString();
|
|
79
87
|
return JSON.parse(packageJsonString);
|
|
80
88
|
}
|
|
81
89
|
async function getAppsInTossConfig() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ait": "dist/index.js"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"typecheck": "tsc --noEmit"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@apps-in-toss/ait-format": "
|
|
21
|
+
"@apps-in-toss/ait-format": "1.0.0",
|
|
22
22
|
"@clack/prompts": "^1.3.0",
|
|
23
|
-
"c12": "
|
|
23
|
+
"c12": "3.3.4",
|
|
24
24
|
"clipanion": "^4.0.0-rc.4",
|
|
25
25
|
"jscodeshift": "^17.1.2",
|
|
26
26
|
"uuidv7": "^1.2.1"
|