Skip to content

Commit e96dac0

Browse files
committed
fix: incorrect entry
1 parent c54eea5 commit e96dac0

File tree

5 files changed

+5
-65
lines changed

5 files changed

+5
-65
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Vue Styled Components TypeScript Syntax Plugin
1+
# Vue Styled Plugin
22

33
A Vite plugin that provides TypeScript generic syntax support for Vue Styled Components, similar to React styled-components.
44

__tests__/vue-files.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Plugin } from 'vite'
22
import { describe, expect, it } from 'vitest'
3-
import vueStyledComponentsTypescriptSyntax from '../index'
3+
import vueStyledComponentsTypescriptSyntax from '../src/index'
44
import { extractPropsFromCode } from './normalize'
55

66
describe('vue文件处理', () => {

index.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface PluginOptions {
3636
* Vue Styled Components TypeScript Syntax Plugin
3737
* @param options Plugin configuration options
3838
*/
39-
export default function typescriptSyntaxPlugin(options: PluginOptions = {}): Plugin {
39+
export default function vueStyledPlugin(options: PluginOptions = {}): Plugin {
4040
const {
4141
debug = false,
4242
logLevel = 'error',
@@ -60,7 +60,7 @@ export default function typescriptSyntaxPlugin(options: PluginOptions = {}): Plu
6060

6161
// Return Vite plugin configuration
6262
return {
63-
name: 'vue-styled-components:typescript-syntax',
63+
name: 'vue-styled-plugin',
6464
enforce: 'pre',
6565

6666
transform(code, id) {

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'tsup'
22

33
export default defineConfig({
4-
entry: ['index.ts'],
4+
entry: ['src/index.ts'],
55
target: 'esnext',
66
format: ['esm', 'cjs'],
77
splitting: false,

0 commit comments

Comments
 (0)