mirror of
https://github.com/HeyPuter/puter.git
synced 2026-04-28 19:20:55 -05:00
devex: add '{repo}' variable for extension paths
Previously '{source}' was added but this is a bit difficult to work
with since it's the path from the source file, which is usually the
'src/' directory under the repository. This won't be obvious anyone
who doesn't already know this. '{repo}' just points to the path of
the repository itself.
This commit is contained in:
committed by
KernelDeimos
parent
06cd14353a
commit
bdd60c63d8
@@ -222,6 +222,7 @@ class RuntimeEnvironment extends AdvancedBase {
|
||||
const environment = {};
|
||||
environment.source = this.modules.path_.dirname(
|
||||
this.entry_path || require.main.filename);
|
||||
environment.repo = this.modules.path_.dirname(environment.source);
|
||||
|
||||
const config_path_entry = this.get_first_suitable_path_(
|
||||
{ pathFor: 'configuration' },
|
||||
|
||||
Reference in New Issue
Block a user