@lage-run/cli 0.31.4 → 0.31.6
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/CHANGELOG.json +21 -0
- package/CHANGELOG.md +10 -1
- package/lib/commands/server/MemoryStream.d.ts +1 -0
- package/lib/commands/server/MemoryStream.js.map +1 -1
- package/lib/commands/targetHashFilePath.js +3 -3
- package/lib/commands/targetHashFilePath.js.map +1 -1
- package/lib/filter/getFilteredPackages.js +3 -3
- package/lib/filter/getFilteredPackages.js.map +1 -1
- package/lib/getBinPaths.js +3 -3
- package/lib/getBinPaths.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/package.json +10 -10
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Fri, 01 Aug 2025 08:09:39 GMT",
|
|
6
|
+
"version": "0.31.6",
|
|
7
|
+
"tag": "@lage-run/cli_v0.31.6",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@lage-run/cli",
|
|
13
|
+
"commit": "28308e0b441f625fb5a83daabadb55f49b208603",
|
|
14
|
+
"comment": "Export Target type"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "renovate@whitesourcesoftware.com",
|
|
18
|
+
"package": "@lage-run/cli",
|
|
19
|
+
"commit": "28308e0b441f625fb5a83daabadb55f49b208603",
|
|
20
|
+
"comment": "Update dependency workspace-tools to v0.38.4"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
4
25
|
{
|
|
5
26
|
"date": "Thu, 17 Apr 2025 08:10:01 GMT",
|
|
6
27
|
"version": "0.31.3",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# Change Log - @lage-run/cli
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 01 Aug 2025 08:09:39 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.31.6
|
|
8
|
+
|
|
9
|
+
Fri, 01 Aug 2025 08:09:39 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Export Target type (email not defined)
|
|
14
|
+
- Update dependency workspace-tools to v0.38.4 (renovate@whitesourcesoftware.com)
|
|
15
|
+
|
|
7
16
|
## 0.31.3
|
|
8
17
|
|
|
9
18
|
Thu, 17 Apr 2025 08:10:01 GMT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/server/MemoryStream.ts"],"sourcesContent":["import { Writable } from \"stream\";\n\nexport class MemoryStream extends Writable {\n private chunks: Buffer[];\n\n constructor() {\n super();\n this.chunks = [];\n }\n\n _write(chunk: any, encoding: BufferEncoding) {\n this.chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n }\n\n getData(): Buffer {\n return Buffer.concat(this.chunks);\n }\n\n toString(): string {\n return this.getData().toString();\n }\n}\n"],"names":["MemoryStream","Writable","_write","chunk","encoding","chunks","push","Buffer","isBuffer","from","getData","concat","toString"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/server/MemoryStream.ts"],"sourcesContent":["import { Writable } from \"stream\";\n\nexport class MemoryStream extends Writable {\n private chunks: Buffer[];\n\n constructor() {\n super();\n this.chunks = [];\n }\n\n _write(chunk: any, encoding: BufferEncoding) {\n this.chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n }\n\n getData(): Buffer {\n return Buffer.concat(this.chunks);\n }\n\n toString(): string {\n return this.getData().toString();\n }\n}\n"],"names":["MemoryStream","Writable","_write","chunk","encoding","chunks","push","Buffer","isBuffer","from","getData","concat","toString"],"mappings":";;;;+BAEaA;;;eAAAA;;;wBAFY;;;;;;;;;;;;;;AAElB,MAAMA,qBAAqBC,gBAAQ;IAQxCC,OAAOC,KAAU,EAAEC,QAAwB,EAAE;QAC3C,IAAI,CAACC,MAAM,CAACC,IAAI,CAACC,OAAOC,QAAQ,CAACL,SAASA,QAAQI,OAAOE,IAAI,CAACN,OAAOC;IACvE;IAEAM,UAAkB;QAChB,OAAOH,OAAOI,MAAM,CAAC,IAAI,CAACN,MAAM;IAClC;IAEAO,WAAmB;QACjB,OAAO,IAAI,CAACF,OAAO,GAAGE,QAAQ;IAChC;IAfA,aAAc;QACZ,KAAK,IAHP,uBAAQP,UAAR,KAAA;QAIE,IAAI,CAACA,MAAM,GAAG,EAAE;IAClB;AAaF"}
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
getGlobalInputHashFilePath
|
|
12
|
+
get getGlobalInputHashFilePath () {
|
|
13
13
|
return getGlobalInputHashFilePath;
|
|
14
14
|
},
|
|
15
|
-
getHashFilePath
|
|
15
|
+
get getHashFilePath () {
|
|
16
16
|
return getHashFilePath;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/targetHashFilePath.ts"],"sourcesContent":["import path from \"path\";\n\nexport function getHashFilePath(target: { task: string }) {\n return path.join(`node_modules/.lage/hash_${target.task}`);\n}\n\nexport function getGlobalInputHashFilePath(target: { task: string }) {\n return path.join(`node_modules/.lage/global_inputs_hash_${target.task}`);\n}\n"],"names":["getGlobalInputHashFilePath","getHashFilePath","target","path","join","task"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/commands/targetHashFilePath.ts"],"sourcesContent":["import path from \"path\";\n\nexport function getHashFilePath(target: { task: string }) {\n return path.join(`node_modules/.lage/hash_${target.task}`);\n}\n\nexport function getGlobalInputHashFilePath(target: { task: string }) {\n return path.join(`node_modules/.lage/global_inputs_hash_${target.task}`);\n}\n"],"names":["getGlobalInputHashFilePath","getHashFilePath","target","path","join","task"],"mappings":";;;;;;;;;;;QAMgBA;eAAAA;;QAJAC;eAAAA;;;6DAFC;;;;;;AAEV,SAASA,gBAAgBC,MAAwB;IACtD,OAAOC,aAAI,CAACC,IAAI,CAAC,CAAC,wBAAwB,EAAEF,OAAOG,IAAI,EAAE;AAC3D;AAEO,SAASL,2BAA2BE,MAAwB;IACjE,OAAOC,aAAI,CAACC,IAAI,CAAC,CAAC,sCAAsC,EAAEF,OAAOG,IAAI,EAAE;AACzE"}
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
filterPackages
|
|
12
|
+
get filterPackages () {
|
|
13
13
|
return filterPackages;
|
|
14
14
|
},
|
|
15
|
-
getFilteredPackages
|
|
15
|
+
get getFilteredPackages () {
|
|
16
16
|
return getFilteredPackages;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/filter/getFilteredPackages.ts"],"sourcesContent":["import type { PackageInfos } from \"workspace-tools\";\nimport { getScopedPackages, getChangedPackages, getTransitiveDependents, getTransitiveDependencies } from \"workspace-tools\";\n\nimport type { Logger } from \"@lage-run/logger\";\nimport { hasRepoChanged } from \"./hasRepoChanged.js\";\n\nexport function getFilteredPackages(options: {\n root: string;\n packageInfos: PackageInfos;\n logger: Logger;\n scope: string[] | undefined;\n since: string | undefined;\n sinceIgnoreGlobs: string[] | undefined;\n repoWideChanges: string[];\n includeDependents: boolean;\n includeDependencies: boolean;\n}) {\n const { scope, since, sinceIgnoreGlobs, repoWideChanges, includeDependents, includeDependencies, logger, packageInfos, root } = options;\n\n // If scoped is defined, get scoped packages\n const hasScopes = Array.isArray(scope) && scope.length > 0;\n let scopedPackages: string[] | undefined = undefined;\n let filteredPackages: string[] | undefined = undefined;\n let changedPackages: string[] | undefined = undefined;\n const hasSince = typeof since !== \"undefined\";\n\n // If scope is defined, get scoped packages and return\n if (hasScopes) {\n scopedPackages = getScopedPackages(scope!, packageInfos);\n // return filteredPackages;\n return filterPackages({\n logger,\n packageInfos,\n scopedPackages,\n changedPackages,\n includeDependencies,\n includeDependents,\n });\n }\n // If since is defined, get changed packages.\n else if (hasSince) {\n try {\n changedPackages = getChangedPackages(root, since, sinceIgnoreGlobs);\n } catch (e) {\n logger.warn(`An error in the git command has caused this scope run to include every package\\n${e}`);\n // if getChangedPackages throws, we will assume all have changed (using changedPackage = undefined)\n }\n filteredPackages = filterPackages({\n logger,\n packageInfos,\n scopedPackages,\n changedPackages,\n includeDependencies,\n includeDependents,\n });\n\n // If the defined repo-wide changes are detected the get all packages and append to the filtered packages.\n // This alo ensures that the modified packages are always run first.\n if (hasRepoChanged(since, root, repoWideChanges, logger)) {\n logger.verbose(\n `Repo-wide changes detected, running all packages. The following changed packages and their deps (if specified) will be run first: ${filteredPackages.join(\n \",\"\n )}`\n );\n filteredPackages = [...new Set(filteredPackages.concat(Object.keys(packageInfos)))];\n }\n return filteredPackages;\n } else {\n // If neither scope or since is defined, return all packages\n return Object.keys(packageInfos);\n }\n}\n\nexport function filterPackages(options: {\n logger: Logger;\n packageInfos: PackageInfos;\n includeDependents: boolean;\n includeDependencies: boolean;\n scopedPackages: string[] | undefined;\n changedPackages: string[] | undefined;\n}) {\n const { scopedPackages, changedPackages, packageInfos, includeDependents, includeDependencies, logger } = options;\n\n let filtered: string[] = [];\n\n // If scope is defined, use the transitive providers of the since packages up to the scope\n if (typeof scopedPackages !== \"undefined\" && typeof changedPackages !== \"undefined\") {\n // If both scoped and since are specified, we have to merge two lists:\n // 1. changed packages that ARE themselves the scoped packages\n // 2. changed package consumers (package dependents) that are within the scoped subgraph\n filtered = changedPackages\n .filter((pkg) => scopedPackages.includes(pkg))\n .concat(getTransitiveDependents(changedPackages, packageInfos, scopedPackages));\n\n logger.verbose(`filterPackages changed within scope: ${filtered.join(\",\")}`);\n } else if (typeof changedPackages !== \"undefined\") {\n filtered = [...changedPackages];\n logger.verbose(`filterPackages changed: ${changedPackages.join(\",\")}`);\n } else if (typeof scopedPackages !== \"undefined\") {\n filtered = [...scopedPackages];\n logger.verbose(`filterPackages scope: ${scopedPackages.join(\",\")}`);\n } else {\n filtered = Object.keys(packageInfos);\n }\n\n // adds dependents (consumers) of all filtered package thus far\n if (includeDependents) {\n logger.verbose(`filterPackages running with dependents`);\n filtered = filtered.concat(getTransitiveDependents(filtered, packageInfos));\n }\n\n // adds dependencies of all filtered package thus far\n if (includeDependencies) {\n logger.verbose(`filterPackages running with dependencies`);\n filtered = filtered.concat(getTransitiveDependencies(filtered, packageInfos));\n }\n\n const unique = new Set(filtered);\n\n return [...unique];\n}\n"],"names":["filterPackages","getFilteredPackages","options","scope","since","sinceIgnoreGlobs","repoWideChanges","includeDependents","includeDependencies","logger","packageInfos","root","hasScopes","Array","isArray","length","scopedPackages","undefined","filteredPackages","changedPackages","hasSince","getScopedPackages","getChangedPackages","e","warn","hasRepoChanged","verbose","join","Set","concat","Object","keys","filtered","filter","pkg","includes","getTransitiveDependents","getTransitiveDependencies","unique"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/filter/getFilteredPackages.ts"],"sourcesContent":["import type { PackageInfos } from \"workspace-tools\";\nimport { getScopedPackages, getChangedPackages, getTransitiveDependents, getTransitiveDependencies } from \"workspace-tools\";\n\nimport type { Logger } from \"@lage-run/logger\";\nimport { hasRepoChanged } from \"./hasRepoChanged.js\";\n\nexport function getFilteredPackages(options: {\n root: string;\n packageInfos: PackageInfos;\n logger: Logger;\n scope: string[] | undefined;\n since: string | undefined;\n sinceIgnoreGlobs: string[] | undefined;\n repoWideChanges: string[];\n includeDependents: boolean;\n includeDependencies: boolean;\n}) {\n const { scope, since, sinceIgnoreGlobs, repoWideChanges, includeDependents, includeDependencies, logger, packageInfos, root } = options;\n\n // If scoped is defined, get scoped packages\n const hasScopes = Array.isArray(scope) && scope.length > 0;\n let scopedPackages: string[] | undefined = undefined;\n let filteredPackages: string[] | undefined = undefined;\n let changedPackages: string[] | undefined = undefined;\n const hasSince = typeof since !== \"undefined\";\n\n // If scope is defined, get scoped packages and return\n if (hasScopes) {\n scopedPackages = getScopedPackages(scope!, packageInfos);\n // return filteredPackages;\n return filterPackages({\n logger,\n packageInfos,\n scopedPackages,\n changedPackages,\n includeDependencies,\n includeDependents,\n });\n }\n // If since is defined, get changed packages.\n else if (hasSince) {\n try {\n changedPackages = getChangedPackages(root, since, sinceIgnoreGlobs);\n } catch (e) {\n logger.warn(`An error in the git command has caused this scope run to include every package\\n${e}`);\n // if getChangedPackages throws, we will assume all have changed (using changedPackage = undefined)\n }\n filteredPackages = filterPackages({\n logger,\n packageInfos,\n scopedPackages,\n changedPackages,\n includeDependencies,\n includeDependents,\n });\n\n // If the defined repo-wide changes are detected the get all packages and append to the filtered packages.\n // This alo ensures that the modified packages are always run first.\n if (hasRepoChanged(since, root, repoWideChanges, logger)) {\n logger.verbose(\n `Repo-wide changes detected, running all packages. The following changed packages and their deps (if specified) will be run first: ${filteredPackages.join(\n \",\"\n )}`\n );\n filteredPackages = [...new Set(filteredPackages.concat(Object.keys(packageInfos)))];\n }\n return filteredPackages;\n } else {\n // If neither scope or since is defined, return all packages\n return Object.keys(packageInfos);\n }\n}\n\nexport function filterPackages(options: {\n logger: Logger;\n packageInfos: PackageInfos;\n includeDependents: boolean;\n includeDependencies: boolean;\n scopedPackages: string[] | undefined;\n changedPackages: string[] | undefined;\n}) {\n const { scopedPackages, changedPackages, packageInfos, includeDependents, includeDependencies, logger } = options;\n\n let filtered: string[] = [];\n\n // If scope is defined, use the transitive providers of the since packages up to the scope\n if (typeof scopedPackages !== \"undefined\" && typeof changedPackages !== \"undefined\") {\n // If both scoped and since are specified, we have to merge two lists:\n // 1. changed packages that ARE themselves the scoped packages\n // 2. changed package consumers (package dependents) that are within the scoped subgraph\n filtered = changedPackages\n .filter((pkg) => scopedPackages.includes(pkg))\n .concat(getTransitiveDependents(changedPackages, packageInfos, scopedPackages));\n\n logger.verbose(`filterPackages changed within scope: ${filtered.join(\",\")}`);\n } else if (typeof changedPackages !== \"undefined\") {\n filtered = [...changedPackages];\n logger.verbose(`filterPackages changed: ${changedPackages.join(\",\")}`);\n } else if (typeof scopedPackages !== \"undefined\") {\n filtered = [...scopedPackages];\n logger.verbose(`filterPackages scope: ${scopedPackages.join(\",\")}`);\n } else {\n filtered = Object.keys(packageInfos);\n }\n\n // adds dependents (consumers) of all filtered package thus far\n if (includeDependents) {\n logger.verbose(`filterPackages running with dependents`);\n filtered = filtered.concat(getTransitiveDependents(filtered, packageInfos));\n }\n\n // adds dependencies of all filtered package thus far\n if (includeDependencies) {\n logger.verbose(`filterPackages running with dependencies`);\n filtered = filtered.concat(getTransitiveDependencies(filtered, packageInfos));\n }\n\n const unique = new Set(filtered);\n\n return [...unique];\n}\n"],"names":["filterPackages","getFilteredPackages","options","scope","since","sinceIgnoreGlobs","repoWideChanges","includeDependents","includeDependencies","logger","packageInfos","root","hasScopes","Array","isArray","length","scopedPackages","undefined","filteredPackages","changedPackages","hasSince","getScopedPackages","getChangedPackages","e","warn","hasRepoChanged","verbose","join","Set","concat","Object","keys","filtered","filter","pkg","includes","getTransitiveDependents","getTransitiveDependencies","unique"],"mappings":";;;;;;;;;;;QAyEgBA;eAAAA;;QAnEAC;eAAAA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name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
getBinPaths
|
|
12
|
+
get getBinPaths () {
|
|
13
13
|
return getBinPaths;
|
|
14
14
|
},
|
|
15
|
-
getBinScripts
|
|
15
|
+
get getBinScripts () {
|
|
16
16
|
return getBinScripts;
|
|
17
17
|
}
|
|
18
18
|
});
|
package/lib/getBinPaths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/getBinPaths.ts"],"sourcesContent":["import path from \"path\";\nimport fs from \"fs\";\nimport os from \"os\";\n\nfunction findUp(name: string, dir: string) {\n let currentDir = dir;\n while (currentDir !== \"/\") {\n const fullPath = path.join(currentDir, name);\n if (fs.existsSync(fullPath)) {\n return fullPath;\n }\n currentDir = path.dirname(currentDir);\n }\n return undefined;\n}\n\nexport function getBinPaths() {\n const bins = os.platform() === \"win32\" ? [\"lage.cmd\", \"lage-server.cmd\"] : [\"lage\", \"lage-server\"];\n const binPaths = bins.map((bin) => findUp(\"node_modules/.bin/\" + bin, __dirname));\n\n if (binPaths.some((binPath) => binPath === undefined)) {\n throw new Error(\"Could not find bin paths for lage or lage-server\");\n }\n\n return { lage: binPaths[0]!, \"lage-server\": binPaths[1]! };\n}\n\nexport function getBinScripts() {\n const thisPackageJsonPath = findUp(\"package.json\", __dirname);\n\n if (!thisPackageJsonPath) {\n throw new Error(\"Could not find package.json of this packageF\");\n }\n\n const thisPackagePath = path.dirname(thisPackageJsonPath);\n\n if (fs.existsSync(path.join(thisPackagePath, \"dist\", \"lage.js\"))) {\n // the case for CLI package after build\n return {\n lage: path.join(thisPackagePath, \"dist\", \"lage.js\"),\n \"lage-server\": path.join(thisPackagePath, \"dist\", \"lage-server.js\"),\n };\n } else {\n // the case for CLI package during development\n return {\n lage: path.join(thisPackagePath, \"bin\", \"lage.js\"),\n \"lage-server\": path.join(thisPackagePath, \"bin\", \"lage-server.js\"),\n };\n }\n}\n"],"names":["getBinPaths","getBinScripts","findUp","name","dir","currentDir","fullPath","path","join","fs","existsSync","dirname","undefined","bins","os","platform","binPaths","map","bin","__dirname","some","binPath","Error","lage","thisPackageJsonPath","thisPackagePath"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/getBinPaths.ts"],"sourcesContent":["import path from \"path\";\nimport fs from \"fs\";\nimport os from \"os\";\n\nfunction findUp(name: string, dir: string) {\n let currentDir = dir;\n while (currentDir !== \"/\") {\n const fullPath = path.join(currentDir, name);\n if (fs.existsSync(fullPath)) {\n return fullPath;\n }\n currentDir = path.dirname(currentDir);\n }\n return undefined;\n}\n\nexport function getBinPaths() {\n const bins = os.platform() === \"win32\" ? [\"lage.cmd\", \"lage-server.cmd\"] : [\"lage\", \"lage-server\"];\n const binPaths = bins.map((bin) => findUp(\"node_modules/.bin/\" + bin, __dirname));\n\n if (binPaths.some((binPath) => binPath === undefined)) {\n throw new Error(\"Could not find bin paths for lage or lage-server\");\n }\n\n return { lage: binPaths[0]!, \"lage-server\": binPaths[1]! };\n}\n\nexport function getBinScripts() {\n const thisPackageJsonPath = findUp(\"package.json\", __dirname);\n\n if (!thisPackageJsonPath) {\n throw new Error(\"Could not find package.json of this packageF\");\n }\n\n const thisPackagePath = path.dirname(thisPackageJsonPath);\n\n if (fs.existsSync(path.join(thisPackagePath, \"dist\", \"lage.js\"))) {\n // the case for CLI package after build\n return {\n lage: path.join(thisPackagePath, \"dist\", \"lage.js\"),\n \"lage-server\": path.join(thisPackagePath, \"dist\", \"lage-server.js\"),\n };\n } else {\n // the case for CLI package during development\n return {\n lage: path.join(thisPackagePath, \"bin\", \"lage.js\"),\n \"lage-server\": path.join(thisPackagePath, \"bin\", \"lage-server.js\"),\n };\n }\n}\n"],"names":["getBinPaths","getBinScripts","findUp","name","dir","currentDir","fullPath","path","join","fs","existsSync","dirname","undefined","bins","os","platform","binPaths","map","bin","__dirname","some","binPath","Error","lage","thisPackageJsonPath","thisPackagePath"],"mappings":";;;;;;;;;;;QAgBgBA;eAAAA;;QAWAC;eAAAA;;;6DA3BC;2DACF;2DACA;;;;;;AAEf,SAASC,OAAOC,IAAY,EAAEC,GAAW;IACvC,IAAIC,aAAaD;IACjB,MAAOC,eAAe,IAAK;QACzB,MAAMC,WAAWC,aAAI,CAACC,IAAI,CAACH,YAAYF;QACvC,IAAIM,WAAE,CAACC,UAAU,CAACJ,WAAW;YAC3B,OAAOA;QACT;QACAD,aAAaE,aAAI,CAACI,OAAO,CAACN;IAC5B;IACA,OAAOO;AACT;AAEO,SAASZ;IACd,MAAMa,OAAOC,WAAE,CAACC,QAAQ,OAAO,UAAU;QAAC;QAAY;KAAkB,GAAG;QAAC;QAAQ;KAAc;IAClG,MAAMC,WAAWH,KAAKI,GAAG,CAAC,CAACC,MAAQhB,OAAO,uBAAuBgB,KAAKC;IAEtE,IAAIH,SAASI,IAAI,CAAC,CAACC,UAAYA,YAAYT,YAAY;QACrD,MAAM,IAAIU,MAAM;IAClB;IAEA,OAAO;QAAEC,MAAMP,QAAQ,CAAC,EAAE;QAAG,eAAeA,QAAQ,CAAC,EAAE;IAAE;AAC3D;AAEO,SAASf;IACd,MAAMuB,sBAAsBtB,OAAO,gBAAgBiB;IAEnD,IAAI,CAACK,qBAAqB;QACxB,MAAM,IAAIF,MAAM;IAClB;IAEA,MAAMG,kBAAkBlB,aAAI,CAACI,OAAO,CAACa;IAErC,IAAIf,WAAE,CAACC,UAAU,CAACH,aAAI,CAACC,IAAI,CAACiB,iBAAiB,QAAQ,aAAa;QAChE,uCAAuC;QACvC,OAAO;YACLF,MAAMhB,aAAI,CAACC,IAAI,CAACiB,iBAAiB,QAAQ;YACzC,eAAelB,aAAI,CAACC,IAAI,CAACiB,iBAAiB,QAAQ;QACpD;IACF,OAAO;QACL,8CAA8C;QAC9C,OAAO;YACLF,MAAMhB,aAAI,CAACC,IAAI,CAACiB,iBAAiB,OAAO;YACxC,eAAelB,aAAI,CAACC,IAAI,CAACiB,iBAAiB,OAAO;QACnD;IACF;AACF"}
|
package/lib/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export type { Priority } from "@lage-run/config";
|
|
|
4
4
|
export type { PipelineDefinition } from "@lage-run/config";
|
|
5
5
|
export type { LoggerOptions } from "@lage-run/config";
|
|
6
6
|
export type { TargetRunnerPickerOptions } from "@lage-run/runners";
|
|
7
|
+
export type { Target } from "@lage-run/target-graph";
|
|
7
8
|
export type { TargetConfig } from "@lage-run/target-graph";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.6",
|
|
4
4
|
"description": "Command Line Interface for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"lint": "monorepo-scripts lint"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@lage-run/cache": "^1.3.
|
|
25
|
-
"@lage-run/config": "^0.4.
|
|
24
|
+
"@lage-run/cache": "^1.3.14",
|
|
25
|
+
"@lage-run/config": "^0.4.16",
|
|
26
26
|
"@lage-run/format-hrtime": "^0.1.6",
|
|
27
27
|
"@lage-run/globby": "^14.2.1",
|
|
28
|
-
"@lage-run/hasher": "^1.8.
|
|
28
|
+
"@lage-run/hasher": "^1.8.3",
|
|
29
29
|
"@lage-run/logger": "^1.3.1",
|
|
30
|
-
"@lage-run/reporters": "^1.3.
|
|
30
|
+
"@lage-run/reporters": "^1.3.2",
|
|
31
31
|
"@lage-run/rpc": "^1.4.0",
|
|
32
|
-
"@lage-run/runners": "^1.2.
|
|
33
|
-
"@lage-run/scheduler": "^1.5.
|
|
34
|
-
"@lage-run/scheduler-types": "^0.3.
|
|
35
|
-
"@lage-run/target-graph": "^0.11.
|
|
32
|
+
"@lage-run/runners": "^1.2.3",
|
|
33
|
+
"@lage-run/scheduler": "^1.5.8",
|
|
34
|
+
"@lage-run/scheduler-types": "^0.3.25",
|
|
35
|
+
"@lage-run/target-graph": "^0.11.3",
|
|
36
36
|
"@lage-run/worker-threads-pool": "^0.9.0",
|
|
37
37
|
"chokidar": "3.6.0",
|
|
38
38
|
"commander": "9.5.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"fast-glob": "3.3.3",
|
|
41
41
|
"proper-lockfile": "^4.1.2",
|
|
42
42
|
"shell-quote": "^1.8.1",
|
|
43
|
-
"workspace-tools": "0.38.
|
|
43
|
+
"workspace-tools": "0.38.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@lage-run/monorepo-fixture": "^0.1.0",
|