@layerzerolabs/vm-tooling 0.0.58 → 0.0.60
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/bin/lz-tool.js +3 -0
- package/dist/{TO3FUAEA.js → 2X4NOJJL.js} +6 -6
- package/dist/{TO3FUAEA.js.map → 2X4NOJJL.js.map} +1 -1
- package/dist/{PDSRUQEX.js → 3PEVFTZ5.js} +3 -3
- package/dist/3PEVFTZ5.js.map +1 -0
- package/dist/{VYFY2754.cjs → 4EYI4PYN.cjs} +135 -135
- package/dist/{VYFY2754.cjs.map → 4EYI4PYN.cjs.map} +1 -1
- package/dist/{IMNIF2OY.js → 4Q36MQI5.js} +3 -3
- package/dist/{IMNIF2OY.js.map → 4Q36MQI5.js.map} +1 -1
- package/dist/{JJXZWB7K.cjs → 64SMUTQJ.cjs} +4 -4
- package/dist/64SMUTQJ.cjs.map +1 -0
- package/dist/{P6RMIIVK.cjs → 6SVY3NVF.cjs} +22 -26
- package/dist/6SVY3NVF.cjs.map +1 -0
- package/dist/{YYBFDJRD.js → 72W2AKIC.js} +3 -3
- package/dist/{YYBFDJRD.js.map → 72W2AKIC.js.map} +1 -1
- package/dist/{7DH3URRX.js → 7BFNUKIW.js} +2 -2
- package/dist/7BFNUKIW.js.map +1 -0
- package/dist/{7G26DPK3.js → 7R7EZF6Z.js} +4 -4
- package/dist/{7G26DPK3.js.map → 7R7EZF6Z.js.map} +1 -1
- package/dist/{NSZHKDNY.cjs → ABGH4Z56.cjs} +3 -3
- package/dist/ABGH4Z56.cjs.map +1 -0
- package/dist/{CH3GQSOI.js → BI33BCZD.js} +3 -3
- package/dist/{CH3GQSOI.js.map → BI33BCZD.js.map} +1 -1
- package/dist/BPGURM6D.js +298 -0
- package/dist/BPGURM6D.js.map +1 -0
- package/dist/{OXHJXMDD.js → CL6CDQMJ.js} +25 -31
- package/dist/CL6CDQMJ.js.map +1 -0
- package/dist/{RRJYWXRS.cjs → DK5YZCTB.cjs} +3 -3
- package/dist/{RRJYWXRS.cjs.map → DK5YZCTB.cjs.map} +1 -1
- package/dist/{Z7BVBO5K.cjs → F2ZPATQF.cjs} +5 -5
- package/dist/{Z7BVBO5K.cjs.map → F2ZPATQF.cjs.map} +1 -1
- package/dist/F46O4OAT.js +188 -0
- package/dist/F46O4OAT.js.map +1 -0
- package/dist/{HHS2B7YE.cjs → FUZCR6WN.cjs} +3 -3
- package/dist/{HHS2B7YE.cjs.map → FUZCR6WN.cjs.map} +1 -1
- package/dist/HI4NXK4T.cjs +127 -0
- package/dist/HI4NXK4T.cjs.map +1 -0
- package/dist/{PYQO5EUZ.cjs → IQXSRATS.cjs} +8 -8
- package/dist/{PYQO5EUZ.cjs.map → IQXSRATS.cjs.map} +1 -1
- package/dist/IWNVWC3I.js +9 -0
- package/dist/IWNVWC3I.js.map +1 -0
- package/dist/{4LRYG53T.js → IZVZ5TRG.js} +5 -5
- package/dist/{4LRYG53T.js.map → IZVZ5TRG.js.map} +1 -1
- package/dist/JGA7AJCX.js +125 -0
- package/dist/JGA7AJCX.js.map +1 -0
- package/dist/{DW3OZE6F.cjs → JWQN2QGP.cjs} +88 -88
- package/dist/{DW3OZE6F.cjs.map → JWQN2QGP.cjs.map} +1 -1
- package/dist/{2ASNEWIN.cjs → KS44PBXU.cjs} +31 -31
- package/dist/{2ASNEWIN.cjs.map → KS44PBXU.cjs.map} +1 -1
- package/dist/{4KPRGHDI.cjs → L5ENV2DK.cjs} +6 -6
- package/dist/{4KPRGHDI.cjs.map → L5ENV2DK.cjs.map} +1 -1
- package/dist/LJR3ILZB.cjs +196 -0
- package/dist/LJR3ILZB.cjs.map +1 -0
- package/dist/{EE3HP6UB.cjs → LUO6HP3P.cjs} +5 -5
- package/dist/{EE3HP6UB.cjs.map → LUO6HP3P.cjs.map} +1 -1
- package/dist/{NTYIDZH3.js → M5C4OTHX.js} +8 -8
- package/dist/{NTYIDZH3.js.map → M5C4OTHX.js.map} +1 -1
- package/dist/{L34TQNQN.cjs → M6YAIP2X.cjs} +4 -4
- package/dist/{L34TQNQN.cjs.map → M6YAIP2X.cjs.map} +1 -1
- package/dist/{Q4F544X2.cjs → NNE5MIRH.cjs} +96 -96
- package/dist/{Q4F544X2.cjs.map → NNE5MIRH.cjs.map} +1 -1
- package/dist/{VRMJKL3K.js → NUB3VR3D.js} +14 -18
- package/dist/NUB3VR3D.js.map +1 -0
- package/dist/{UL4OVG5P.js → OGU6CONG.js} +7 -7
- package/dist/{UL4OVG5P.js.map → OGU6CONG.js.map} +1 -1
- package/dist/{R6FPU7JX.cjs → OSR73KYW.cjs} +28 -34
- package/dist/OSR73KYW.cjs.map +1 -0
- package/dist/PSSBUABA.cjs +22 -0
- package/dist/PSSBUABA.cjs.map +1 -0
- package/dist/{HR64SZQX.js → PWDCAN6N.js} +4 -4
- package/dist/PWDCAN6N.js.map +1 -0
- package/dist/TC7EHVC2.cjs +11 -0
- package/dist/TC7EHVC2.cjs.map +1 -0
- package/dist/{IE5H7TSX.js → TNPXNMQM.js} +3 -3
- package/dist/{IE5H7TSX.js.map → TNPXNMQM.js.map} +1 -1
- package/dist/{VAAP26JC.js → W3N4CNDW.js} +6 -6
- package/dist/{VAAP26JC.js.map → W3N4CNDW.js.map} +1 -1
- package/dist/XOQZ3G2K.cjs +345 -0
- package/dist/XOQZ3G2K.cjs.map +1 -0
- package/dist/{7PP2QA5H.cjs → YI6EL3AH.cjs} +2 -2
- package/dist/YI6EL3AH.cjs.map +1 -0
- package/dist/{CNLWPLWD.js → ZGTCJSBO.js} +4 -4
- package/dist/{CNLWPLWD.js.map → ZGTCJSBO.js.map} +1 -1
- package/dist/ZV7VZVS6.js +20 -0
- package/dist/ZV7VZVS6.js.map +1 -0
- package/dist/config/index.cjs +14 -7
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +2 -3
- package/dist/config/tools.cjs +3 -4
- package/dist/config/tools.d.ts.map +1 -1
- package/dist/config/tools.js +2 -3
- package/dist/config/version-matrices.cjs +2 -2
- package/dist/config/version-matrices.d.ts +3 -2
- package/dist/config/version-matrices.d.ts.map +1 -1
- package/dist/config/version-matrices.js +1 -1
- package/dist/core/compatibility.cjs +2 -2
- package/dist/core/compatibility.d.ts +2 -2
- package/dist/core/compatibility.d.ts.map +1 -1
- package/dist/core/compatibility.js +1 -1
- package/dist/core/index.cjs +12 -12
- package/dist/core/index.js +7 -7
- package/dist/core/lock.cjs +4 -4
- package/dist/core/lock.js +1 -1
- package/dist/core/lock.test.cjs +6 -6
- package/dist/core/lock.test.js +1 -1
- package/dist/core/tool-executor.cjs +8 -12
- package/dist/core/tool-executor.d.ts +1 -7
- package/dist/core/tool-executor.d.ts.map +1 -1
- package/dist/core/tool-executor.js +7 -7
- package/dist/core/version-resolver.cjs +7 -8
- package/dist/core/version-resolver.d.ts +3 -2
- package/dist/core/version-resolver.d.ts.map +1 -1
- package/dist/core/version-resolver.js +4 -5
- package/dist/display/formatters.cjs +4 -6
- package/dist/display/formatters.d.ts +0 -9
- package/dist/display/formatters.d.ts.map +1 -1
- package/dist/display/formatters.js +3 -1
- package/dist/display/index.cjs +8 -13
- package/dist/display/index.d.ts +1 -1
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.js +5 -6
- package/dist/display/version-display.cjs +6 -7
- package/dist/display/version-display.d.ts.map +1 -1
- package/dist/display/version-display.js +4 -5
- package/dist/index.cjs +38 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/scripts/generate-github-matrix.cjs +158 -164
- package/dist/scripts/generate-github-matrix.cjs.map +1 -1
- package/dist/scripts/generate-github-matrix.js +21 -27
- package/dist/scripts/generate-github-matrix.js.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/tool.cjs.map +1 -1
- package/dist/types/tool.d.ts +2 -4
- package/dist/types/tool.d.ts.map +1 -1
- package/dist/types/tool.js.map +1 -1
- package/dist/types/version.cjs.map +1 -1
- package/dist/types/version.d.ts +2 -12
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/version.js.map +1 -1
- package/dist/utils/docker.cjs +18 -0
- package/dist/utils/docker.cjs.map +1 -0
- package/dist/utils/docker.d.ts +4 -0
- package/dist/utils/docker.d.ts.map +1 -0
- package/dist/utils/docker.js +5 -0
- package/dist/utils/docker.js.map +1 -0
- package/dist/utils/error.cjs +13 -0
- package/dist/utils/error.cjs.map +1 -0
- package/dist/utils/error.d.ts +2 -0
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +4 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/finder.cjs +46 -0
- package/dist/utils/{finder-utils.js.map → finder.cjs.map} +1 -1
- package/dist/utils/finder.d.ts +21 -0
- package/dist/utils/finder.d.ts.map +1 -0
- package/dist/utils/finder.js +5 -0
- package/dist/utils/{finder-utils.cjs.map → finder.js.map} +1 -1
- package/dist/utils/version.cjs +26 -0
- package/dist/utils/{version-utils.js.map → version.cjs.map} +1 -1
- package/dist/utils/{version-utils.d.ts → version.d.ts} +1 -1
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +5 -0
- package/dist/utils/{version-utils.cjs.map → version.js.map} +1 -1
- package/dist/utils.cjs +8 -3
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -1
- package/package.json +9 -7
- package/bin/lz-tool.cjs +0 -18
- package/dist/3CLGGUZ6.js +0 -45
- package/dist/3CLGGUZ6.js.map +0 -1
- package/dist/4SK6SDII.cjs +0 -183
- package/dist/4SK6SDII.cjs.map +0 -1
- package/dist/5OKX3IYN.js +0 -45
- package/dist/5OKX3IYN.js.map +0 -1
- package/dist/5RAWDGJY.cjs +0 -53
- package/dist/5RAWDGJY.cjs.map +0 -1
- package/dist/7DH3URRX.js.map +0 -1
- package/dist/7PP2QA5H.cjs.map +0 -1
- package/dist/A34JELOF.js +0 -263
- package/dist/A34JELOF.js.map +0 -1
- package/dist/DYZKD7UQ.cjs +0 -301
- package/dist/DYZKD7UQ.cjs.map +0 -1
- package/dist/FLI6L2YX.cjs +0 -48
- package/dist/FLI6L2YX.cjs.map +0 -1
- package/dist/HR64SZQX.js.map +0 -1
- package/dist/JJXZWB7K.cjs.map +0 -1
- package/dist/NSZHKDNY.cjs.map +0 -1
- package/dist/OXHJXMDD.js.map +0 -1
- package/dist/P6RMIIVK.cjs.map +0 -1
- package/dist/PDSRUQEX.js.map +0 -1
- package/dist/Q3QTBCVZ.cjs +0 -268
- package/dist/Q3QTBCVZ.cjs.map +0 -1
- package/dist/QZ7GXWCY.js +0 -259
- package/dist/QZ7GXWCY.js.map +0 -1
- package/dist/R6FPU7JX.cjs.map +0 -1
- package/dist/VRMJKL3K.js.map +0 -1
- package/dist/XNBCDROQ.js +0 -181
- package/dist/XNBCDROQ.js.map +0 -1
- package/dist/utils/finder-utils.cjs +0 -39
- package/dist/utils/finder-utils.d.ts +0 -31
- package/dist/utils/finder-utils.d.ts.map +0 -1
- package/dist/utils/finder-utils.js +0 -6
- package/dist/utils/index.cjs +0 -56
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/version-utils.cjs +0 -27
- package/dist/utils/version-utils.d.ts.map +0 -1
- package/dist/utils/version-utils.js +0 -6
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"names":["init_cjs_shims"],"mappings":";;;;;AAAAA,2BAAA,EAAA","file":"index.cjs","sourcesContent":["// Export all tool-related types\nexport type {
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"names":["init_cjs_shims"],"mappings":";;;;;AAAAA,2BAAA,EAAA","file":"index.cjs","sourcesContent":["// Export all tool-related types\nexport type { GetExpectedVersionParameter, Tool, Version } from './tool';\n\n// Export all version-related types\nexport type { VersionCombination, VersionResolutionResult } from './version';\n\n// Export all docker-related types\nexport type { EnvironmentVariable, VolumeMapping } from './docker';\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { GetExpectedVersionParameter, Tool,
|
|
2
|
-
export type {
|
|
1
|
+
export type { GetExpectedVersionParameter, Tool, Version } from './tool';
|
|
2
|
+
export type { VersionCombination, VersionResolutionResult } from './version';
|
|
3
3
|
export type { EnvironmentVariable, VolumeMapping } from './docker';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,2BAA2B,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGzE,YAAY,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAG7E,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"index.js","sourcesContent":["// Export all tool-related types\nexport type {
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"index.js","sourcesContent":["// Export all tool-related types\nexport type { GetExpectedVersionParameter, Tool, Version } from './tool';\n\n// Export all version-related types\nexport type { VersionCombination, VersionResolutionResult } from './version';\n\n// Export all docker-related types\nexport type { EnvironmentVariable, VolumeMapping } from './docker';\n"]}
|
package/dist/types/tool.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/tool.ts"],"names":["init_cjs_shims"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/types/tool.ts"],"names":["init_cjs_shims"],"mappings":";;;;;AA4BAA,2BAAA,EAAA","file":"tool.cjs","sourcesContent":["import type { ChainType } from '@layerzerolabs/layerzero-definitions';\n\nexport interface GetExpectedVersionParameter {\n cwd: string;\n}\n\n/**\n * Represents a VM tool with its configuration (version info managed by version-matrices)\n */\nexport interface Tool {\n name: string;\n chainType: ChainType;\n privileged?: boolean;\n\n // Default isolate volumes for caching (user volumes can override these)\n defaultVolumes?: VolumeMapping[];\n\n // Optional version parsing and validation functions\n getSecondaryVersionCheckValue?: (args: GetExpectedVersionParameter) => Version;\n}\n\n/**\n * Version interface\n */\nexport interface Version {\n version: string;\n}\n\n// Import VolumeMapping type for the defaultVolumes field\nimport type { VolumeMapping } from './docker';\n"]}
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type ToolType = 'solana' | 'aptos' | 'initia' | 'evm' | 'ton' | 'starknet' | 'stellar' | 'sui';
|
|
1
|
+
import type { ChainType } from '@layerzerolabs/layerzero-definitions';
|
|
3
2
|
export interface GetExpectedVersionParameter {
|
|
4
3
|
cwd: string;
|
|
5
4
|
}
|
|
@@ -8,8 +7,7 @@ export interface GetExpectedVersionParameter {
|
|
|
8
7
|
*/
|
|
9
8
|
export interface Tool {
|
|
10
9
|
name: string;
|
|
11
|
-
|
|
12
|
-
fromImage: ToolingImageTargetName;
|
|
10
|
+
chainType: ChainType;
|
|
13
11
|
privileged?: boolean;
|
|
14
12
|
defaultVolumes?: VolumeMapping[];
|
|
15
13
|
getSecondaryVersionCheckValue?: (args: GetExpectedVersionParameter) => Version;
|
package/dist/types/tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/types/tool.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/types/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,MAAM,WAAW,2BAA2B;IACxC,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IAGjC,6BAA6B,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,OAAO,CAAC;CAClF;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,MAAM,CAAC;CACnB;AAGD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/types/tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/tool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../../src/types/tool.ts"],"names":[],"mappings":";;;AA4BA,cAAA,EAAA","file":"tool.js","sourcesContent":["import type { ChainType } from '@layerzerolabs/layerzero-definitions';\n\nexport interface GetExpectedVersionParameter {\n cwd: string;\n}\n\n/**\n * Represents a VM tool with its configuration (version info managed by version-matrices)\n */\nexport interface Tool {\n name: string;\n chainType: ChainType;\n privileged?: boolean;\n\n // Default isolate volumes for caching (user volumes can override these)\n defaultVolumes?: VolumeMapping[];\n\n // Optional version parsing and validation functions\n getSecondaryVersionCheckValue?: (args: GetExpectedVersionParameter) => Version;\n}\n\n/**\n * Version interface\n */\nexport interface Version {\n version: string;\n}\n\n// Import VolumeMapping type for the defaultVolumes field\nimport type { VolumeMapping } from './docker';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/version.ts"],"names":["init_cjs_shims"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/types/version.ts"],"names":["init_cjs_shims"],"mappings":";;;;;AAAAA,2BAAA,EAAA","file":"version.cjs","sourcesContent":["/**\n * Represents a specific version combination for tools\n */\nexport interface VersionCombination {\n versions: { [key: string]: string }; // Tool name -> version mapping\n description?: string; // Optional description for this combination\n patch?: number; // Docker image patch version (integers only)\n stable?: boolean;\n}\n\n/**\n * Result of version resolution process\n */\nexport interface VersionResolutionResult {\n resolvedVersions: { [key: string]: string };\n isCompatibleCombination: boolean;\n usedDefaultFor: string[]; // Tools that used default versions\n warnings: string[];\n combinationId?: string; // ID of the matched combination if compatible\n}\n"]}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import type { ToolType } from './tool';
|
|
2
1
|
/**
|
|
3
2
|
* Represents a specific version combination for tools
|
|
4
3
|
*/
|
|
5
4
|
export interface VersionCombination {
|
|
6
|
-
id: string;
|
|
7
5
|
versions: {
|
|
8
|
-
[key: string]: string
|
|
6
|
+
[key: string]: string;
|
|
9
7
|
};
|
|
10
|
-
isRecommended?: boolean;
|
|
11
8
|
description?: string;
|
|
12
9
|
patch?: number;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Defines the version compatibility matrix for a tool type
|
|
16
|
-
* Default combination is the first one marked as isRecommended=true, or combinations[0] if none marked
|
|
17
|
-
*/
|
|
18
|
-
export interface ToolVersionMatrix {
|
|
19
|
-
toolType: ToolType;
|
|
20
|
-
combinations: VersionCombination[];
|
|
10
|
+
stable?: boolean;
|
|
21
11
|
}
|
|
22
12
|
/**
|
|
23
13
|
* Result of version resolution process
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/types/version.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/types/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC5C,uBAAuB,EAAE,OAAO,CAAC;IACjC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/version.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../../src/types/version.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"version.js","sourcesContent":["/**\n * Represents a specific version combination for tools\n */\nexport interface VersionCombination {\n versions: { [key: string]: string }; // Tool name -> version mapping\n description?: string; // Optional description for this combination\n patch?: number; // Docker image patch version (integers only)\n stable?: boolean;\n}\n\n/**\n * Result of version resolution process\n */\nexport interface VersionResolutionResult {\n resolvedVersions: { [key: string]: string };\n isCompatibleCombination: boolean;\n usedDefaultFor: string[]; // Tools that used default versions\n warnings: string[];\n combinationId?: string; // ID of the matched combination if compatible\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var XOQZ3G2K_cjs = require('../XOQZ3G2K.cjs');
|
|
4
|
+
require('../HI4NXK4T.cjs');
|
|
5
|
+
require('../VO65XOWD.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "getImageTag", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return XOQZ3G2K_cjs.getImageTag; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "getImageURI", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return XOQZ3G2K_cjs.getImageURI; }
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=docker.cjs.map
|
|
18
|
+
//# sourceMappingURL=docker.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"docker.cjs"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VersionCombination } from '../types/version.js';
|
|
2
|
+
export declare const getImageURI: (toolName: string, version: string) => string;
|
|
3
|
+
export declare const getImageTag: ({ versions, patch }: VersionCombination, separator?: "_" | "-") => string;
|
|
4
|
+
//# sourceMappingURL=docker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../src/utils/docker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,KAAG,MAgB/D,CAAC;AAEF,eAAO,MAAM,WAAW,GACpB,qBAAqB,kBAAkB,EACvC,YAAW,GAAG,GAAG,GAAS,KAC3B,MACgG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"docker.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var TC7EHVC2_cjs = require('../TC7EHVC2.cjs');
|
|
4
|
+
require('../VO65XOWD.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "stringifyError", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return TC7EHVC2_cjs.stringifyError; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=error.cjs.map
|
|
13
|
+
//# sourceMappingURL=error.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"error.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/utils/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,KAAG,MACU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"error.js"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var XOQZ3G2K_cjs = require('../XOQZ3G2K.cjs');
|
|
4
|
+
require('../HI4NXK4T.cjs');
|
|
5
|
+
require('../VO65XOWD.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "findMatrixForTool", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return XOQZ3G2K_cjs.findMatrixForTool; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "findToolByName", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return XOQZ3G2K_cjs.findToolByName; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "findToolsByType", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return XOQZ3G2K_cjs.findToolsByType; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "getChainTypeForTool", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return XOQZ3G2K_cjs.getChainTypeForTool; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "getImageBasenameForType", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return XOQZ3G2K_cjs.getImageBasenameForType; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "getImageNameForTool", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return XOQZ3G2K_cjs.getImageNameForTool; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "getImageNameForType", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return XOQZ3G2K_cjs.getImageNameForType; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "getToolDefaultVersion", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return XOQZ3G2K_cjs.getToolDefaultVersion; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "getToolSupportedVersions", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return XOQZ3G2K_cjs.getToolSupportedVersions; }
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=finder.cjs.map
|
|
46
|
+
//# sourceMappingURL=finder.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"finder
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"finder.cjs"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChainType } from '@layerzerolabs/layerzero-definitions';
|
|
2
|
+
import type { Tool, VersionCombination } from '../types';
|
|
3
|
+
export declare const findToolByName: (toolName: string) => Tool;
|
|
4
|
+
export declare const findToolsByType: (type: ChainType) => Tool[];
|
|
5
|
+
export declare const getChainTypeForTool: (toolName: string) => ChainType;
|
|
6
|
+
export declare const getImageBasenameForType: (chainType: ChainType) => string;
|
|
7
|
+
export declare const getImageNameForType: (chainType: ChainType) => string;
|
|
8
|
+
export declare const getImageNameForTool: (toolName: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Find version matrix that contains a specific tool
|
|
11
|
+
*/
|
|
12
|
+
export declare const findMatrixForTool: (toolName: string) => VersionCombination[];
|
|
13
|
+
/**
|
|
14
|
+
* Get default version for a specific tool from version matrix
|
|
15
|
+
*/
|
|
16
|
+
export declare function getToolDefaultVersion(toolName: string): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Get supported versions for a specific tool from version matrix
|
|
19
|
+
*/
|
|
20
|
+
export declare const getToolSupportedVersions: (toolName: string) => string[];
|
|
21
|
+
//# sourceMappingURL=finder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finder.d.ts","sourceRoot":"","sources":["../../src/utils/finder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGjE,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEzD,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,KAAG,IAQjD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,SAAS,KAAG,IAAI,EACH,CAAC;AAEpD,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,SACjB,CAAC;AAOvC,eAAO,MAAM,uBAAuB,GAAI,WAAW,SAAS,KAAG,MAChB,CAAC;AAEhD,eAAO,MAAM,mBAAmB,GAAI,WAAW,SAAS,KAAG,MACR,CAAC;AAEpD,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,MACD,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,kBAAkB,EAUtE,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CASrE;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,UAAU,MAAM,KAAG,MAAM,EAOtD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { findMatrixForTool, findToolByName, findToolsByType, getChainTypeForTool, getImageBasenameForType, getImageNameForTool, getImageNameForType, getToolDefaultVersion, getToolSupportedVersions } from '../BPGURM6D.js';
|
|
2
|
+
import '../JGA7AJCX.js';
|
|
3
|
+
import '../4RNWLMHM.js';
|
|
4
|
+
//# sourceMappingURL=finder.js.map
|
|
5
|
+
//# sourceMappingURL=finder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"finder
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"finder.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var XOQZ3G2K_cjs = require('../XOQZ3G2K.cjs');
|
|
4
|
+
require('../HI4NXK4T.cjs');
|
|
5
|
+
require('../VO65XOWD.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "findSemVersionFromString", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return XOQZ3G2K_cjs.findSemVersionFromString; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "parseAnchorTomlVersion", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return XOQZ3G2K_cjs.parseAnchorTomlVersion; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "validateToolVersion", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return XOQZ3G2K_cjs.validateToolVersion; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "versionsSatisfied", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return XOQZ3G2K_cjs.versionsSatisfied; }
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=version.cjs.map
|
|
26
|
+
//# sourceMappingURL=version.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"version
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"version.cjs"}
|
|
@@ -15,4 +15,4 @@ export declare function findSemVersionFromString(input: string): Version;
|
|
|
15
15
|
* Validate if a tool version is in the supported versions list
|
|
16
16
|
*/
|
|
17
17
|
export declare function validateToolVersion(toolName: string, version: string): boolean;
|
|
18
|
-
//# sourceMappingURL=version
|
|
18
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAE9E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAoBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAO/D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAG9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"version
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"version.js"}
|
package/dist/utils.cjs
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var XOQZ3G2K_cjs = require('./XOQZ3G2K.cjs');
|
|
4
|
+
require('./HI4NXK4T.cjs');
|
|
4
5
|
require('./VO65XOWD.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
Object.defineProperty(exports, "findParentDirectoryWithFile", {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
11
|
+
get: function () { return XOQZ3G2K_cjs.findParentDirectoryWithFile; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "getCombinationId", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return XOQZ3G2K_cjs.getCombinationId; }
|
|
11
16
|
});
|
|
12
17
|
Object.defineProperty(exports, "parseVersionFileContents", {
|
|
13
18
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
19
|
+
get: function () { return XOQZ3G2K_cjs.parseVersionFileContents; }
|
|
15
20
|
});
|
|
16
21
|
//# sourceMappingURL=utils.cjs.map
|
|
17
22
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VersionCombination } from './types';
|
|
1
2
|
export interface FoundDirectory {
|
|
2
3
|
directory: string;
|
|
3
4
|
file: string;
|
|
@@ -6,4 +7,5 @@ export declare function findParentDirectoryWithFile(dir: string, filename: strin
|
|
|
6
7
|
export declare function parseVersionFileContents(dir: string): {
|
|
7
8
|
[key: string]: string | undefined;
|
|
8
9
|
};
|
|
10
|
+
export declare const getCombinationId: (combination: VersionCombination) => string;
|
|
9
11
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAahG;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAqB3F;AAED,eAAO,MAAM,gBAAgB,GAAI,aAAa,kBAAkB,KAAG,MAClC,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { findParentDirectoryWithFile, parseVersionFileContents } from './
|
|
1
|
+
export { findParentDirectoryWithFile, getCombinationId, parseVersionFileContents } from './BPGURM6D.js';
|
|
2
|
+
import './JGA7AJCX.js';
|
|
2
3
|
import './4RNWLMHM.js';
|
|
3
4
|
//# sourceMappingURL=utils.js.map
|
|
4
5
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"module": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"bin": {
|
|
16
|
-
"lz-tool": "./bin/lz-tool.
|
|
16
|
+
"lz-tool": "./bin/lz-tool.js"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist/**/*",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"es-toolkit": "^1.39.10",
|
|
26
26
|
"semver": "^7.5.4",
|
|
27
27
|
"zx": "^8.1.3",
|
|
28
|
-
"@layerzerolabs/common-node-utils": "0.0.
|
|
28
|
+
"@layerzerolabs/common-node-utils": "0.0.60",
|
|
29
|
+
"@layerzerolabs/layerzero-definitions": "0.0.60"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@aws-sdk/client-ecr": "3.879.0",
|
|
@@ -38,22 +39,23 @@
|
|
|
38
39
|
"tsx": "^4.19.3",
|
|
39
40
|
"typescript": "^5.8.2",
|
|
40
41
|
"vitest": "^3.2.3",
|
|
41
|
-
"@layerzerolabs/
|
|
42
|
-
"@layerzerolabs/
|
|
42
|
+
"@layerzerolabs/typescript-configuration": "0.0.60",
|
|
43
|
+
"@layerzerolabs/tsup-configuration": "0.0.60"
|
|
43
44
|
},
|
|
44
45
|
"publishConfig": {
|
|
45
46
|
"access": "restricted",
|
|
46
47
|
"registry": "https://registry.npmjs.org/"
|
|
47
48
|
},
|
|
48
|
-
"version": "0.0.
|
|
49
|
+
"version": "0.0.60",
|
|
49
50
|
"scripts": {
|
|
50
|
-
"prebuild": "chmod +x bin/lz-tool.
|
|
51
|
+
"prebuild": "chmod +x bin/lz-tool.js",
|
|
51
52
|
"build": "tsup",
|
|
52
|
-
"checkdeps": "pnpm --filter @layerzerolabs/depcheck run depcheck validate --catalog --missing-dependencies --only $npm_package_name",
|
|
53
53
|
"clean": "rm -rf ./node_modules .turbo ./dist",
|
|
54
54
|
"generate-github-matrix": "tsx src/scripts/generate-github-matrix.ts",
|
|
55
55
|
"lint": "eslint . --max-warnings 0 || (eslint . --fix --max-warnings 0 && false)",
|
|
56
56
|
"test": "vitest --run --typecheck",
|
|
57
|
+
"test:integration": "vitest run test/",
|
|
58
|
+
"test:unit": "vitest run --exclude test",
|
|
57
59
|
"typecheck": "tsc --noEmit"
|
|
58
60
|
}
|
|
59
61
|
}
|
package/bin/lz-tool.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
|
|
5
|
-
const builtVersion = path.join(__dirname, '../dist/index.cjs');
|
|
6
|
-
|
|
7
|
-
if (fs.existsSync(builtVersion)) {
|
|
8
|
-
require(builtVersion);
|
|
9
|
-
} else {
|
|
10
|
-
console.error('❌ @layerzerolabs/vm-tooling has not been built yet!');
|
|
11
|
-
console.error('');
|
|
12
|
-
console.error('Please run:');
|
|
13
|
-
console.error(' pnpm --filter @layerzerolabs/vm-tooling build');
|
|
14
|
-
console.error('');
|
|
15
|
-
console.error('Or build all packages:');
|
|
16
|
-
console.error(' pnpm build');
|
|
17
|
-
process.exit(1);
|
|
18
|
-
}
|
package/dist/3CLGGUZ6.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { init_esm_shims, __name } from './4RNWLMHM.js';
|
|
2
|
-
import { parse } from 'dotenv';
|
|
3
|
-
import fs from 'fs';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
|
|
6
|
-
// src/utils.ts
|
|
7
|
-
init_esm_shims();
|
|
8
|
-
function findParentDirectoryWithFile(dir, filename) {
|
|
9
|
-
let cur = dir;
|
|
10
|
-
while (cur !== "/") {
|
|
11
|
-
const filePath = path.join(cur, filename);
|
|
12
|
-
if (fs.existsSync(filePath)) {
|
|
13
|
-
return {
|
|
14
|
-
directory: cur,
|
|
15
|
-
file: filePath
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
cur = path.dirname(cur);
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
__name(findParentDirectoryWithFile, "findParentDirectoryWithFile");
|
|
23
|
-
function parseVersionFileContents(dir) {
|
|
24
|
-
let out = {};
|
|
25
|
-
let cur = dir;
|
|
26
|
-
while (cur !== "/") {
|
|
27
|
-
const found = findParentDirectoryWithFile(cur, ".versions");
|
|
28
|
-
if (found === null) {
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
cur = path.dirname(found.directory);
|
|
32
|
-
const contents = fs.readFileSync(found.file, "utf-8");
|
|
33
|
-
const parsed = parse(contents);
|
|
34
|
-
out = {
|
|
35
|
-
...parsed,
|
|
36
|
-
...out
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return out;
|
|
40
|
-
}
|
|
41
|
-
__name(parseVersionFileContents, "parseVersionFileContents");
|
|
42
|
-
|
|
43
|
-
export { findParentDirectoryWithFile, parseVersionFileContents };
|
|
44
|
-
//# sourceMappingURL=3CLGGUZ6.js.map
|
|
45
|
-
//# sourceMappingURL=3CLGGUZ6.js.map
|
package/dist/3CLGGUZ6.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils.ts"],"names":["findParentDirectoryWithFile","dir","filename","cur","filePath","path","join","fs","existsSync","directory","file","dirname","parseVersionFileContents","out","found","contents","readFileSync","parsed","dotenvParse"],"mappings":";;;;;;AAAA,cAAA,EAAA;AAQO,SAASA,2BAAAA,CAA4BC,KAAaC,QAAAA,EAAgB;AACrE,EAAA,IAAIC,GAAAA,GAAMF,GAAAA;AAEV,EAAA,OAAOE,QAAQ,GAAA,EAAK;AAChB,IAAA,MAAMC,QAAAA,GAAWC,IAAAA,CAAKC,IAAAA,CAAKH,GAAAA,EAAKD,QAAAA,CAAAA;AAChC,IAAA,IAAIK,EAAAA,CAAGC,UAAAA,CAAWJ,QAAAA,CAAAA,EAAW;AACzB,MAAA,OAAO;QAAEK,SAAAA,EAAWN,GAAAA;QAAKO,IAAAA,EAAMN;AAAS,OAAA;AAC5C,IAAA;AAEAD,IAAAA,GAAAA,GAAME,IAAAA,CAAKM,QAAQR,GAAAA,CAAAA;AACvB,EAAA;AAEA,EAAA,OAAO,IAAA;AACX;AAbgBH,MAAAA,CAAAA,2BAAAA,EAAAA,6BAAAA,CAAAA;AAeT,SAASY,yBAAyBX,GAAAA,EAAW;AAChD,EAAA,IAAIY,MAAM,EAAC;AAEX,EAAA,IAAIV,GAAAA,GAAMF,GAAAA;AACV,EAAA,OAAOE,QAAQ,GAAA,EAAK;AAChB,IAAA,MAAMW,KAAAA,GAAQd,2BAAAA,CAA4BG,GAAAA,EAAK,WAAA,CAAA;AAC/C,IAAA,IAAIW,UAAU,IAAA,EAAM;AAChB,MAAA;AACJ,IAAA;AACAX,IAAAA,GAAAA,GAAME,IAAAA,CAAKM,OAAAA,CAAQG,KAAAA,CAAML,SAAS,CAAA;AAElC,IAAA,MAAMM,QAAAA,GAAWR,EAAAA,CAAGS,YAAAA,CAAaF,KAAAA,CAAMJ,MAAM,OAAA,CAAA;AAC7C,IAAA,MAAMO,MAAAA,GAASC,MAAYH,QAAAA,CAAAA;AAE3BF,IAAAA,GAAAA,GAAM;MACF,GAAGI,MAAAA;MACH,GAAGJ;AACP,KAAA;AACJ,EAAA;AAEA,EAAA,OAAOA,GAAAA;AACX;AArBgBD,MAAAA,CAAAA,wBAAAA,EAAAA,0BAAAA,CAAAA","file":"3CLGGUZ6.js","sourcesContent":["import { parse as dotenvParse } from 'dotenv';\nimport fs from 'fs';\nimport path from 'path';\n\nexport interface FoundDirectory {\n directory: string;\n file: string;\n}\nexport function findParentDirectoryWithFile(dir: string, filename: string): FoundDirectory | null {\n let cur = dir;\n\n while (cur !== '/') {\n const filePath = path.join(cur, filename);\n if (fs.existsSync(filePath)) {\n return { directory: cur, file: filePath };\n }\n\n cur = path.dirname(cur);\n }\n\n return null;\n}\n\nexport function parseVersionFileContents(dir: string): { [key: string]: string | undefined } {\n let out = {};\n\n let cur = dir;\n while (cur !== '/') {\n const found = findParentDirectoryWithFile(cur, '.versions');\n if (found === null) {\n break;\n }\n cur = path.dirname(found.directory);\n\n const contents = fs.readFileSync(found.file, 'utf-8');\n const parsed = dotenvParse(contents);\n\n out = {\n ...parsed,\n ...out,\n };\n }\n\n return out;\n}\n"]}
|