@netlify/build 29.33.1 → 29.33.3
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,6 @@
|
|
|
1
1
|
import { rm, stat } from 'node:fs/promises';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
+
import { listFrameworks } from '@netlify/framework-info';
|
|
3
4
|
import { log } from '../../log/logger.js';
|
|
4
5
|
const dirExists = async (path) => {
|
|
5
6
|
try {
|
|
@@ -29,6 +30,19 @@ const coreStep = async (input) => {
|
|
|
29
30
|
return {};
|
|
30
31
|
};
|
|
31
32
|
const condition = async (input) => {
|
|
33
|
+
// We don't want to clear directories for Remix or Remix-based frameworks,
|
|
34
|
+
// due to the way they run Netlify Dev.
|
|
35
|
+
try {
|
|
36
|
+
const frameworks = await listFrameworks({ projectDir: input.buildDir });
|
|
37
|
+
for (const framework of frameworks) {
|
|
38
|
+
if (framework.id === 'hydrogen' || framework.id === 'remix') {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
// no-op
|
|
45
|
+
}
|
|
32
46
|
const dirs = await getDirtyDirs(input);
|
|
33
47
|
return dirs.length > 0;
|
|
34
48
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.33.
|
|
3
|
+
"version": "29.33.3",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@netlify/config": "^20.10.2",
|
|
74
74
|
"@netlify/edge-bundler": "11.2.2",
|
|
75
75
|
"@netlify/framework-info": "^9.8.10",
|
|
76
|
-
"@netlify/functions-utils": "^5.2.
|
|
76
|
+
"@netlify/functions-utils": "^5.2.48",
|
|
77
77
|
"@netlify/git-utils": "^5.1.1",
|
|
78
78
|
"@netlify/opentelemetry-utils": "^1.0.1",
|
|
79
79
|
"@netlify/plugins-list": "^6.73.0",
|
|
80
80
|
"@netlify/run-utils": "^5.1.1",
|
|
81
|
-
"@netlify/zip-it-and-ship-it": "9.28.
|
|
81
|
+
"@netlify/zip-it-and-ship-it": "9.28.4",
|
|
82
82
|
"@opentelemetry/api": "~1.6.0",
|
|
83
83
|
"@sindresorhus/slugify": "^2.0.0",
|
|
84
84
|
"ansi-escapes": "^6.0.0",
|
|
@@ -163,5 +163,5 @@
|
|
|
163
163
|
"engines": {
|
|
164
164
|
"node": "^14.16.0 || >=16.0.0"
|
|
165
165
|
},
|
|
166
|
-
"gitHead": "
|
|
166
|
+
"gitHead": "6d2cfbba56dabb3442da5dc00fc41047aefe216e"
|
|
167
167
|
}
|