@vituum/vite-plugin-pug 2.0.0-next.1 → 2.0.1

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
@@ -38,5 +38,5 @@ or
38
38
 
39
39
  ### Requirements
40
40
 
41
- - [Node.js LTS (24.x)](https://nodejs.org/en/download/)
42
- - [Vite (8.x)](https://vitejs.dev/)
41
+ - [Node.js LTS (20.x)](https://nodejs.org/en/download/)
42
+ - [Vite](https://vitejs.dev/)
package/index.js CHANGED
@@ -82,7 +82,7 @@ const renderTemplate = async ({ filename, server, resolvedConfig }, content, opt
82
82
 
83
83
  /**
84
84
  * @param {import('@vituum/vite-plugin-pug/types').PluginUserConfig} options
85
- * @returns [import('vite').Plugin]
85
+ * @returns {import('vite').Plugin[]}
86
86
  */
87
87
  const plugin = (options = {}) => {
88
88
  let resolvedConfig
@@ -118,6 +118,7 @@ const plugin = (options = {}) => {
118
118
  },
119
119
  transformIndexHtml: {
120
120
  order: 'pre',
121
+ /** @returns {Promise<string | Object>} */
121
122
  async handler(content, { path, filename, server }) {
122
123
  return pluginTransform(content, { path, filename, server }, { name, options, resolvedConfig, renderTemplate })
123
124
  },
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@vituum/vite-plugin-pug",
3
- "version": "2.0.0-next.1",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
7
+ "description": "Vite plugin for Pug, transforms pug templates into HTML",
8
+ "keywords": [
9
+ "pug",
10
+ "vituum",
11
+ "vite",
12
+ "vite-plugin"
13
+ ],
7
14
  "scripts": {
8
15
  "lint": "npm run eslint && npm run tsc",
9
16
  "tsc": "tsc",
@@ -12,16 +19,18 @@
12
19
  },
13
20
  "dependencies": {
14
21
  "pug": "^3.0",
15
- "vituum": "^2.0.0-next.9"
22
+ "vituum": "^2.0"
23
+ },
24
+ "peerDependencies": {
25
+ "vite": "^8.0"
16
26
  },
17
27
  "devDependencies": {
18
- "@eslint/js": "^9.39",
19
- "@stylistic/eslint-plugin": "^5.7",
20
- "@types/node": "^25.0",
21
- "eslint": "^9.39",
22
- "globals": "^17.0",
23
- "typescript": "^5.9",
24
- "vite": "^8.0.0-beta.8"
28
+ "@eslint/js": "^10.0",
29
+ "@stylistic/eslint-plugin": "^5.10",
30
+ "@types/node": "^25.5",
31
+ "eslint": "^10.0",
32
+ "globals": "^17.4",
33
+ "typescript": "^5.9"
25
34
  },
26
35
  "files": [
27
36
  "index.js",
@@ -34,7 +43,7 @@
34
43
  }
35
44
  },
36
45
  "engines": {
37
- "node": "^24.0.0 || >=25.0.0"
46
+ "node": "^20.19.0 || >=22.12.0"
38
47
  },
39
48
  "repository": {
40
49
  "type": "git",
package/types/index.d.ts CHANGED
@@ -36,4 +36,4 @@ export interface PluginUserConfig {
36
36
  options?: PugOptions
37
37
  }
38
38
 
39
- export default function plugin(options?: PluginUserConfig) : import('vite').Plugin
39
+ export default function plugin(options?: PluginUserConfig) : import('vite').Plugin[]