We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea9081 commit de582b4Copy full SHA for de582b4
plugin/src/utils/index.ts
@@ -13,7 +13,7 @@ export const createRule = ESLintUtils.RuleCreator(
13
export type Rule = ReturnType<typeof createRule>
14
15
// Determine the distribution directory
16
-const isBase = process.env.NODE_ENV !== 'test' || import.meta.url.endsWith('dist/index.js')
+const isBase = process.env.NODE_ENV !== 'test' || import.meta.url.includes('/dist/index')
17
export const distDir = fileURLToPath(new URL(isBase ? './' : '../../dist', import.meta.url))
18
19
// Create synchronous function using synckit
0 commit comments