Skip to content

Commit

Permalink
fix(deps): update dependency execa to v3 (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Aug 27, 2020
1 parent d62a1e6 commit c23f855
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 20 deletions.
17 changes: 5 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"dot-prop": "^5.1.0",
"dotenv": "^8.2.0",
"envinfo": "^7.3.1",
"execa": "^2.0.3",
"execa": "^3.4.0",
"express": "^4.17.1",
"express-logging": "^1.1.1",
"find-up": "^4.1.0",
Expand Down
1 change: 0 additions & 1 deletion src/commands/dev/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class ExecCommand extends Command {
}

execa(this.argv[0], this.argv.slice(1), {
env: process.env,
stdio: 'inherit',
})
await this.config.runHook('analytics', {
Expand Down
7 changes: 3 additions & 4 deletions src/function-builder-detectors/netlify-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ module.exports = async function(projectDir) {
}
}

let envConfig = {}
let env = {}
const envSettings = await getEnvSettings(projectDir)
if (envSettings.file) {
envConfig = envSettings.vars
env = envSettings.vars
}

if (settings.npmScript) {
settings.build = () =>
execa(yarnExists ? 'yarn' : 'npm', ['run', settings.npmScript], { env: { ...process.env, ...envConfig } })
settings.build = () => execa(yarnExists ? 'yarn' : 'npm', ['run', settings.npmScript], { env })
settings.builderName = 'netlify-lambda'
return settings
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
addonName: 'fauna',
addonDidInstall(fnPath) {
execa.sync(fnPath + '/create-schema.js', undefined, {
env: process.env,
stdio: 'inherit',
})
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
addonName: 'fauna',
addonDidInstall(fnPath) {
execa.sync(fnPath + '/sync-schema.js', undefined, {
env: process.env,
stdio: 'inherit',
})
},
Expand Down

0 comments on commit c23f855

Please sign in to comment.