diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-09-14 10:22:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-09-14 10:22:24 +0200 |
commit | 377ad87a51e0ef3619af4fe1be6aeee14c215c0a (patch) | |
tree | 25292155a561343706437805aa5df4789454863a /common | |
parent | 292b0e26ec9253398f7289dcf096691f63de2d96 (diff) |
Set PWD in environment when running the Node apps
E.g. PostCSS and Babel.
This is in line with what we do when running Go.
Diffstat (limited to 'common')
-rw-r--r-- | common/hugo/hugo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go index ac75e6bca..f455674e4 100644 --- a/common/hugo/hugo.go +++ b/common/hugo/hugo.go @@ -87,7 +87,7 @@ func GetExecEnviron(workDir string, cfg config.Provider, fs afero.Fs) []string { nodepath = workDir + string(os.PathListSeparator) + np } config.SetEnvVars(&env, "NODE_PATH", nodepath) - config.SetEnvVars(&env, "HUGO_WORKDIR", workDir) + config.SetEnvVars(&env, "PWD", workDir) config.SetEnvVars(&env, "HUGO_ENVIRONMENT", cfg.GetString("environment")) fis, err := afero.ReadDir(fs, files.FolderJSConfig) if err == nil { |