diff --git a/plugin/test/file-not-included.test.ts b/plugin/test/file-not-included.test.ts index a14a92d..084fdd2 100644 --- a/plugin/test/file-not-included.test.ts +++ b/plugin/test/file-not-included.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/file-not-included' +import rule, { RULE_NAME } from '../dist/rules/file-not-included' const code = `import { css } from './panda/css' import { Circle } from './panda/jsx' diff --git a/plugin/test/no-config-function-in-source.test.ts b/plugin/test/no-config-function-in-source.test.ts index 69b0829..843ab7f 100644 --- a/plugin/test/no-config-function-in-source.test.ts +++ b/plugin/test/no-config-function-in-source.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-config-function-in-source' +import rule, { RULE_NAME } from '../dist/rules/no-config-function-in-source' const imports = `import { defineKeyframes } from '@pandacss/dev';` const code = `const keyframes = defineKeyframes({ diff --git a/plugin/test/no-debug.test.ts b/plugin/test/no-debug.test.ts index 2699750..56216a7 100644 --- a/plugin/test/no-debug.test.ts +++ b/plugin/test/no-debug.test.ts @@ -1,4 +1,4 @@ -import rule, { RULE_NAME } from '../src/rules/no-debug' +import rule, { RULE_NAME } from '../dist/rules/no-debug' import { tester } from '../test-utils' const imports = `import { css } from './panda/css'; diff --git a/plugin/test/no-dynamic-styling.test.ts b/plugin/test/no-dynamic-styling.test.ts index 595a99c..fcb8aee 100644 --- a/plugin/test/no-dynamic-styling.test.ts +++ b/plugin/test/no-dynamic-styling.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-dynamic-styling' +import rule, { RULE_NAME } from '../dist/rules/no-dynamic-styling' const imports = `import { css } from './panda/css' import { styled, Circle } from './panda/jsx' diff --git a/plugin/test/no-escape-hatch.test.ts b/plugin/test/no-escape-hatch.test.ts index 3f8c973..2574138 100644 --- a/plugin/test/no-escape-hatch.test.ts +++ b/plugin/test/no-escape-hatch.test.ts @@ -1,6 +1,6 @@ import { getArbitraryValue } from '@pandacss/shared' import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-escape-hatch' +import rule, { RULE_NAME } from '../dist/rules/no-escape-hatch' const imports = `import { css } from './panda/css' import { Circle } from './panda/jsx' diff --git a/plugin/test/no-hardcoded-color.test.ts b/plugin/test/no-hardcoded-color.test.ts index 21619f1..c8862f6 100644 --- a/plugin/test/no-hardcoded-color.test.ts +++ b/plugin/test/no-hardcoded-color.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-hardcoded-color' +import rule, { RULE_NAME } from '../dist/rules/no-hardcoded-color' const imports = `import { css } from './panda/css' import { Circle } from './panda/jsx' diff --git a/plugin/test/no-invalid-token-paths.test.ts b/plugin/test/no-invalid-token-paths.test.ts index 999c35b..1491afe 100644 --- a/plugin/test/no-invalid-token-paths.test.ts +++ b/plugin/test/no-invalid-token-paths.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-invalid-token-paths' +import rule, { RULE_NAME } from '../dist/rules/no-invalid-token-paths' const imports = `import { css } from './panda/css' import { Circle } from './panda/jsx' diff --git a/plugin/test/no-shorthand-prop.test.ts b/plugin/test/no-shorthand-prop.test.ts index 3d9d3a7..22e70fb 100644 --- a/plugin/test/no-shorthand-prop.test.ts +++ b/plugin/test/no-shorthand-prop.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-shorthand-prop' +import rule, { RULE_NAME } from '../dist/rules/no-shorthand-prop' const imports = `import { css } from './panda/css' import { Circle } from './panda/jsx' diff --git a/plugin/test/no-unsafe-token-fn-usage.test.ts b/plugin/test/no-unsafe-token-fn-usage.test.ts index abbf940..3c32d31 100644 --- a/plugin/test/no-unsafe-token-fn-usage.test.ts +++ b/plugin/test/no-unsafe-token-fn-usage.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/no-unsafe-token-fn-usage' +import rule, { RULE_NAME } from '../dist/rules/no-unsafe-token-fn-usage' const imports = `import { css } from './panda/css'; import { Circle } from './panda/jsx'; diff --git a/plugin/test/prefer-atomic-properties.test.ts b/plugin/test/prefer-atomic-properties.test.ts index 4a4eff8..e5d16bb 100644 --- a/plugin/test/prefer-atomic-properties.test.ts +++ b/plugin/test/prefer-atomic-properties.test.ts @@ -1,5 +1,5 @@ import { tester } from '../test-utils' -import rule, { RULE_NAME } from '../src/rules/prefer-atomic-properties' +import rule, { RULE_NAME } from '../dist/rules/prefer-atomic-properties' const imports = `import { css } from './panda/css' import { Circle } from './panda/jsx' diff --git a/plugin/tsup.config.ts b/plugin/tsup.config.ts index 3f37529..3bae516 100644 --- a/plugin/tsup.config.ts +++ b/plugin/tsup.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'tsup' export default defineConfig({ - entry: ['src/index.ts', 'src/utils/worker.ts'], + entry: ['src/index.ts', 'src/utils/worker.ts', 'src/rules'], format: ['esm', 'cjs'], shims: true, })