@vue.ts/tsx-auto-props 1.0.0-beta.10 → 1.0.0-beta.11

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/dist/astro.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import "./index-tWaWg0Kw.js";
2
+ import { t as Options } from "./types-DXB6NIW0.js";
2
3
 
3
4
  //#region src/astro.d.ts
4
5
  declare const _default: (options: Options) => {
package/dist/astro.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./src-XYcT5WT-.js";
2
- import { t as vite_default } from "./vite-DshAWIJo.js";
1
+ import "./src-Be4nzbnH.js";
2
+ import { t as vite_default } from "./vite-j4mVIlZq.js";
3
3
 
4
4
  //#region src/astro.ts
5
5
  var astro_default = (options) => ({
package/dist/esbuild.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as esbuild0 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild0.Plugin;
5
+ declare const _default: (options?: BaseOptions | undefined) => esbuild0.Plugin;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/esbuild.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
 
4
4
  //#region src/esbuild.ts
package/dist/farm.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as _farmfe_core0 from "@farmfe/core";
3
3
 
4
4
  //#region src/farm.d.ts
5
- declare const _default: (options?: Options | undefined) => _farmfe_core0.JsPlugin;
5
+ declare const _default: (options?: BaseOptions | undefined) => _farmfe_core0.JsPlugin;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/farm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createFarmPlugin } from "unplugin";
3
3
 
4
4
  //#region src/farm.ts
@@ -2,14 +2,10 @@ import { FilterPattern } from "unplugin";
2
2
 
3
3
  //#region ../shared/src/types.d.ts
4
4
  interface BaseOptions {
5
+ root?: string;
6
+ tsconfigPath?: string;
5
7
  include?: FilterPattern;
6
8
  exclude?: FilterPattern;
7
9
  }
8
10
  //#endregion
9
- //#region src/types.d.ts
10
- interface Options extends BaseOptions {
11
- tsconfigPath?: string;
12
- }
13
- type ResolvedOptions = Required<Options>;
14
- //#endregion
15
- export { ResolvedOptions as n, Options as t };
11
+ export { BaseOptions as t };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
+ import { t as Options } from "./types-DXB6NIW0.js";
2
3
  import * as unplugin0 from "unplugin";
3
4
  import { UnpluginFactory } from "unplugin";
4
5
 
5
6
  //#region src/index.d.ts
6
7
  declare const unpluginFactory: UnpluginFactory<Options | undefined>;
7
- declare const unplugin: unplugin0.UnpluginInstance<Options | undefined, boolean>;
8
+ declare const unplugin: unplugin0.UnpluginInstance<BaseOptions | undefined, boolean>;
8
9
  //#endregion
9
10
  export { unplugin as default, unplugin, unpluginFactory };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as unplugin, r as unpluginFactory, t as src_default } from "./src-XYcT5WT-.js";
1
+ import { n as unplugin, r as unpluginFactory, t as src_default } from "./src-Be4nzbnH.js";
2
2
 
3
3
  export { src_default as default, unplugin, unpluginFactory };
package/dist/nuxt.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
5
- declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
5
+ declare const _default: _nuxt_schema0.NuxtModule<BaseOptions, BaseOptions, false>;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/nuxt.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./src-XYcT5WT-.js";
2
- import { t as vite_default } from "./vite-DshAWIJo.js";
3
- import { t as webpack_default } from "./webpack-mSQWlstX.js";
1
+ import "./src-Be4nzbnH.js";
2
+ import { t as vite_default } from "./vite-j4mVIlZq.js";
3
+ import { t as webpack_default } from "./webpack-CxWifJAJ.js";
4
4
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
5
5
 
6
6
  //#region src/nuxt.ts
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as rolldown0 from "rolldown";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
5
+ declare const _default: (options?: BaseOptions | undefined) => rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/rolldown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createRolldownPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rolldown.ts
package/dist/rollup.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as rollup0 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
5
+ declare const _default: (options?: BaseOptions | undefined) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/rollup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rollup.ts
package/dist/rspack.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
 
3
3
  //#region src/rspack.d.ts
4
- declare const _default: (options?: Options | undefined) => RspackPluginInstance;
4
+ declare const _default: (options?: BaseOptions | undefined) => RspackPluginInstance;
5
5
  //#endregion
6
6
  export { _default as default };
package/dist/rspack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rspack.ts
@@ -1,16 +1,17 @@
1
1
  import { createUnplugin } from "unplugin";
2
2
  import { ensureLanguage, getLanguage } from "@vue.ts/language";
3
- import { normalizePath } from "@vue.ts/shared";
3
+ import { createOptionsResolver, normalizePath } from "@vue.ts/shared";
4
4
  import MagicString from "magic-string";
5
5
  import ts from "typescript";
6
- import { join } from "node:path";
7
6
 
8
7
  //#region src/core/utils.ts
9
- const resolveOptions = (rawOptions) => ({
10
- include: rawOptions.include ?? ["**/*.vue", "**/*.tsx"],
11
- exclude: rawOptions.exclude ?? ["node_modules/**"],
12
- tsconfigPath: rawOptions.tsconfigPath ?? join(process.cwd(), "tsconfig.json")
13
- });
8
+ const defaultOptions = {
9
+ root: process.cwd(),
10
+ include: ["**/*.vue", "**/*.tsx"],
11
+ exclude: ["node_modules/**"],
12
+ tsconfigPath: "tsconfig.json"
13
+ };
14
+ const resolveOptions = createOptionsResolver(defaultOptions);
14
15
  function getNodeAssignNode(node) {
15
16
  let parent = null;
16
17
  let variableList = null;
@@ -0,0 +1,7 @@
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
+
3
+ //#region src/types.d.ts
4
+ type Options = BaseOptions;
5
+ type ResolvedOptions = Required<Options>;
6
+ //#endregion
7
+ export { ResolvedOptions as n, Options as t };
package/dist/types.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import { n as ResolvedOptions, t as Options } from "./types-oYPns0rA.js";
1
+ import "./index-tWaWg0Kw.js";
2
+ import { n as ResolvedOptions, t as Options } from "./types-DXB6NIW0.js";
2
3
  export { Options, ResolvedOptions };
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createVitePlugin } from "unplugin";
3
3
 
4
4
  //#region src/vite.ts
package/dist/vite.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as vite0 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite0.Plugin<any> | vite0.Plugin<any>[];
5
+ declare const _default: (options?: BaseOptions | undefined) => vite0.Plugin<any> | vite0.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-XYcT5WT-.js";
2
- import { t as vite_default } from "./vite-DshAWIJo.js";
1
+ import "./src-Be4nzbnH.js";
2
+ import { t as vite_default } from "./vite-j4mVIlZq.js";
3
3
 
4
4
  export { vite_default as default };
@@ -1,4 +1,4 @@
1
- import { r as unpluginFactory } from "./src-XYcT5WT-.js";
1
+ import { r as unpluginFactory } from "./src-Be4nzbnH.js";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/webpack.ts
package/dist/webpack.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Options } from "./types-oYPns0rA.js";
1
+ import { t as BaseOptions } from "./index-tWaWg0Kw.js";
2
2
  import * as webpack0 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
