@fluxlay/vite 1.0.2 → 1.0.3

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,6 @@
1
+ import { Plugin } from 'vite';
2
+ /**
3
+ * Vite plugin for building Fluxlay plugins.
4
+ * Enforces output directory and minification settings.
5
+ */
6
+ export declare function fluxlay(): Plugin;
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ function r() {
2
+ return {
3
+ name: "vite-plugin-fluxlay",
4
+ config(e) {
5
+ return {
6
+ base: "./",
7
+ build: {
8
+ outDir: "dist",
9
+ emptyOutDir: !0,
10
+ minify: e.build?.minify ?? "terser",
11
+ terserOptions: {
12
+ compress: { drop_console: !0 },
13
+ mangle: !0
14
+ }
15
+ }
16
+ };
17
+ }
18
+ };
19
+ }
20
+ export {
21
+ r as fluxlay
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxlay/vite",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Vite plugin for building Fluxlay wallpapers",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "homepage": "https://fluxlay.com",
@@ -11,24 +11,31 @@
11
11
  "plugin"
12
12
  ],
13
13
  "type": "module",
14
- "main": "./src/index.ts",
15
- "types": "./src/index.ts",
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
16
  "files": [
17
+ "dist",
17
18
  "src"
18
19
  ],
19
20
  "exports": {
20
- ".": "./src/index.ts"
21
+ ".": {
22
+ "import": "./dist/index.js",
23
+ "types": "./dist/index.d.ts"
24
+ }
21
25
  },
22
26
  "peerDependencies": {
23
27
  "vite": ">=7"
24
28
  },
25
29
  "devDependencies": {
26
- "typescript": "^5.9.3"
30
+ "typescript": "^5.9.3",
31
+ "vite": "^7.3.1",
32
+ "vite-plugin-dts": "^4.5.4"
27
33
  },
28
34
  "dependencies": {
29
35
  "terser": "^5.46.0"
30
36
  },
31
37
  "scripts": {
38
+ "build": "vite build",
32
39
  "check": "biome check --write"
33
40
  }
34
41
  }