@whatalo/cli-kit 1.0.1 → 1.1.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.
- package/dist/bundle/index.cjs +420 -0
- package/dist/bundle/index.d.cts +154 -0
- package/dist/bundle/index.d.ts +154 -0
- package/dist/bundle/index.mjs +380 -0
- package/dist/config/index.cjs +3 -1
- package/dist/config/index.d.cts +4 -2
- package/dist/config/index.d.ts +4 -2
- package/dist/config/index.mjs +3 -1
- package/dist/{env-file-KvUHlLtI.d.cts → env-file-Qh_6c5K2.d.cts} +4 -0
- package/dist/{env-file-KvUHlLtI.d.ts → env-file-Qh_6c5K2.d.ts} +4 -0
- package/dist/index.cjs +79 -17
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +79 -17
- package/dist/tunnel/index.cjs +79 -14
- package/dist/tunnel/index.d.cts +27 -6
- package/dist/tunnel/index.d.ts +27 -6
- package/dist/tunnel/index.mjs +79 -14
- 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 +15 -10
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.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shared CLI utilities for Whatalo plugin development tools",
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
"types": "./dist/version/index.d.ts",
|
|
65
65
|
"import": "./dist/version/index.mjs",
|
|
66
66
|
"require": "./dist/version/index.cjs"
|
|
67
|
+
},
|
|
68
|
+
"./bundle": {
|
|
69
|
+
"types": "./dist/bundle/index.d.ts",
|
|
70
|
+
"import": "./dist/bundle/index.mjs",
|
|
71
|
+
"require": "./dist/bundle/index.cjs"
|
|
67
72
|
}
|
|
68
73
|
},
|
|
69
74
|
"files": [
|
|
@@ -71,6 +76,14 @@
|
|
|
71
76
|
"README.md",
|
|
72
77
|
"LICENSE"
|
|
73
78
|
],
|
|
79
|
+
"scripts": {
|
|
80
|
+
"build": "tsup",
|
|
81
|
+
"dev": "tsup --watch",
|
|
82
|
+
"test": "vitest run",
|
|
83
|
+
"test:watch": "vitest",
|
|
84
|
+
"type-check": "tsc --noEmit",
|
|
85
|
+
"clean": "rm -rf dist"
|
|
86
|
+
},
|
|
74
87
|
"dependencies": {
|
|
75
88
|
"@iarna/toml": "^2.2.5",
|
|
76
89
|
"chalk": "^5.4.1",
|
|
@@ -83,13 +96,5 @@
|
|
|
83
96
|
"tsup": "^8.5.0",
|
|
84
97
|
"typescript": "^5.9.3",
|
|
85
98
|
"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
99
|
}
|
|
95
|
-
}
|
|
100
|
+
}
|