vite-pug-static-builder 1.0.1 → 1.0.2
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 +16 -19
- package/dist/build.d.ts +2 -3
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +9 -4
- package/dist/index.d.ts +6 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -13
- package/dist/pug.d.ts.map +1 -1
- package/dist/pug.js +19 -23
- package/dist/serve.d.ts +2 -3
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +2 -2
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -6,26 +6,14 @@
|
|
|
6
6
|
[](https://pugjs.org/)
|
|
7
7
|
[](https://vitest.dev/)
|
|
8
8
|
|
|
9
|
-
**Vite
|
|
9
|
+
**Vite 6 & 7 および Vitest 3.2対応版** - Vite + Pugを使用した高性能静的サイトビルダー
|
|
10
10
|
|
|
11
11
|
複数のPugファイルを効率的に静的HTMLファイルとしてビルドできる、最新のViteプラグインです。
|
|
12
|
+
Vite 6 と Vite 7 の両方のバージョンをサポートしています。
|
|
12
13
|
|
|
13
|
-
## ✨
|
|
14
|
+
## ✨ 主な特徴
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
- **Environment API**: 新しいVite 7のEnvironment APIに完全対応
|
|
17
|
-
- **最新型システム**: TypeScript 5.6の最新機能を活用した型安全性の向上
|
|
18
|
-
- **パフォーマンス向上**: Vite 7の高速化されたビルドシステムを活用
|
|
19
|
-
|
|
20
|
-
### 🧪 Vitest 3.2対応
|
|
21
|
-
- **Projects API**: workspace → projectsへの移行完了
|
|
22
|
-
- **Enhanced Coverage**: v8カバレッジプロバイダーによる詳細なテストカバレッジ
|
|
23
|
-
- **型チェック**: TypeScriptの型チェックを統合したテスト実行
|
|
24
|
-
- **並列実行**: マルチスレッドによる高速テスト実行
|
|
25
|
-
|
|
26
|
-
## 特徴
|
|
27
|
-
|
|
28
|
-
- 🚀 **超高速ビルド**: Vite 7の最新ビルドシステムによる極速開発体験
|
|
16
|
+
- 🚀 **高速ビルド**: Vite のビルドシステムによる高速な開発体験
|
|
29
17
|
- 📝 **Pugサポート**: Pugテンプレートエンジンで効率的なHTML作成
|
|
30
18
|
- 🔄 **開発時リアルタイム更新**: HMR (Hot Module Replacement) 対応
|
|
31
19
|
- 📱 **静的サイト生成**: 本番環境向けに最適化された静的HTMLファイルを生成
|
|
@@ -49,8 +37,8 @@ pnpm add vite-pug-static-builder
|
|
|
49
37
|
## 必要環境
|
|
50
38
|
|
|
51
39
|
- **Node.js**: 18.0.0以上
|
|
52
|
-
- **Vite**: 7.0.0-beta.0
|
|
53
|
-
- **Pug**: 3.0.0
|
|
40
|
+
- **Vite**: ^6.0.0 || ^7.0.0-beta.0
|
|
41
|
+
- **Pug**: ^3.0.0
|
|
54
42
|
|
|
55
43
|
## 基本的な使用方法
|
|
56
44
|
|
|
@@ -202,15 +190,24 @@ npm run preview
|
|
|
202
190
|
npm run type-check
|
|
203
191
|
|
|
204
192
|
# テスト実行(Vitest 3.2)
|
|
193
|
+
# Vite 7 環境で実行されます
|
|
205
194
|
npm test
|
|
206
195
|
|
|
207
|
-
#
|
|
196
|
+
# Vite 6 環境でテストを実行
|
|
197
|
+
npm run test:vite6
|
|
198
|
+
|
|
199
|
+
# カバレッジ付きテスト (Vite 7環境)
|
|
208
200
|
npm run coverage
|
|
209
201
|
|
|
210
202
|
# ウォッチモードでテスト
|
|
211
203
|
npm run test:watch
|
|
212
204
|
```
|
|
213
205
|
|
|
206
|
+
**開発時の注意点:**
|
|
207
|
+
|
|
208
|
+
テストを実行する際には、対象としたい Vite のメジャーバージョンに応じて、適切なスクリプト (`npm test` または `npm run test:vite6`) を選択するか、`VITE_MAJOR_VERSION` 環境変数を設定してください。
|
|
209
|
+
これにより、テストスイート内のバージョン固有のロジックが正しく機能します。
|
|
210
|
+
|
|
214
211
|
## TypeScript統合
|
|
215
212
|
|
|
216
213
|
完全なTypeScript対応により、設定ファイルやPugテンプレート内でも型安全性を確保できます:
|
package/dist/build.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Plugin } from 'vite';
|
|
|
3
3
|
/**
|
|
4
4
|
* Pugビルド設定
|
|
5
5
|
*/
|
|
6
|
-
interface BuildSettings {
|
|
6
|
+
export interface BuildSettings {
|
|
7
7
|
/** Pugコンパイルオプション */
|
|
8
8
|
readonly options?: Pug.Options;
|
|
9
9
|
/** Pugローカル変数オブジェクト */
|
|
@@ -14,6 +14,5 @@ interface BuildSettings {
|
|
|
14
14
|
* @param settings - ビルド設定
|
|
15
15
|
* @returns Viteプラグイン
|
|
16
16
|
*/
|
|
17
|
-
export declare const vitePluginPugBuild: (settings
|
|
18
|
-
export {};
|
|
17
|
+
export declare const vitePluginPugBuild: (settings?: BuildSettings) => Plugin;
|
|
19
18
|
//# sourceMappingURL=build.d.ts.map
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIlC;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,oBAAoB;IACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAC9B,sBAAsB;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,YAAY,CAAA;CACnC;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,WAAW,aAAa,KAAG,MAmE7D,CAAA"}
|
package/dist/build.js
CHANGED
|
@@ -8,12 +8,16 @@ import { outputLog } from './utils.js';
|
|
|
8
8
|
* @returns Viteプラグイン
|
|
9
9
|
*/
|
|
10
10
|
export const vitePluginPugBuild = (settings) => {
|
|
11
|
-
const { options, locals } = settings;
|
|
11
|
+
const { options, locals } = settings ?? {};
|
|
12
12
|
const pathMap = new Map();
|
|
13
|
+
let root = '';
|
|
13
14
|
return {
|
|
14
15
|
name: 'vite-plugin-pug-build',
|
|
15
16
|
enforce: 'pre',
|
|
16
17
|
apply: 'build',
|
|
18
|
+
configResolved(config) {
|
|
19
|
+
root = config.root;
|
|
20
|
+
},
|
|
17
21
|
resolveId(source) {
|
|
18
22
|
const parsedPath = path.parse(source);
|
|
19
23
|
if (parsedPath.ext !== '.pug') {
|
|
@@ -35,9 +39,10 @@ export const vitePluginPugBuild = (settings) => {
|
|
|
35
39
|
// PugファイルのHTMLへの変換
|
|
36
40
|
if (pathMap.has(id)) {
|
|
37
41
|
const pugPath = pathMap.get(id);
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
42
|
+
const pugOptions = { ...options, ...locals };
|
|
43
|
+
const compiledTemplate = compileFile(pugPath, pugOptions);
|
|
44
|
+
const html = compiledTemplate();
|
|
45
|
+
outputLog('info', 'compiled:', path.relative(root, pugPath));
|
|
41
46
|
return html;
|
|
42
47
|
}
|
|
43
48
|
// 既存のHTMLファイルの読み込み
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type BuildSettings } from './build.js';
|
|
2
|
+
import { type ServeSettings } from './serve.js';
|
|
3
3
|
/**
|
|
4
4
|
* プラグイン設定
|
|
5
5
|
*/
|
|
6
6
|
interface Settings {
|
|
7
|
-
/**
|
|
8
|
-
readonly
|
|
9
|
-
/**
|
|
10
|
-
readonly
|
|
11
|
-
/** 開発サーバー時のPugコンパイルオプション */
|
|
12
|
-
readonly serveOptions?: Pug.Options;
|
|
13
|
-
/** 開発サーバー時のPugローカル変数 */
|
|
14
|
-
readonly serveLocals?: Pug.LocalsObject;
|
|
15
|
-
/** 無視パターン */
|
|
16
|
-
readonly ignorePattern?: Picomatch.Glob;
|
|
17
|
-
/** リロード設定 */
|
|
18
|
-
readonly reload?: boolean;
|
|
7
|
+
/** ビルド時の設定 */
|
|
8
|
+
readonly build?: BuildSettings;
|
|
9
|
+
/** 開発サーバー時の設定 */
|
|
10
|
+
readonly serve?: ServeSettings;
|
|
19
11
|
}
|
|
20
12
|
/**
|
|
21
13
|
* Vite Pug静的サイトプラグイン
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAEnE;;GAEG;AACH,UAAU,QAAQ;IAChB,cAAc;IACd,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,iBAAiB;IACjB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAC/B;AAID;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,GAAI,eAAe,QAAQ,iCAOnD,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -11,18 +11,6 @@ const vitePluginPugStatic = (userSettings) => {
|
|
|
11
11
|
...defaultSettings,
|
|
12
12
|
...userSettings,
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
return [
|
|
16
|
-
vitePluginPugBuild({
|
|
17
|
-
...(buildOptions && { options: buildOptions }),
|
|
18
|
-
...(buildLocals && { locals: buildLocals }),
|
|
19
|
-
}),
|
|
20
|
-
vitePluginPugServe({
|
|
21
|
-
...(serveOptions && { options: serveOptions }),
|
|
22
|
-
...(serveLocals && { locals: serveLocals }),
|
|
23
|
-
...(ignorePattern && { ignorePattern }),
|
|
24
|
-
...(reload !== undefined && { reload }),
|
|
25
|
-
}),
|
|
26
|
-
];
|
|
14
|
+
return [vitePluginPugBuild(settings.build), vitePluginPugServe(settings.serve)];
|
|
27
15
|
};
|
|
28
16
|
export default vitePluginPugStatic;
|
package/dist/pug.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pug.d.ts","sourceRoot":"","sources":["../src/pug.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,MAAM,CAAA;AA+CnD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GACrB,aAAa,WAAW,EACxB,KAAK,MAAM,EACX,SAAS,MAAM,EACf,UAAU,GAAG,CAAC,OAAO,EACrB,SAAS,GAAG,CAAC,YAAY,KACxB,OAAO,CAAC,OAAO,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"pug.d.ts","sourceRoot":"","sources":["../src/pug.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,MAAM,CAAA;AA+CnD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GACrB,aAAa,WAAW,EACxB,KAAK,MAAM,EACX,SAAS,MAAM,EACf,UAAU,GAAG,CAAC,OAAO,EACrB,SAAS,GAAG,CAAC,YAAY,KACxB,OAAO,CAAC,OAAO,GAAG,KAAK,CAiDzB,CAAA"}
|
package/dist/pug.js
CHANGED
|
@@ -2,33 +2,33 @@ import path from 'node:path';
|
|
|
2
2
|
import { compileFile } from 'pug';
|
|
3
3
|
import { outputLog } from './utils.js';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 依存関係をモジュールグラフに登録
|
|
6
6
|
* @param moduleGraph - モジュールグラフ
|
|
7
7
|
* @param compiledModule - HTMLにコンパイルされるPugモジュール
|
|
8
|
-
* @param
|
|
8
|
+
* @param dependencies - compiledModuleの依存ファイルパス配列
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const registerDependencies = (moduleGraph, compiledModule, dependencies) => {
|
|
11
11
|
// モジュールマップに祖先を追加
|
|
12
|
-
for (const
|
|
12
|
+
for (const dependency of dependencies) {
|
|
13
13
|
try {
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
|
|
14
|
+
const depModules = moduleGraph.getModulesByFile(dependency);
|
|
15
|
+
let depModule;
|
|
16
|
+
if (depModules && depModules.size > 0) {
|
|
17
|
+
depModule = [...depModules][0];
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
// Vite 7では createFileOnlyEntry の代わりに ensureEntryFromUrl を使用
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const depUrl = dependency.replace(process.cwd(), '').replace(/\\/g, '/');
|
|
22
|
+
depModule = moduleGraph.getModuleById(depUrl) || undefined;
|
|
23
23
|
}
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
compiledModule.importedModules.add(
|
|
24
|
+
if (depModule) {
|
|
25
|
+
depModule.importers.add(compiledModule); // TODO: 依存関係から削除された場合の処理
|
|
26
|
+
compiledModule.importedModules.add(depModule); // オプション
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
catch (error) {
|
|
30
30
|
// 祖先モジュールの処理に失敗した場合はログを出力して続行
|
|
31
|
-
outputLog('warn', '
|
|
31
|
+
outputLog('warn', 'dependency module processing failed:', dependency);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
};
|
|
@@ -63,9 +63,9 @@ export const compilePug = async (moduleGraph, url, pugPath, options, locals) =>
|
|
|
63
63
|
const map = null;
|
|
64
64
|
const compiledTemplate = compileFile(pugPath, options);
|
|
65
65
|
// Pugコンパイラから祖先情報を取得
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
|
|
66
|
+
const dependencies = compiledTemplate.dependencies;
|
|
67
|
+
if (dependencies.length > 0) {
|
|
68
|
+
registerDependencies(moduleGraph, compiledModule, dependencies);
|
|
69
69
|
}
|
|
70
70
|
// HTML生成
|
|
71
71
|
const code = compiledTemplate(locals);
|
|
@@ -74,11 +74,7 @@ export const compilePug = async (moduleGraph, url, pugPath, options, locals) =>
|
|
|
74
74
|
return true;
|
|
75
75
|
}
|
|
76
76
|
catch (error) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (error instanceof Error) {
|
|
80
|
-
return error;
|
|
81
|
-
}
|
|
82
|
-
return new Error(`Pug compilation failed: ${errorMessage}`);
|
|
77
|
+
outputLog('error', 'compilation failed:', pugPath, String(error));
|
|
78
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
83
79
|
}
|
|
84
80
|
};
|
package/dist/serve.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type Picomatch from 'picomatch';
|
|
|
5
5
|
/**
|
|
6
6
|
* 開発サーバー設定
|
|
7
7
|
*/
|
|
8
|
-
interface ServeSettings {
|
|
8
|
+
export interface ServeSettings {
|
|
9
9
|
/** Pugコンパイルオプション */
|
|
10
10
|
readonly options?: Pug.Options;
|
|
11
11
|
/** Pugローカル変数オブジェクト */
|
|
@@ -24,6 +24,5 @@ export type Middleware = (req: Connect.IncomingMessage, res: http.ServerResponse
|
|
|
24
24
|
* @param settings - サーブ設定
|
|
25
25
|
* @returns Viteプラグイン
|
|
26
26
|
*/
|
|
27
|
-
export declare const vitePluginPugServe: (settings
|
|
28
|
-
export {};
|
|
27
|
+
export declare const vitePluginPugServe: (settings?: ServeSettings) => Plugin;
|
|
29
28
|
//# sourceMappingURL=serve.d.ts.map
|
package/dist/serve.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../src/serve.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAC1B,OAAO,KAAK,EAAE,MAAM,EAAiB,OAAO,EAAE,MAAM,MAAM,CAAA;AAE1D,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AAKtC;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../src/serve.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAC1B,OAAO,KAAK,EAAE,MAAM,EAAiB,OAAO,EAAE,MAAM,MAAM,CAAA;AAE1D,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AAKtC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,oBAAoB;IACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAC9B,sBAAsB;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,YAAY,CAAA;IAClC,4BAA4B;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,IAAI,CAAA;IACvC,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CACvB,GAAG,EAAE,OAAO,CAAC,eAAe,EAC5B,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,IAAI,EAAE,OAAO,CAAC,YAAY,KACvB,IAAI,GAAG,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,CAAA;AA8FrE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,WAAW,aAAa,KAAG,MAiC7D,CAAA"}
|
package/dist/serve.js
CHANGED
|
@@ -74,7 +74,7 @@ const createMiddleware = (settings, server) => {
|
|
|
74
74
|
* @returns Viteプラグイン
|
|
75
75
|
*/
|
|
76
76
|
export const vitePluginPugServe = (settings) => {
|
|
77
|
-
const { reload } = settings;
|
|
77
|
+
const { reload } = settings ?? {};
|
|
78
78
|
let server;
|
|
79
79
|
return {
|
|
80
80
|
name: 'vite-plugin-pug-serve',
|
|
@@ -82,7 +82,7 @@ export const vitePluginPugServe = (settings) => {
|
|
|
82
82
|
apply: 'serve',
|
|
83
83
|
configureServer(_server) {
|
|
84
84
|
server = _server;
|
|
85
|
-
server.middlewares.use(createMiddleware(settings, server));
|
|
85
|
+
server.middlewares.use(createMiddleware(settings ?? {}, server));
|
|
86
86
|
},
|
|
87
87
|
handleHotUpdate(context) {
|
|
88
88
|
const fileModules = server.moduleGraph.getModulesByFile(context.file);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-pug-static-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Vite + Pugを使用した静的サイトビルダー - 複数のPugファイルを静的HTMLとしてビルドするViteプラグイン",
|
|
5
5
|
"author": "maigo999",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,13 +36,15 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"clean": "rimraf ./dist",
|
|
38
38
|
"type-check": "tsc --noEmit -p .",
|
|
39
|
-
"test": "vitest run",
|
|
39
|
+
"test:vite6": "cross-env VITE_MAJOR_VERSION=6 vitest run",
|
|
40
|
+
"test:vite7": "cross-env VITE_MAJOR_VERSION=7 vitest run",
|
|
41
|
+
"test": "pnpm test:vite7",
|
|
40
42
|
"test:update": "vitest run -u",
|
|
41
43
|
"test:watch": "vitest",
|
|
42
|
-
"coverage": "vitest run --coverage",
|
|
44
|
+
"coverage": "cross-env VITE_MAJOR_VERSION=7 vitest run --coverage",
|
|
43
45
|
"tsc": "tsc -p .",
|
|
44
46
|
"build": "pnpm clean && pnpm tsc",
|
|
45
|
-
"prepublishOnly": "pnpm
|
|
47
|
+
"prepublishOnly": "pnpm build"
|
|
46
48
|
},
|
|
47
49
|
"dependencies": {
|
|
48
50
|
"ansis": "^3.2.0",
|
|
@@ -51,16 +53,18 @@
|
|
|
51
53
|
},
|
|
52
54
|
"peerDependencies": {
|
|
53
55
|
"pug": "^3.0.0",
|
|
54
|
-
"vite": "^
|
|
56
|
+
"vite": "^6.0.0 || ^7.0.0"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
59
|
"@types/picomatch": "^2.3.3",
|
|
58
60
|
"@types/pug": "^2.0.10",
|
|
59
61
|
"@vitest/coverage-v8": "^3.2.1",
|
|
60
62
|
"axios": "^1.7.9",
|
|
63
|
+
"cross-env": "^7.0.3",
|
|
64
|
+
"fs-extra": "^11.3.0",
|
|
61
65
|
"rimraf": "^6.0.1",
|
|
62
66
|
"typescript": "^5.6.3",
|
|
63
|
-
"vite": "7.0.0
|
|
67
|
+
"vite": "^7.0.0",
|
|
64
68
|
"vitest": "^3.2.1"
|
|
65
69
|
}
|
|
66
70
|
}
|