@netlify/build 27.13.0 → 27.14.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 +1 -1
- package/src/core/build.js +6 -1
- package/src/plugins/child/logic.js +9 -1
package/package.json
CHANGED
package/src/core/build.js
CHANGED
|
@@ -455,7 +455,12 @@ const initAndRunBuild = async function ({
|
|
|
455
455
|
configMutations,
|
|
456
456
|
}
|
|
457
457
|
} finally {
|
|
458
|
-
|
|
458
|
+
// Terminate the child processes of plugins so that they don't linger after
|
|
459
|
+
// the build is finished. The exception is when running in the dev timeline
|
|
460
|
+
// since those are long-running events by nature.
|
|
461
|
+
if (timeline !== 'dev') {
|
|
462
|
+
stopPlugins(childProcesses)
|
|
463
|
+
}
|
|
459
464
|
}
|
|
460
465
|
}
|
|
461
466
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'module'
|
|
2
2
|
import { pathToFileURL } from 'url'
|
|
3
3
|
|
|
4
|
+
import { ROOT_PACKAGE_JSON } from '../../utils/json.js'
|
|
5
|
+
import { DEV_EVENTS, EVENTS } from '../events.js'
|
|
6
|
+
|
|
4
7
|
import { addTsErrorInfo } from './typescript.js'
|
|
5
8
|
|
|
6
9
|
const require = createRequire(import.meta.url)
|
|
@@ -48,8 +51,13 @@ const loadLogic = function ({ logic, inputs }) {
|
|
|
48
51
|
return logic
|
|
49
52
|
}
|
|
50
53
|
|
|
54
|
+
const metadata = {
|
|
55
|
+
events: new Set([...DEV_EVENTS, ...EVENTS]),
|
|
56
|
+
version: ROOT_PACKAGE_JSON.version,
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
try {
|
|
52
|
-
return logic(inputs)
|
|
60
|
+
return logic(inputs, metadata)
|
|
53
61
|
} catch (error) {
|
|
54
62
|
error.message = `Could not load plugin:\n${error.message}`
|
|
55
63
|
throw error
|