@capgo/cli 7.72.2 → 7.72.4
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 +215 -214
- package/dist/package.json +4 -2
- package/dist/src/build/platform-paths.d.ts +20 -0
- package/dist/src/sdk.js +184 -183
- package/package.json +4 -2
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.72.
|
|
4
|
+
"version": "7.72.4",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -65,9 +65,11 @@
|
|
|
65
65
|
"test:credentials-validation": "bun test/test-credentials-validation.mjs",
|
|
66
66
|
"test:checksum": "bun test/test-checksum-algorithm.mjs",
|
|
67
67
|
"test:esm-sdk": "node test/test-sdk-esm.mjs",
|
|
68
|
+
"test:mcp": "node test/test-mcp.mjs",
|
|
68
69
|
"test:version-detection": "node test/test-get-installed-version.mjs",
|
|
69
70
|
"test:version-detection:setup": "./test/fixtures/setup-test-projects.sh",
|
|
70
|
-
"test": "bun
|
|
71
|
+
"test:platform-paths": "bun test/test-platform-paths.mjs",
|
|
72
|
+
"test": "bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:credentials && bun run test:credentials-validation && bun run test:checksum && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths"
|
|
71
73
|
},
|
|
72
74
|
"devDependencies": {
|
|
73
75
|
"@antfu/eslint-config": "^7.0.0",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform Path Helpers
|
|
3
|
+
*
|
|
4
|
+
* Used by cloud build packaging to resolve custom Capacitor native project paths
|
|
5
|
+
* (e.g. android.path / ios.path) in monorepos.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Normalize a user-configured relative path:
|
|
9
|
+
* - Converts Windows separators to forward slashes
|
|
10
|
+
* - Strips a leading "./"
|
|
11
|
+
* - Strips trailing slashes
|
|
12
|
+
* - Returns "" for "." / "./" / empty
|
|
13
|
+
*/
|
|
14
|
+
export declare function normalizeRelPath(input: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Get the platform directory to use inside the project zip based on Capacitor config.
|
|
17
|
+
* Falls back to the default platform directory ("ios" or "android") when not configured
|
|
18
|
+
* or when configured as ".".
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPlatformDirFromCapacitorConfig(capConfig: any, platform: 'ios' | 'android'): string;
|