File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { getNodeImportStatements } from "@nodejs/codemod-utils/ast-grep/import-statement" ;
2
2
import { getNodeRequireCalls } from "@nodejs/codemod-utils/ast-grep/require-call" ;
3
- import type { SgRoot , Edit } from "@ast-grep/napi " ;
3
+ import type { SgRoot , Edit } from "@codemod.com/jssg-types/main " ;
4
4
5
5
/**
6
6
* Transform function that converts deprecated fs.rmdir calls
@@ -141,6 +141,7 @@ export default function transform(root: SgRoot): string | null {
141
141
142
142
// Update imports/requires only if we have destructured calls that need new imports
143
143
if ( needsRmImport || needsRmSyncImport ) {
144
+ // @ts -ignore - ast-grep types are not fully compatible with JSSG types
144
145
const importStatements = getNodeImportStatements ( root , 'fs' ) ;
145
146
146
147
// Update import statements
@@ -176,6 +177,7 @@ export default function transform(root: SgRoot): string | null {
176
177
}
177
178
}
178
179
180
+ // @ts -ignore - ast-grep types are not fully compatible with JSSG types
179
181
const requireStatements = getNodeRequireCalls ( root , 'fs' ) ;
180
182
181
183
// Update require statements
You can’t perform that action at this time.
0 commit comments