lua-cli 2.2.0 → 2.2.1
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/skill.js +4 -0
- package/package.json +1 -1
- package/template/package.json +1 -1
package/dist/skill.js
CHANGED
|
@@ -21,6 +21,10 @@ export const env = (key) => {
|
|
|
21
21
|
// Look for lua.skill.yaml in current directory and parent directories
|
|
22
22
|
let currentDir = process.cwd();
|
|
23
23
|
let yamlPath = null;
|
|
24
|
+
//check if in .env file
|
|
25
|
+
if (process.env[key]) {
|
|
26
|
+
return process.env[key];
|
|
27
|
+
}
|
|
24
28
|
while (currentDir !== path.dirname(currentDir)) {
|
|
25
29
|
const potentialPath = path.join(currentDir, 'lua.skill.yaml');
|
|
26
30
|
if (fs.existsSync(potentialPath)) {
|
package/package.json
CHANGED