@netlify/build 21.0.1 → 22.0.0
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/package.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const { bindOpts: cacheBindOpts } = require('@netlify/cache-utils')
|
|
4
4
|
const { add: functionsAdd, list: functionsList, listAll: functionsListAll } = require('@netlify/functions-utils')
|
|
5
|
-
const getGitUtils = require('@netlify/git-utils')
|
|
6
5
|
|
|
7
6
|
const { failBuild, failPlugin, cancelBuild, failPluginWithWarning } = require('../error')
|
|
8
7
|
const { isSoftFailEvent } = require('../events')
|
|
@@ -10,11 +9,12 @@ const { isSoftFailEvent } = require('../events')
|
|
|
10
9
|
const { addLazyProp } = require('./lazy')
|
|
11
10
|
const { show } = require('./status')
|
|
12
11
|
|
|
12
|
+
const gitUtilsPromise = import('@netlify/git-utils')
|
|
13
13
|
const runUtilsPromise = import('@netlify/run-utils')
|
|
14
14
|
|
|
15
15
|
// Retrieve the `utils` argument.
|
|
16
16
|
const getUtils = async function ({ event, constants: { FUNCTIONS_SRC, INTERNAL_FUNCTIONS_SRC, CACHE_DIR }, runState }) {
|
|
17
|
-
const { run, runCommand } = await runUtilsPromise
|
|
17
|
+
const [{ getGitUtils }, { run, runCommand }] = await Promise.all([gitUtilsPromise, runUtilsPromise])
|
|
18
18
|
// eslint-disable-next-line fp/no-mutation
|
|
19
19
|
run.command = runCommand
|
|
20
20
|
|