@deot/dev-vue 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1 @@
1
- // TODO
1
+ # @deot/dev-vue
package/dist/index.cjs CHANGED
@@ -4,8 +4,17 @@ const vite = require('vite');
4
4
  const vue = require('@vitejs/plugin-vue');
5
5
  const vueJsx = require('@vitejs/plugin-vue-jsx');
6
6
 
7
+ const useReactTogether = process.env.USE_REACT;
7
8
  const index = vite.defineConfig({
8
- plugins: [vue(), vueJsx()]
9
+ plugins: [
10
+ vue(),
11
+ vueJsx({
12
+ include: (
13
+ /* istanbul ignore next -- @preserve */
14
+ useReactTogether ? /\.vue\.[jt]sx$/ : /\.[jt]sx$/
15
+ )
16
+ })
17
+ ]
9
18
  });
10
19
 
11
20
  module.exports = index;
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ import { defineConfig } from 'vite';
2
+ import vue from '@vitejs/plugin-vue';
3
+ import vueJsx from '@vitejs/plugin-vue-jsx';
4
+
5
+ const useReactTogether = process.env.USE_REACT;
6
+ const index = defineConfig({
7
+ plugins: [
8
+ vue(),
9
+ vueJsx({
10
+ include: (
11
+ /* istanbul ignore next -- @preserve */
12
+ useReactTogether ? /\.vue\.[jt]sx$/ : /\.[jt]sx$/
13
+ )
14
+ })
15
+ ]
16
+ });
17
+
18
+ export { index as default };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@deot/dev-vue",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "type": "module",
5
- "main": "dist/index.es.js",
5
+ "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/index.es.js",
9
+ "import": "./dist/index.js",
10
10
  "require": "./dist/index.cjs",
11
11
  "types": "./dist/index.d.ts"
12
12
  }
@@ -19,14 +19,17 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@vitejs/plugin-vue": "^4.3.4",
22
+ "@testing-library/vue": "^7.0.0",
23
+ "@vitejs/plugin-vue": "^4.4.0",
23
24
  "@vitejs/plugin-vue-jsx": "^3.0.2",
24
- "vite": "^4.4.9",
25
- "vue": "^3.3.4",
26
- "vue-tsc": "^1.8.8"
25
+ "@vue/test-utils": "^2.4.1",
26
+ "lru-cache": "^10.0.1",
27
+ "vite": "^4.5.0",
28
+ "vue": "^3.3.7",
29
+ "vue-tsc": "^1.8.22"
27
30
  },
28
31
  "devDependencies": {
29
- "@deot/dev-shared": "^2.5.0",
32
+ "@deot/dev-shared": "^2.6.0",
30
33
  "fs-extra": "^11.1.1"
31
34
  }
32
35
  }
package/dist/index.es.js DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import vue from '@vitejs/plugin-vue';
3
- import vueJsx from '@vitejs/plugin-vue-jsx';
4
-
5
- const index = defineConfig({
6
- plugins: [vue(), vueJsx()]
7
- });
8
-
9
- export { index as default };