diff --git a/README.md b/README.md index f9284c59c..8bb76eb3b 100644 --- a/README.md +++ b/README.md @@ -75,4 +75,4 @@ If you don't know how to start, please read our [contributing guide](CONTRIBUTIN ## License -[MIT](LICENSE) \ No newline at end of file +[MIT](LICENSE) diff --git a/package.json b/package.json index e826c1e93..0b7d848d7 100644 --- a/package.json +++ b/package.json @@ -35,9 +35,9 @@ "preinstall": "npx only-allow pnpm", "postinstall": "pnpm build:internals", "bootstrap": "pnpm --filter=\"!./packages/dist/**\" install", - "dev": "pnpm -C examples/vue3 dev", - "dev:vue2": "pnpm -C examples/vue2 dev", - "dev:vue2.7": "pnpm -C examples/vue2.7 dev", + "dev": "pnpm build:entry && pnpm -C examples/vue3 dev", + "dev:vue2": "pnpm build:entry && pnpm -C examples/vue2 dev", + "dev:vue2.7": "pnpm build:entry && pnpm -C examples/vue2.7 dev", "dev:docs": "pnpm -C examples/docs docs:dev", "build:entry": "pnpm -C internals/cli build:entry", "create:ui": "pnpm -C internals/cli create:ui", @@ -215,4 +215,4 @@ "> 1%", "last 2 versions" ] -} +} \ No newline at end of file diff --git a/packages/vue/package.json b/packages/vue/package.json index 863d70efb..297ecfa83 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -4,6 +4,7 @@ "version": "3.7.0", "description": "opentiny vue components", "type": "module", + "main": "index.ts", "sideEffects": false, "dependencies": { "@opentiny/vue-action-menu": "workspace:~", @@ -191,4 +192,4 @@ "build": "pnpm -w build:ui", "postversion": "pnpm build" } -} +} \ No newline at end of file