Skip to content

Commit 649db2c

Browse files
committed
chore: update
1 parent 8e8ea75 commit 649db2c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/plugin-dts/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ let astGrepNapi: typeof import('@ast-grep/napi') | undefined;
3131

3232
const loadAstGrepNapi = (): typeof import('@ast-grep/napi') => {
3333
if (!astGrepNapi) {
34+
// eslint-disable-next-line @typescript-eslint/no-var-requires
3435
astGrepNapi = require('@ast-grep/napi') as typeof import('@ast-grep/napi');
3536
}
3637

@@ -42,6 +43,7 @@ const loadAstGrepNapi = (): typeof import('@ast-grep/napi') => {
4243
* for better startup performance. If we use `import ts from 'typescript'`,
4344
* Node.js will use `cjs-module-lexer` to parse it, which slows down startup time.
4445
*/
46+
// eslint-disable-next-line @typescript-eslint/no-var-requires
4547
const ts = require('typescript') as typeof import('typescript');
4648

4749
export { ts };

0 commit comments

Comments
 (0)