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.
2 parents bb6a1fc + 65efe6e commit e4c4392Copy full SHA for e4c4392
.changeset/fix-dist-index-check.md
@@ -0,0 +1,5 @@
1
+---
2
+"@pandacss/eslint-plugin": patch
3
4
+
5
+Fix dist/index check to support all build output formats (ESM and CJS)
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