@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 +15 -15
- package/dist/astro.cjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vue.ts/tsx-auto-props
|
|
2
2
|
|
|
3
|
-
[](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
|
|
41
|
-
$ yarn add -D
|
|
42
|
-
$ pnpm add -D
|
|
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 "
|
|
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 "
|
|
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("
|
|
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: ["
|
|
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("
|
|
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
|
-
"
|
|
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("
|
|
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("
|
|
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("
|
|
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 "
|
|
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
package/dist/astro.mjs
CHANGED
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: "
|
|
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: "
|
|
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
package/dist/nuxt.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue.ts/tsx-auto-props",
|
|
3
|
-
"version": "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.
|
|
90
|
-
"@vue.ts/language": "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",
|