Skip to content

Commit

Permalink
BUGFIX | Fix entry point to package from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
EranGrin committed Aug 1, 2023
1 parent 2d9be58 commit d1d676e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Each option in the `createWebComponent` function has a specific purpose:

<details>
<summary>Vite Configuration</summary>

## Vite.js Configuration

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.
Expand Down
3 changes: 2 additions & 1 deletion demo-app-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"vuex": "^4.1.0"
},
"devDependencies": {
"@types/node": "^20.4.5",
"@vitejs/plugin-vue": "^4.2.3",
"@vue/eslint-config-typescript": "^11.0.3",
"autoprefixer": "^10.4.14",
Expand All @@ -31,4 +32,4 @@
"vite": "^4.3.9",
"vue-tsc": "^1.6.5"
}
}
}
2 changes: 1 addition & 1 deletion demo-app-webpack/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createWebHashHistory, createRouter } from "vue-router";
import { createI18n } from 'vue-i18n';
import { createStore } from 'vuex'
import { defaultRoutes} from './main.routes.js'
import {store} from './store/index.js'
import { store } from './store/index.js'
import { defineCustomElement as VueDefineCustomElement, h, createApp, getCurrentInstance } from 'vue';
import { createWebComponent } from 'vue-web-component-wrapper';

Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"name": "vue-web-component-wrapper",
"version": "1.1.0",
"version": "1.1.1",
"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.",
"repository": {
"type": "git",
"url": "https://github.com/EranGrin/vue3-web-component-wrapper/tree/main/plugin"
},
"main": "package/dist/vue-web-component-wrapper.umd.js",
"module": "package/dist/vue-web-component-wrapper.es.js",
"exports": {
".": {
"import": "./package/dist/vue-web-component-wrapper.es.js",
"require": "./package/dist/vue-web-component-wrapper.umd.js"
}
},
"scripts": {
"build": "pnpm -C package run build",
"docs:dev": "vitepress dev docs",
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-web-component-wrapper",
"version": "1.0.6",
"version": "1.1.1",
"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.",
"types": "types.d.ts",
"repository": {
Expand Down

0 comments on commit d1d676e

Please sign in to comment.