@supsign/unplugin-interfaces 0.2.0 → 1.1.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.
@@ -9,7 +9,6 @@ interface Options {
9
9
  }
10
10
  interface ResolvedOptions {
11
11
  interfaceDir: string;
12
- indexFile: string;
13
12
  outputFile: string;
14
13
  excludeFiles: Set<string>;
15
14
  }
package/dist/types.mjs ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Options } from "./types.mjs";
2
+
3
+ //#region src/vite.d.ts
4
+ declare const _default: (options?: Options | undefined) => any;
5
+ //#endregion
6
+ export { _default as default };
@@ -1,8 +1,6 @@
1
- import { unpluginFactory } from "./src-BKy9tiI6.js";
1
+ import { i as unpluginFactory } from "./src-BBWM3Bz4.mjs";
2
2
  import { createVitePlugin } from "unplugin";
3
-
4
3
  //#region src/vite.ts
5
4
  var vite_default = createVitePlugin(unpluginFactory);
6
-
7
5
  //#endregion
8
- export { vite_default };
6
+ export { vite_default as default };
@@ -0,0 +1,7 @@
1
+ import { Options } from "./types.mjs";
2
+ import * as webpack from "webpack";
3
+
4
+ //#region src/webpack.d.ts
5
+ declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
6
+ //#endregion
7
+ export { _default as default };
@@ -1,8 +1,6 @@
1
- import { unpluginFactory } from "./src-BKy9tiI6.js";
1
+ import { i as unpluginFactory } from "./src-BBWM3Bz4.mjs";
2
2
  import { createWebpackPlugin } from "unplugin";
3
-
4
3
  //#region src/webpack.ts
5
4
  var webpack_default = createWebpackPlugin(unpluginFactory);
6
-
7
5
  //#endregion
8
- export { webpack_default };
6
+ export { webpack_default as default };
package/package.json CHANGED
@@ -1,25 +1,38 @@
1
1
  {
2
2
  "name": "@supsign/unplugin-interfaces",
3
- "type": "module",
4
- "version": "0.2.0",
5
- "packageManager": "pnpm@10.18.3",
3
+ "version": "1.1.0",
6
4
  "description": "",
7
- "license": "MIT",
5
+ "keywords": [
6
+ "rollup",
7
+ "transform",
8
+ "unplugin",
9
+ "vite",
10
+ "webpack"
11
+ ],
8
12
  "homepage": "https://github.com/supsign/unplugin-interfaces#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/supsign/unplugin-interfaces/issues"
15
+ },
16
+ "license": "MIT",
9
17
  "repository": {
10
18
  "type": "git",
11
19
  "url": "git+https://github.com/supsign/unplugin-interfaces.git"
12
20
  },
