Skip to content

Commit b0ba6d9

Browse files
authored
fix: no framework special case for ntl dev (#6449)
1 parent 01987d0 commit b0ba6d9

File tree

1 file changed

+0
-16
lines changed
  • packages/build/src/plugins_core/pre_dev_cleanup

1 file changed

+0
-16
lines changed

packages/build/src/plugins_core/pre_dev_cleanup/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { rm, stat } from 'node:fs/promises'
22
import { resolve } from 'node:path'
33

4-
import { listFrameworks } from '@netlify/framework-info'
5-
64
import { CoreStep, CoreStepCondition, CoreStepFunction, CoreStepFunctionArgs } from '../types.js'
75

86
const dirExists = async (path: string): Promise<boolean> => {
@@ -41,20 +39,6 @@ const coreStep: CoreStepFunction = async (input) => {
4139
}
4240

4341
const condition: CoreStepCondition = async (input) => {
44-
// We don't want to clear directories for Remix or Remix-based frameworks,
45-
// due to the way they run Netlify Dev.
46-
try {
47-
const frameworks = await listFrameworks({ projectDir: input.buildDir })
48-
49-
for (const framework of frameworks) {
50-
if (framework.id === 'hydrogen' || framework.id === 'remix') {
51-
return false
52-
}
53-
}
54-
} catch {
55-
// no-op
56-
}
57-
5842
const dirs = await getDirtyDirs(input)
5943
return dirs.length > 0
6044
}

0 commit comments

Comments
 (0)