@lage-run/config 0.9.1 → 0.9.3
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/lib/readConfigFile.js
CHANGED
|
@@ -17,7 +17,7 @@ async function readConfigFile(cwd) {
|
|
|
17
17
|
throw new Error("This must be called inside a codebase that is part of a JavaScript monorepo.");
|
|
18
18
|
}
|
|
19
19
|
// Search for lage.config.js file
|
|
20
|
-
const configExplorer =
|
|
20
|
+
const configExplorer = (0, _cosmiconfig.cosmiconfig)(ConfigModuleName);
|
|
21
21
|
const results = await configExplorer.search(root ?? cwd);
|
|
22
22
|
return results?.config || undefined;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/readConfigFile.ts"],"sourcesContent":["import { cosmiconfig } from \"cosmiconfig\";\nimport { getWorkspaceManagerRoot } from \"workspace-tools\";\nimport type { ConfigOptions } from \"./types/ConfigOptions.js\";\n\nconst ConfigModuleName = \"lage\";\n\n/**\n * Read the lage config file if it exists, without filling in defaults.\n */\nexport async function readConfigFile(cwd: string): Promise<ConfigOptions | undefined> {\n const root = getWorkspaceManagerRoot(cwd);\n if (!root) {\n throw new Error(\"This must be called inside a codebase that is part of a JavaScript monorepo.\");\n }\n\n // Search for lage.config.js file\n const configExplorer =
|
|
1
|
+
{"version":3,"sources":["../src/readConfigFile.ts"],"sourcesContent":["import { cosmiconfig } from \"cosmiconfig\";\nimport { getWorkspaceManagerRoot } from \"workspace-tools\";\nimport type { ConfigOptions } from \"./types/ConfigOptions.js\";\n\nconst ConfigModuleName = \"lage\";\n\n/**\n * Read the lage config file if it exists, without filling in defaults.\n */\nexport async function readConfigFile(cwd: string): Promise<ConfigOptions | undefined> {\n const root = getWorkspaceManagerRoot(cwd);\n if (!root) {\n throw new Error(\"This must be called inside a codebase that is part of a JavaScript monorepo.\");\n }\n\n // Search for lage.config.js file\n const configExplorer = cosmiconfig(ConfigModuleName);\n const results = await configExplorer.search(root ?? cwd);\n return results?.config || undefined;\n}\n"],"names":["readConfigFile","ConfigModuleName","cwd","root","getWorkspaceManagerRoot","Error","configExplorer","cosmiconfig","results","search","config","undefined"],"mappings":";;;;+BASsBA;;;eAAAA;;;6BATM;gCACY;AAGxC,MAAMC,mBAAmB;AAKlB,eAAeD,eAAeE,GAAW;IAC9C,MAAMC,OAAOC,IAAAA,uCAAuB,EAACF;IACrC,IAAI,CAACC,MAAM;QACT,MAAM,IAAIE,MAAM;IAClB;IAEA,iCAAiC;IACjC,MAAMC,iBAAiBC,IAAAA,wBAAW,EAACN;IACnC,MAAMO,UAAU,MAAMF,eAAeG,MAAM,CAACN,QAAQD;IACpD,OAAOM,SAASE,UAAUC;AAC5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config as BackfillCacheOptions, CustomStorageConfig } from "backfill-config";
|
|
2
|
-
/** Allowed credential names matching camelCase of
|
|
2
|
+
/** Allowed credential names matching camelCase of `@azure/identity` credential class names
|
|
3
3
|
* @see https://learn.microsoft.com/en-us/azure/developer/javascript/sdk/authentication/credential-chains
|
|
4
4
|
*/
|
|
5
5
|
export type AzureCredentialName = "environment" | "workload-identity" | "managed-identity" | "visual-studio-code" | "azure-cli";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/config",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Config management for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"main": "lib/index.js",
|
|
12
12
|
"types": "lib/index.d.ts",
|
|
13
13
|
"scripts": {
|
|
14
|
+
"api": "monorepo-scripts api",
|
|
14
15
|
"build": "yarn types && yarn transpile",
|
|
15
16
|
"transpile": "monorepo-scripts transpile",
|
|
16
17
|
"types": "yarn run -T tsc",
|
|
@@ -19,11 +20,11 @@
|
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@lage-run/logger": "^1.3.3",
|
|
22
|
-
"@lage-run/runners": "^1.4.
|
|
23
|
-
"@lage-run/target-graph": "^0.14.
|
|
23
|
+
"@lage-run/runners": "^1.4.2",
|
|
24
|
+
"@lage-run/target-graph": "^0.14.2",
|
|
24
25
|
"backfill-config": "^6.7.2",
|
|
25
26
|
"cosmiconfig": "^9.0.1",
|
|
26
|
-
"workspace-tools": "^0.41.
|
|
27
|
+
"workspace-tools": "^0.41.2"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@lage-run/monorepo-scripts": "^1.0.0"
|