@lage-run/config 0.9.1 → 0.9.2
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/config",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Config management for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@lage-run/logger": "^1.3.3",
|
|
22
|
-
"@lage-run/runners": "^1.4.
|
|
23
|
-
"@lage-run/target-graph": "^0.14.
|
|
22
|
+
"@lage-run/runners": "^1.4.1",
|
|
23
|
+
"@lage-run/target-graph": "^0.14.1",
|
|
24
24
|
"backfill-config": "^6.7.2",
|
|
25
25
|
"cosmiconfig": "^9.0.1",
|
|
26
|
-
"workspace-tools": "^0.41.
|
|
26
|
+
"workspace-tools": "^0.41.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lage-run/monorepo-scripts": "^1.0.0"
|