@netlify/build 29.36.4 → 29.36.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { handleBuildError } from '../error/handle.js';
|
|
2
|
-
import { getMajorVersion } from '../utils/semver.js';
|
|
2
|
+
import { getMajorVersion, isPrerelease } from '../utils/semver.js';
|
|
3
3
|
// Retrieve plugin's pinned major versions by fetching the latest `PluginRun`
|
|
4
4
|
// Only applies to `netlify.toml`-only installed plugins.
|
|
5
5
|
export const addPinnedVersions = async function ({ pluginsOptions, api, siteInfo: { id: siteId }, sendStatus }) {
|
|
@@ -52,8 +52,9 @@ export const pinPlugins = async function ({ pluginsOptions, failedPlugins, api,
|
|
|
52
52
|
// - the plugin's version has not been pinned yet
|
|
53
53
|
// - the plugin was installed in the UI
|
|
54
54
|
// - both the build and the plugin succeeded
|
|
55
|
-
const shouldPinVersion = function ({ pluginOptions: { packageName, pinnedVersion, loadedFrom, origin }, failedPlugins, }) {
|
|
56
|
-
return (
|
|
55
|
+
const shouldPinVersion = function ({ pluginOptions: { packageName, pinnedVersion, pluginPackageJson: { version }, loadedFrom, origin, }, failedPlugins, }) {
|
|
56
|
+
return (!isPrerelease(version) &&
|
|
57
|
+
pinnedVersion === undefined &&
|
|
57
58
|
loadedFrom === 'auto_install' &&
|
|
58
59
|
origin === 'ui' &&
|
|
59
60
|
!failedPlugins.includes(packageName));
|
package/lib/utils/semver.d.ts
CHANGED
package/lib/utils/semver.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.36.
|
|
3
|
+
"version": "29.36.5",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -164,5 +164,5 @@
|
|
|
164
164
|
"engines": {
|
|
165
165
|
"node": "^14.16.0 || >=16.0.0"
|
|
166
166
|
},
|
|
167
|
-
"gitHead": "
|
|
167
|
+
"gitHead": "c9c2345b160b9a2dbc51dbcf46fe574a4cecbac9"
|
|
168
168
|
}
|