Skip to content

Commit

Permalink
fix(deps): update dependency @netlify/build to v26 (#3877)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency @netlify/build to v26

* fix: new version of @netlify/build

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ehmicky <ehmicky@gmail.com>
  • Loading branch information
3 people committed Dec 20, 2021
1 parent ff95b65 commit 2f75e0c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions npm-shrinkwrap.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
Expand Up @@ -78,7 +78,7 @@
"prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \".*.{js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!.github/**/*.md\""
},
"dependencies": {
"@netlify/build": "^25.0.3",
"@netlify/build": "^26.0.0",
"@netlify/config": "^17.0.1",
"@netlify/framework-info": "^7.0.0",
"@netlify/local-functions-proxy": "^1.1.1",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/build.js
@@ -1,5 +1,5 @@
// @ts-check
const build = require('@netlify/build')
const netlifyBuildPromise = import('@netlify/build')

/**
* The buildConfig + a missing cachedConfig
Expand Down Expand Up @@ -39,6 +39,7 @@ const getBuildOptions = ({ cachedConfig, options: { debug, dry, json, offline, s
* @returns
*/
const runBuild = async (options) => {
const { default: build } = await netlifyBuildPromise
const { configMutations, netlifyConfig: newConfig, severityCode: exitCode } = await build(options)
return { exitCode, newConfig, configMutations }
}
Expand Down

1 comment on commit 2f75e0c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 355 MB

Please sign in to comment.