@whatalo/cli-kit 1.0.0 → 1.0.2
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/config/index.cjs +2 -0
- package/dist/config/index.d.cts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.mjs +2 -0
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/version/index.cjs +3 -3
- package/dist/version/index.d.cts +2 -2
- package/dist/version/index.d.ts +2 -2
- package/dist/version/index.mjs +3 -3
- package/package.json +10 -10
package/dist/config/index.cjs
CHANGED
|
@@ -220,6 +220,8 @@ async function loadManifest(dir) {
|
|
|
220
220
|
format: "esm",
|
|
221
221
|
outfile,
|
|
222
222
|
platform: "node",
|
|
223
|
+
// Resolve imports from the user's project directory (node_modules)
|
|
224
|
+
absWorkingDir: dir,
|
|
223
225
|
// Silence esbuild output — errors are caught below
|
|
224
226
|
logLevel: "silent"
|
|
225
227
|
});
|
package/dist/config/index.d.cts
CHANGED
|
@@ -64,7 +64,7 @@ interface ManifestData {
|
|
|
64
64
|
* Loads and evaluates the `whatalo.app.ts` manifest file from a plugin project.
|
|
65
65
|
*
|
|
66
66
|
* Uses esbuild to bundle the TypeScript file (including any imports like
|
|
67
|
-
* `@whatalo/
|
|
67
|
+
* `@whatalo/plugin-sdk/manifest`) into a standalone ESM module, then dynamically
|
|
68
68
|
* imports it to extract the default export.
|
|
69
69
|
*
|
|
70
70
|
* Returns null if the file does not exist or fails to load — callers should
|
package/dist/config/index.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ interface ManifestData {
|
|
|
64
64
|
* Loads and evaluates the `whatalo.app.ts` manifest file from a plugin project.
|
|
65
65
|
*
|
|
66
66
|
* Uses esbuild to bundle the TypeScript file (including any imports like
|
|
67
|
-
* `@whatalo/
|
|
67
|
+
* `@whatalo/plugin-sdk/manifest`) into a standalone ESM module, then dynamically
|
|
68
68
|
* imports it to extract the default export.
|
|
69
69
|
*
|
|
70
70
|
* Returns null if the file does not exist or fails to load — callers should
|
package/dist/config/index.mjs
CHANGED
|
@@ -176,6 +176,8 @@ async function loadManifest(dir) {
|
|
|
176
176
|
format: "esm",
|
|
177
177
|
outfile,
|
|
178
178
|
platform: "node",
|
|
179
|
+
// Resolve imports from the user's project directory (node_modules)
|
|
180
|
+
absWorkingDir: dir,
|
|
179
181
|
// Silence esbuild output — errors are caught below
|
|
180
182
|
logLevel: "silent"
|
|
181
183
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -979,12 +979,12 @@ function checkSdkCompatibility(cliVersion, projectDir) {
|
|
|
979
979
|
const cliMajor = parseMajor(cliVersion);
|
|
980
980
|
const sdkMajor = parseMajor(sdkVersion);
|
|
981
981
|
if (cliMajor !== sdkMajor) {
|
|
982
|
-
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
982
|
+
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
983
983
|
}
|
|
984
984
|
const cliMinor = parseMinor(cliVersion);
|
|
985
985
|
const sdkMinor = parseMinor(sdkVersion);
|
|
986
986
|
if (cliMinor - sdkMinor > 1) {
|
|
987
|
-
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
987
|
+
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
988
988
|
}
|
|
989
989
|
return null;
|
|
990
990
|
}
|
|
@@ -994,7 +994,7 @@ function getSdkVersion(projectDir) {
|
|
|
994
994
|
projectDir,
|
|
995
995
|
"node_modules",
|
|
996
996
|
"@whatalo",
|
|
997
|
-
"
|
|
997
|
+
"plugin-sdk",
|
|
998
998
|
"package.json"
|
|
999
999
|
);
|
|
1000
1000
|
const raw = (0, import_node_fs3.readFileSync)(pkgPath, "utf-8");
|
package/dist/index.mjs
CHANGED
|
@@ -903,12 +903,12 @@ function checkSdkCompatibility(cliVersion, projectDir) {
|
|
|
903
903
|
const cliMajor = parseMajor(cliVersion);
|
|
904
904
|
const sdkMajor = parseMajor(sdkVersion);
|
|
905
905
|
if (cliMajor !== sdkMajor) {
|
|
906
|
-
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
906
|
+
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
907
907
|
}
|
|
908
908
|
const cliMinor = parseMinor(cliVersion);
|
|
909
909
|
const sdkMinor = parseMinor(sdkVersion);
|
|
910
910
|
if (cliMinor - sdkMinor > 1) {
|
|
911
|
-
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
911
|
+
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
912
912
|
}
|
|
913
913
|
return null;
|
|
914
914
|
}
|
|
@@ -918,7 +918,7 @@ function getSdkVersion(projectDir) {
|
|
|
918
918
|
projectDir,
|
|
919
919
|
"node_modules",
|
|
920
920
|
"@whatalo",
|
|
921
|
-
"
|
|
921
|
+
"plugin-sdk",
|
|
922
922
|
"package.json"
|
|
923
923
|
);
|
|
924
924
|
const raw = readFileSync2(pkgPath, "utf-8");
|
package/dist/version/index.cjs
CHANGED
|
@@ -164,12 +164,12 @@ function checkSdkCompatibility(cliVersion, projectDir) {
|
|
|
164
164
|
const cliMajor = parseMajor(cliVersion);
|
|
165
165
|
const sdkMajor = parseMajor(sdkVersion);
|
|
166
166
|
if (cliMajor !== sdkMajor) {
|
|
167
|
-
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
167
|
+
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
168
168
|
}
|
|
169
169
|
const cliMinor = parseMinor(cliVersion);
|
|
170
170
|
const sdkMinor = parseMinor(sdkVersion);
|
|
171
171
|
if (cliMinor - sdkMinor > 1) {
|
|
172
|
-
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
172
|
+
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
173
173
|
}
|
|
174
174
|
return null;
|
|
175
175
|
}
|
|
@@ -179,7 +179,7 @@ function getSdkVersion(projectDir) {
|
|
|
179
179
|
projectDir,
|
|
180
180
|
"node_modules",
|
|
181
181
|
"@whatalo",
|
|
182
|
-
"
|
|
182
|
+
"plugin-sdk",
|
|
183
183
|
"package.json"
|
|
184
184
|
);
|
|
185
185
|
const raw = (0, import_node_fs.readFileSync)(pkgPath, "utf-8");
|
package/dist/version/index.d.cts
CHANGED
|
@@ -29,11 +29,11 @@ declare function scheduleVersionCheck(currentVersion: string): void;
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* SDK version compatibility checker.
|
|
32
|
-
* Compares the installed @whatalo/
|
|
32
|
+
* Compares the installed @whatalo/plugin-sdk version against the CLI version
|
|
33
33
|
* and returns a warning if they are potentially incompatible.
|
|
34
34
|
*/
|
|
35
35
|
/**
|
|
36
|
-
* Checks if the installed @whatalo/
|
|
36
|
+
* Checks if the installed @whatalo/plugin-sdk version is compatible with the CLI.
|
|
37
37
|
* Returns a warning message or null if compatible.
|
|
38
38
|
*/
|
|
39
39
|
declare function checkSdkCompatibility(cliVersion: string, projectDir: string): string | null;
|
package/dist/version/index.d.ts
CHANGED
|
@@ -29,11 +29,11 @@ declare function scheduleVersionCheck(currentVersion: string): void;
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* SDK version compatibility checker.
|
|
32
|
-
* Compares the installed @whatalo/
|
|
32
|
+
* Compares the installed @whatalo/plugin-sdk version against the CLI version
|
|
33
33
|
* and returns a warning if they are potentially incompatible.
|
|
34
34
|
*/
|
|
35
35
|
/**
|
|
36
|
-
* Checks if the installed @whatalo/
|
|
36
|
+
* Checks if the installed @whatalo/plugin-sdk version is compatible with the CLI.
|
|
37
37
|
* Returns a warning message or null if compatible.
|
|
38
38
|
*/
|
|
39
39
|
declare function checkSdkCompatibility(cliVersion: string, projectDir: string): string | null;
|
package/dist/version/index.mjs
CHANGED
|
@@ -125,12 +125,12 @@ function checkSdkCompatibility(cliVersion, projectDir) {
|
|
|
125
125
|
const cliMajor = parseMajor(cliVersion);
|
|
126
126
|
const sdkMajor = parseMajor(sdkVersion);
|
|
127
127
|
if (cliMajor !== sdkMajor) {
|
|
128
|
-
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
128
|
+
return `SDK version ${sdkVersion} may not be compatible with CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
129
129
|
}
|
|
130
130
|
const cliMinor = parseMinor(cliVersion);
|
|
131
131
|
const sdkMinor = parseMinor(sdkVersion);
|
|
132
132
|
if (cliMinor - sdkMinor > 1) {
|
|
133
|
-
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/
|
|
133
|
+
return `SDK version ${sdkVersion} is behind CLI ${cliVersion}. Run: pnpm update @whatalo/plugin-sdk`;
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
@@ -140,7 +140,7 @@ function getSdkVersion(projectDir) {
|
|
|
140
140
|
projectDir,
|
|
141
141
|
"node_modules",
|
|
142
142
|
"@whatalo",
|
|
143
|
-
"
|
|
143
|
+
"plugin-sdk",
|
|
144
144
|
"package.json"
|
|
145
145
|
);
|
|
146
146
|
const raw = readFileSync(pkgPath, "utf-8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whatalo/cli-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shared CLI utilities for Whatalo plugin development tools",
|
|
@@ -71,14 +71,6 @@
|
|
|
71
71
|
"README.md",
|
|
72
72
|
"LICENSE"
|
|
73
73
|
],
|
|
74
|
-
"scripts": {
|
|
75
|
-
"build": "tsup",
|
|
76
|
-
"dev": "tsup --watch",
|
|
77
|
-
"test": "vitest run",
|
|
78
|
-
"test:watch": "vitest",
|
|
79
|
-
"type-check": "tsc --noEmit",
|
|
80
|
-
"clean": "rm -rf dist"
|
|
81
|
-
},
|
|
82
74
|
"dependencies": {
|
|
83
75
|
"@iarna/toml": "^2.2.5",
|
|
84
76
|
"chalk": "^5.4.1",
|
|
@@ -91,5 +83,13 @@
|
|
|
91
83
|
"tsup": "^8.5.0",
|
|
92
84
|
"typescript": "^5.9.3",
|
|
93
85
|
"vitest": "^3.2.4"
|
|
86
|
+
},
|
|
87
|
+
"scripts": {
|
|
88
|
+
"build": "tsup",
|
|
89
|
+
"dev": "tsup --watch",
|
|
90
|
+
"test": "vitest run",
|
|
91
|
+
"test:watch": "vitest",
|
|
92
|
+
"type-check": "tsc --noEmit",
|
|
93
|
+
"clean": "rm -rf dist"
|
|
94
94
|
}
|
|
95
|
-
}
|
|
95
|
+
}
|