Skip to content

Commit d1d676e

Browse files
committed
BUGFIX | Fix entry point to package from monorepo
1 parent 2d9be58 commit d1d676e

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ Each option in the `createWebComponent` function has a specific purpose:
107107

108108
<details>
109109
<summary>Vite Configuration</summary>
110+
110111
## Vite.js Configuration
111112

112113
Here's a sample Vite configuration. Comparing with Webpack, Vite.js is able to handle assets files like .css and .scss, and media files, importing them as you do regularly. Vue files will be parsed using oficial [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) depending of config. If you would like to add plugins for Vite, just install them with your favorite Node package manager.

demo-app-vite/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"vuex": "^4.1.0"
2020
},
2121
"devDependencies": {
22+
"@types/node": "^20.4.5",
2223
"@vitejs/plugin-vue": "^4.2.3",
2324
"@vue/eslint-config-typescript": "^11.0.3",
2425
"autoprefixer": "^10.4.14",
@@ -31,4 +32,4 @@
3132
"vite": "^4.3.9",
3233
"vue-tsc": "^1.6.5"
3334
}
34-
}
35+
}

demo-app-webpack/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createWebHashHistory, createRouter } from "vue-router";
55
import { createI18n } from 'vue-i18n';
66
import { createStore } from 'vuex'
77
import { defaultRoutes} from './main.routes.js'
8-
import {store} from './store/index.js'
8+
import { store } from './store/index.js'
99
import { defineCustomElement as VueDefineCustomElement, h, createApp, getCurrentInstance } from 'vue';
1010
import { createWebComponent } from 'vue-web-component-wrapper';
1111

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
22
"name": "vue-web-component-wrapper",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A Vue 3 plugin that provides a web component wrapper with styles, seamlessly integrating with Vuex, Vue Router, Vue I18n, and supporting Tailwind CSS and Sass styles.",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/EranGrin/vue3-web-component-wrapper/tree/main/plugin"
88
},
9+
"main": "package/dist/vue-web-component-wrapper.umd.js",
10+
"module": "package/dist/vue-web-component-wrapper.es.js",
11+
"exports": {
12+
".": {
13+
"import": "./package/dist/vue-web-component-wrapper.es.js",
14+
"require": "./package/dist/vue-web-component-wrapper.umd.js"
15+
}
16+
},
917
"scripts": {
1018
"build": "pnpm -C package run build",
1119
"docs:dev": "vitepress dev docs",

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-web-component-wrapper",
3-
"version": "1.0.6",
3+
"version": "1.1.1",
44
"description": "A Vue 3 plugin that provides a web component wrapper with styles, seamlessly integrating with Vuex, Vue Router, Vue I18n, and supporting Tailwind CSS and Sass styles.",
55
"types": "types.d.ts",
66
"repository": {

0 commit comments

Comments
 (0)