@vue.ts/tsx-auto-props 0.5.0 → 0.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,6 +1,6 @@
1
- # unplugin-vue-tsx-auto-props
1
+ # @vue.ts/tsx-auto-props
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/unplugin-vue-tsx-auto-props?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-vue-tsx-auto-props)
3
+ [![NPM version](https://img.shields.io/npm/v/@vue.ts/tsx-auto-props?color=a1b858&label=)](https://www.npmjs.com/package/@vue.ts/tsx-auto-props)
4
4
 
5
5
  ## Why?
6
6
 
@@ -37,9 +37,9 @@ Object.defineProperty(Foo, "props", {
37
37
  ## 📦 Installation
38
38
 
39
39
  ```bash
40
- $ npm install -D unplugin-vue-tsx-auto-props
41
- $ yarn add -D unplugin-vue-tsx-auto-props
42
- $ pnpm add -D unplugin-vue-tsx-auto-props
40
+ $ npm install -D @vue.ts/tsx-auto-props
41
+ $ yarn add -D @vue.ts/tsx-auto-props
42
+ $ pnpm add -D @vue.ts/tsx-auto-props
43
43
  ```
44
44
 
45
45
  ## 🚀 Usage
@@ -49,7 +49,7 @@ $ pnpm add -D unplugin-vue-tsx-auto-props
49
49
 
50
50
  ```ts
51
51
  // vite.config.ts
52
- import VueTsxAutoProps from "unplugin-vue-tsx-auto-props/vite";
52
+ import VueTsxAutoProps from "@vue.ts/tsx-auto-props/vite";
53
53
 
54
54
  export default defineConfig({
55
55
  plugins: [
@@ -67,7 +67,7 @@ export default defineConfig({
67
67
 
68
68
  ```ts
69
69
  // rollup.config.js
70
- import VueTsxAutoProps from "unplugin-vue-tsx-auto-props/rollup";
70
+ import VueTsxAutoProps from "@vue.ts/tsx-auto-props/rollup";
71
71
 
72
72
  export default {
73
73
  plugins: [
@@ -89,7 +89,7 @@ export default {
89
89
  module.exports = {
90
90
  /* ... */
91
91
  plugins: [
92
- require("unplugin-vue-tsx-auto-props/webpack")({
92
+ require("@vue.ts/tsx-auto-props/webpack")({
93
93
  /* options */
94
94
  }),
95
95
  ],
@@ -104,7 +104,7 @@ module.exports = {
104
104
  ```ts
105
105
  // nuxt.config.ts
106
106
  export default defineNuxtConfig({
107
- modules: ["unplugin-vue-tsx-auto-props/nuxt"],
107
+ modules: ["@vue.ts/tsx-auto-props/nuxt"],
108
108
  });
109
109
  ```
110
110
 
@@ -118,7 +118,7 @@ export default defineNuxtConfig({
118
118
  module.exports = {
119
119
  configureWebpack: {
120
120
  plugins: [
121
- require("unplugin-vue-tsx-auto-props/webpack")({
121
+ require("@vue.ts/tsx-auto-props/webpack")({
122
122
  /* options */
123
123
  }),
124
124
  ],
@@ -136,7 +136,7 @@ module.exports = {
136
136
  module.exports = {
137
137
  vitePlugins: [
138
138
  [
139
- "unplugin-vue-tsx-auto-props/vite",
139
+ "@vue.ts/tsx-auto-props/vite",
140
140
  {
141
141
  /* options */
142
142
  },
@@ -147,12 +147,12 @@ module.exports = {
147
147
 
148
148
  ```ts
149
149
  // quasar.conf.js [Webpack]
150
- const VueTsxAutoPropsPlugin = require("unplugin-vue-tsx-auto-props/webpack");
150
+ const VueTsxAutoPropsPlugin = require("@vue.ts/tsx-auto-props/webpack");
151
151
 
152
152
  module.exports = {
153
153
  build: {
154
154
  chainWebpack(chain) {
155
- chain.plugin("unplugin-vue-tsx-auto-props").use(
155
+ chain.plugin("@vue.ts/tsx-auto-props").use(
156
156
  VueTsxAutoPropsPlugin({
157
157
  /* options */
158
158
  }),
@@ -174,7 +174,7 @@ import { build } from "esbuild";
174
174
  build({
175
175
  /* ... */
176
176
  plugins: [
177
- require("unplugin-vue-tsx-auto-props/esbuild")({
177
+ require("@vue.ts/tsx-auto-props/esbuild")({
178
178
  /* options */
179
179
  }),
180
180
  ],
@@ -188,7 +188,7 @@ build({
188
188
 
189
189
  ```ts
190
190
  // astro.config.mjs
191
- import VueTsxAutoProps from "unplugin-vue-tsx-auto-props/astro";
191
+ import VueTsxAutoProps from "@vue.ts/tsx-auto-props/astro";
192
192
 
193
193
  export default defineConfig({
194
194
  integrations: [
package/dist/astro.cjs CHANGED
@@ -9,7 +9,7 @@ require('typescript');
9
9
  require('node:path');
10
10
 
11
11
  const astro = (options) => ({
12
- name: "unplugin-vue-complex-types",
12
+ name: "@vue.ts/complex-types",
13
13
  hooks: {
14
14
  "astro:config:setup": async (astro) => {
15
15
  var _a;
package/dist/astro.mjs CHANGED
@@ -7,7 +7,7 @@ import 'typescript';
7
7
  import 'node:path';
8
8
 
9
9
  const astro = (options) => ({
10
- name: "unplugin-vue-complex-types",
10
+ name: "@vue.ts/complex-types",
11
11
  hooks: {
12
12
  "astro:config:setup": async (astro) => {
13
13
  var _a;
package/dist/index.cjs CHANGED
@@ -98,7 +98,7 @@ function transform(code, id) {
98
98
  }
99
99
 
100
100
  const unplugin = unplugin$1.createUnplugin((options = {}) => ({
101
- name: "unplugin-vue-complex-types",
101
+ name: "@vue.ts/complex-types",
102
102
  buildStart() {
103
103
  const resolvedOptions = resolveOptions(options);
104
104
  language.ensureLanguage(resolvedOptions.tsconfigPath);
package/dist/index.mjs CHANGED
@@ -91,7 +91,7 @@ function transform(code, id) {
91
91
  }
92
92
 
93
93
  const unplugin = createUnplugin((options = {}) => ({
94
- name: "unplugin-vue-complex-types",
94
+ name: "@vue.ts/complex-types",
95
95
  buildStart() {
96
96
  const resolvedOptions = resolveOptions(options);
97
97
  ensureLanguage(resolvedOptions.tsconfigPath);
package/dist/nuxt.cjs CHANGED
@@ -12,7 +12,7 @@ require('typescript');
12
12
  require('node:path');
13
13
 
14
14
  const name = "@vue.ts/tsx-auto-props";
15
- const version = "0.5.0";
15
+ const version = "0.6.0";
16
16
 
17
17
  const nuxt = kit.defineNuxtModule({
18
18
  meta: {
package/dist/nuxt.mjs CHANGED
@@ -10,7 +10,7 @@ import 'typescript';
10
10
  import 'node:path';
11
11
 
12
12
  const name = "@vue.ts/tsx-auto-props";
13
- const version = "0.5.0";
13
+ const version = "0.6.0";
14
14
 
15
15
  const nuxt = defineNuxtModule({
16
16
  meta: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue.ts/tsx-auto-props",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "author": "Ray <i@mk1.io> (@so1ve)",
5
5
  "description": "Automatically add props definition for Vue 3 TSX.",
6
6
  "keywords": [
@@ -86,8 +86,8 @@
86
86
  "@nuxt/kit": "^3.8.1",
87
87
  "magic-string": "^0.30.5",
88
88
  "unplugin": "^1.5.0",
89
- "@vue.ts/common": "0.5.0",
90
- "@vue.ts/language": "0.5.0"
89
+ "@vue.ts/common": "0.6.0",
90
+ "@vue.ts/language": "0.6.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@nuxt/schema": "^3.8.1",