@supsign/unplugin-interfaces 0.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.
@@ -0,0 +1,17 @@
1
+ //#region src/types.d.ts
2
+ interface Options {
3
+ /** Verzeichnis mit deinen Interface-Dateien */
4
+ dir?: string;
5
+ /** Dateien (Dateinamen) ausschliessen */
6
+ exclude?: string[];
7
+ /** Pfad zur generierten globalen d.ts-Datei */
8
+ out?: string;
9
+ }
10
+ interface ResolvedOptions {
11
+ interfaceDir: string;
12
+ indexFile: string;
13
+ outputFile: string;
14
+ excludeFiles: Set<string>;
15
+ }
16
+ //#endregion
17
+ export { Options, ResolvedOptions };
@@ -0,0 +1,2 @@
1
+ import { Options, ResolvedOptions } from "./types-BVbGtSvv.js";
2
+ export { Options, ResolvedOptions };
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,8 @@
1
+ import { unpluginFactory } from "./src-CskmyrvV.js";
2
+ import { createVitePlugin } from "unplugin";
3
+
4
+ //#region src/vite.ts
5
+ var vite_default = createVitePlugin(unpluginFactory);
6
+
7
+ //#endregion
8
+ export { vite_default };
package/dist/vite.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { Options } from "./types-BVbGtSvv.js";
2
+ import * as vite1 from "vite";
3
+
4
+ //#region src/vite.d.ts
5
+ declare const _default: (options?: Options | undefined) => vite1.Plugin<any> | vite1.Plugin<any>[];
6
+ //#endregion
7
+ export { _default as default };
package/dist/vite.js ADDED
@@ -0,0 +1,4 @@
1
+ import "./src-CskmyrvV.js";
2
+ import { vite_default } from "./vite-B3qRJmDz.js";
3
+
4
+ export { vite_default as default };
@@ -0,0 +1,8 @@
1
+ import { unpluginFactory } from "./src-CskmyrvV.js";
2
+ import { createWebpackPlugin } from "unplugin";
3
+
4
+ //#region src/webpack.ts
5
+ var webpack_default = createWebpackPlugin(unpluginFactory);
6
+
7
+ //#endregion
8
+ export { webpack_default };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,4 @@
1
+ import "./src-CskmyrvV.js";
2
+ import { webpack_default } from "./webpack-Do7Ul9CV.js";
3
+
4
+ export { webpack_default as default };
package/package.json ADDED
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "@supsign/unplugin-interfaces",
3
+ "type": "module",
4
+ "version": "0.1.0",
5
+ "packageManager": "pnpm@10.18.3",
6
+ "description": "",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/supsign/unplugin-interfaces#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/supsign/unplugin-interfaces.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/supsign/unplugin-interfaces/issues"
15
+ },
16
+ "keywords": [
17
+ "unplugin",
18
+ "vite",
19
+ "webpack",
20
+ "rollup",
21
+ "transform"
22
+ ],
23
+ "exports": {
24
+ ".": "./dist/index.js",
25
+ "./astro": "./dist/astro.js",
26
+ "./esbuild": "./dist/esbuild.js",
27
+ "./farm": "./dist/farm.js",
28
+ "./nuxt": "./dist/nuxt.js",
29
+ "./rollup": "./dist/rollup.js",
30
+ "./rspack": "./dist/rspack.js",
31
+ "./types": "./dist/types.js",
32
+ "./vite": "./dist/vite.js",
33
+ "./webpack": "./dist/webpack.js",
34
+ "./package.json": "./package.json"
35
+ },
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
+ }
46
+ },
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"
59
+ },
60
+ "peerDependencies": {
61
+ "@farmfe/core": ">=1",
62
+ "@nuxt/kit": "^3",
63
+ "@nuxt/schema": "^3",
64
+ "esbuild": "*",
65
+ "rollup": "^3",
66
+ "vite": ">=3",
67
+ "webpack": "^4 || ^5"
68
+ },
69
+ "peerDependenciesMeta": {
70
+ "@farmfe/core": {
71
+ "optional": true
72
+ },
73
+ "@nuxt/kit": {
74
+ "optional": true
75
+ },
76
+ "@nuxt/schema": {
77
+ "optional": true
78
+ },
79
+ "esbuild": {
80
+ "optional": true
81
+ },
82
+ "rollup": {
83
+ "optional": true
84
+ },
85
+ "vite": {
86
+ "optional": true
87
+ },
88
+ "webpack": {
89
+ "optional": true
90
+ }
91
+ },
92
+ "dependencies": {
93
+ "unplugin": "^2.3.10"
94
+ },
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"
111
+ }
112
+ }