File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
packages/build/src/plugins_core/pre_dev_cleanup Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 11import { rm , stat } from 'node:fs/promises'
22import { resolve } from 'node:path'
33
4- import { listFrameworks } from '@netlify/framework-info'
5-
64import { CoreStep , CoreStepCondition , CoreStepFunction , CoreStepFunctionArgs } from '../types.js'
75
86const dirExists = async ( path : string ) : Promise < boolean > => {
@@ -41,20 +39,6 @@ const coreStep: CoreStepFunction = async (input) => {
4139}
4240
4341const 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}
You can’t perform that action at this time.
0 commit comments