@fluxlay/vite 1.0.2 → 1.0.4

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