13
- "bugs": {
14
- "url": "https://github.com/supsign/unplugin-interfaces/issues"
15
- },
16
- "keywords": [
17
- "unplugin",
18
- "vite",
19
- "webpack",
20
- "rollup",
21
- "transform"
21
+ "files": [
22
+ "dist"
22
23
  ],
24
+ "type": "module",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "typesVersions": {
29
+ "*": {
30
+ "*": [
31
+ "./dist/*",
32
+ "./*"
33
+ ]
34
+ }
35
+ },
23
36
  "exports": {
24
37
  ".": "./dist/index.js",
25
38
  "./astro": "./dist/astro.js",
@@ -33,36 +46,33 @@
33
46
  "./webpack": "./dist/webpack.js",
34
47
  "./package.json": "./package.json"
35
48
  },
36
- "main": "./dist/index.js",
37
- "module": "./dist/index.js",
38
- "types": "./dist/index.d.ts",
39
- "typesVersions": {
40
- "*": {
41
- "*": [
42
- "./dist/*",
43
- "./*"
44
- ]
45
- }
49
+ "dependencies": {
50
+ "unplugin": "^3.0.0"
46
51
  },
47
- "files": [
48
- "dist"
49
- ],
50
- "scripts": {
51
- "build": "tsdown",
52
- "dev": "tsdown -w",
53
- "lint": "eslint .",
54
- "play": "npm -C playground run dev",
55
- "prepublishOnly": "npm run build",
56
- "release": "bumpp && pnpm publish",
57
- "start": "tsx src/index.ts",
58
- "test": "vitest"
52
+ "devDependencies": {
53
+ "@nuxt/kit": "^4.4.2",
54
+ "esbuild": "^0.27.0",
55
+ "@nuxt/schema": "^4.4.2",
56
+ "@types/node": "^25.5.0",
57
+ "bumpp": "^11.0.1",
58
+ "chokidar": "^5.0.0",
59
+ "nodemon": "^3.1.14",
60
+ "oxfmt": "^0.40.0",
61
+ "oxlint": "^1.55.0",
62
+ "rollup": "^4.59.0",
63
+ "tsdown": "^0.21.3",
64
+ "tsx": "^4.21.0",
65
+ "typescript": "^5.9.3",
66
+ "vite": "^8.0.0",
67
+ "vitest": "^4.1.0",
68
+ "webpack": "^5.105.4"
59
69
  },
60
70
  "peerDependencies": {
61
71
  "@farmfe/core": ">=1",
62
72
  "@nuxt/kit": "^3",
63
73
  "@nuxt/schema": "^3",
64
74
  "esbuild": "*",
65
- "rollup": "^3",
75
+ "rollup": "^3 || ^4",
66
76
  "vite": ">=3",
67
77
  "webpack": "^4 || ^5"
68
78
  },
@@ -89,24 +99,19 @@
89
99
  "optional": true
90
100
  }
91
101
  },
92
- "dependencies": {
93
- "unplugin": "^2.3.10"
102
+ "overrides": {
103
+ "esbuild": "^0.27.0",
104
+ "vite": "^8.0.0"
94
105
  },
95
- "devDependencies": {
96
- "@antfu/eslint-config": "^6.0.0",
97
- "@nuxt/kit": "^4.1.3",
98
- "@nuxt/schema": "^4.1.3",
99
- "@types/node": "^22.18.10",
100
- "bumpp": "^10.3.1",
101
- "chokidar": "^4.0.3",
102
- "eslint": "^9.37.0",
103
- "nodemon": "^3.1.10",
104
- "rollup": "^4.52.4",
105
- "tsdown": "^0.15.7",
106
- "tsx": "^4.20.6",
107
- "typescript": "^5.9.3",
108
- "vite": "^6.4.0",
109
- "vitest": "^3.2.4",
110
- "webpack": "^5.102.1"
106
+ "scripts": {
107
+ "build": "tsdown",
108
+ "dev": "tsdown -w",
109
+ "format": "oxfmt .",
110
+ "format:check": "oxfmt --check .",
111
+ "lint": "oxlint .",
112
+ "play": "npm -C playground run dev",
113
+ "release": "bumpp && pnpm publish",
114
+ "start": "tsx src/index.ts",
115
+ "test": "vitest"
111
116
  }
112
- }
117
+ }
package/dist/esbuild.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { Options } from "./types-BVbGtSvv.js";
2
- import * as esbuild0 from "esbuild";
3
-
4
- //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild0.Plugin;
6
- //#endregion
7
- export { _default as default };
package/dist/index.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import { Options } from "./types-BVbGtSvv.js";
2
- import * as unplugin0 from "unplugin";
3
- import { UnpluginFactory } from "unplugin";
4
- import * as esbuild0 from "esbuild";
5
- import * as vite1 from "vite";
6
- import * as rollup1 from "rollup";
7
- import * as webpack0 from "webpack";
8
-
9
- //#region src/index.d.ts
10
- declare const unpluginFactory: UnpluginFactory<Options | undefined>;
11
- declare const unplugin: unplugin0.UnpluginInstance<Options | undefined, boolean>;
12
- declare const vite: (options?: Options | undefined) => vite1.Plugin<any> | vite1.Plugin<any>[];
13
- declare const rollup: (options?: Options | undefined) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
14
- declare const webpack: (options?: Options | undefined) => webpack0.WebpackPluginInstance;
15
- declare const esbuild: (options?: Options | undefined) => esbuild0.Plugin;
16
- //#endregion
17
- export { unplugin as default, unplugin, esbuild, rollup, unpluginFactory, vite, webpack };
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { esbuild, rollup, src_default, unplugin, unpluginFactory, vite, webpack } from "./src-BKy9tiI6.js";
2
-
3
- export { src_default as default, esbuild, rollup, unplugin, unpluginFactory, vite, webpack };
package/dist/rollup.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { Options } from "./types-BVbGtSvv.js";
2
- import * as rollup0 from "rollup";
3
-
4
- //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
6
- //#endregion
7
- export { _default as default };
package/dist/types.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { Options, ResolvedOptions } from "./types-BVbGtSvv.js";
2
- export { Options, ResolvedOptions };
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- export { };
package/dist/vite.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { Options } from "./types-BVbGtSvv.js";
2
- import * as vite0 from "vite";
3
-
4
- //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite0.Plugin<any> | vite0.Plugin<any>[];
6
- //#endregion
7
- export { _default as default };
package/dist/vite.js DELETED
@@ -1,4 +0,0 @@
1
- import "./src-BKy9tiI6.js";
2
- import { vite_default } from "./vite-gMMORSxX.js";
3
-
4
- export { vite_default as default };
package/dist/webpack.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { Options } from "./types-BVbGtSvv.js";
2
- import * as webpack0 from "webpack";
3
-
4
- //#region src/webpack.d.ts
5
- declare const _default: (options?: Options | undefined) => webpack0.WebpackPluginInstance;
6
- //#endregion
7
- export { _default as default };
package/dist/webpack.js DELETED
@@ -1,4 +0,0 @@
1
- import "./src-BKy9tiI6.js";
2
- import { webpack_default } from "./webpack-BsOsB8pU.js";
3
-
4
- export { webpack_default as default };