5
- declare const _default: (options?: Options | undefined) => webpack0.WebpackPluginInstance;
5
+ declare const _default: (options?: BaseOptions | undefined) => webpack0.WebpackPluginInstance;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/webpack.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-XYcT5WT-.js";
2
- import { t as webpack_default } from "./webpack-mSQWlstX.js";
1
+ import "./src-Be4nzbnH.js";
2
+ import { t as webpack_default } from "./webpack-CxWifJAJ.js";
3
3
 
4
4
  export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue.ts/tsx-auto-props",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.11",
4
4
  "author": "Ray <i@mk1.io> (@so1ve)",
5
5
  "type": "module",
6
6
  "description": "Automatically add props definition for Vue 3 TSX.",
@@ -65,14 +65,14 @@
65
65
  "@nuxt/kit": "^4.2.0",
66
66
  "magic-string": "^0.30.21",
67
67
  "unplugin": "2.3.10",
68
- "@vue.ts/language": "1.0.0-beta.10",
69
- "@vue.ts/shared": "1.0.0-beta.10"
68
+ "@vue.ts/language": "1.0.0-beta.11",
69
+ "@vue.ts/shared": "1.0.0-beta.11"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@nuxt/schema": "^4.2.0",
73
- "rolldown": "1.0.0-beta.45",
73
+ "rolldown": "1.0.0-beta.47",
74
74
  "rollup": "^4.52.5",
75
- "vite": "7.1.12",
75
+ "vite": "7.2.2",
76
76
  "webpack": "^5.102.1"
77
77
  },
78
78
  "peerDependencies": {