@netlify/build 29.41.1 → 29.41.2
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,8 +1,7 @@
|
|
|
1
1
|
import { rm, stat } from 'node:fs/promises';
|
|
2
|
-
import {
|
|
2
|
+
import { resolve } from 'node:path';
|
|
3
3
|
import { listFrameworks } from '@netlify/framework-info';
|
|
4
4
|
import { log } from '../../log/logger.js';
|
|
5
|
-
import { DEPLOY_CONFIG_BLOBS_PATH, LEGACY_BLOBS_PATH } from '../../utils/blobs.js';
|
|
6
5
|
const dirExists = async (path) => {
|
|
7
6
|
try {
|
|
8
7
|
await stat(path);
|
|
@@ -12,21 +11,15 @@ const dirExists = async (path) => {
|
|
|
12
11
|
return false;
|
|
13
12
|
}
|
|
14
13
|
};
|
|
15
|
-
const getDirtyDirs = async function ({ buildDir, constants: { INTERNAL_EDGE_FUNCTIONS_SRC, INTERNAL_FUNCTIONS_SRC },
|
|
16
|
-
const
|
|
14
|
+
const getDirtyDirs = async function ({ buildDir, constants: { INTERNAL_EDGE_FUNCTIONS_SRC, INTERNAL_FUNCTIONS_SRC }, }) {
|
|
15
|
+
const dirs = [];
|
|
17
16
|
if (INTERNAL_FUNCTIONS_SRC && (await dirExists(resolve(buildDir, INTERNAL_FUNCTIONS_SRC)))) {
|
|
18
|
-
|
|
17
|
+
dirs.push(INTERNAL_FUNCTIONS_SRC);
|
|
19
18
|
}
|
|
20
19
|
if (INTERNAL_EDGE_FUNCTIONS_SRC && (await dirExists(resolve(buildDir, INTERNAL_EDGE_FUNCTIONS_SRC)))) {
|
|
21
|
-
|
|
20
|
+
dirs.push(INTERNAL_EDGE_FUNCTIONS_SRC);
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
directories.push(join(packagePath || '', LEGACY_BLOBS_PATH));
|
|
25
|
-
}
|
|
26
|
-
if (await dirExists(resolve(buildDir, packagePath || '', DEPLOY_CONFIG_BLOBS_PATH))) {
|
|
27
|
-
directories.push(join(packagePath || '', DEPLOY_CONFIG_BLOBS_PATH));
|
|
28
|
-
}
|
|
29
|
-
return directories;
|
|
22
|
+
return dirs;
|
|
30
23
|
};
|
|
31
24
|
const coreStep = async (input) => {
|
|
32
25
|
const dirs = await getDirtyDirs(input);
|
package/lib/utils/blobs.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
export declare const LEGACY_BLOBS_PATH = ".netlify/blobs/deploy";
|
|
3
|
-
export declare const DEPLOY_CONFIG_BLOBS_PATH = ".netlify/deploy/v1/blobs/deploy";
|
|
4
2
|
/** Retrieve the absolute path of the deploy scoped internal blob directories */
|
|
5
3
|
export declare const getBlobsDirs: (buildDir: string, packagePath?: string) => string[];
|
|
6
4
|
/**
|
package/lib/utils/blobs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { fdir } from 'fdir';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const LEGACY_BLOBS_PATH = '.netlify/blobs/deploy';
|
|
5
|
+
const DEPLOY_CONFIG_BLOBS_PATH = '.netlify/deploy/v1/blobs/deploy';
|
|
6
6
|
/** Retrieve the absolute path of the deploy scoped internal blob directories */
|
|
7
7
|
export const getBlobsDirs = (buildDir, packagePath) => [
|
|
8
8
|
path.resolve(buildDir, packagePath || '', DEPLOY_CONFIG_BLOBS_PATH),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.41.
|
|
3
|
+
"version": "29.41.2",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@netlify/config": "^20.12.3",
|
|
74
74
|
"@netlify/edge-bundler": "12.0.0",
|
|
75
75
|
"@netlify/framework-info": "^9.8.11",
|
|
76
|
-
"@netlify/functions-utils": "^5.2.
|
|
76
|
+
"@netlify/functions-utils": "^5.2.55",
|
|
77
77
|
"@netlify/git-utils": "^5.1.1",
|
|
78
78
|
"@netlify/opentelemetry-utils": "^1.2.0",
|
|
79
79
|
"@netlify/plugins-list": "^6.77.0",
|
|
@@ -165,5 +165,5 @@
|
|
|
165
165
|
"engines": {
|
|
166
166
|
"node": "^14.16.0 || >=16.0.0"
|
|
167
167
|
},
|
|
168
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "3f5094d188e8210e853730716a0a2c371dd6f89f"
|
|
169
169
|
}
|