@flun/html-template 4.0.10 → 4.0.12
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/compile.js +1 -1
- package/copy-files.js +1 -1
- package/customize/account.js +1 -1
- package/f-CHANGELOG.md +3 -3
- package/package.json +1 -1
package/compile.js
CHANGED
|
@@ -261,7 +261,7 @@ const execPromise = util.promisify(exec),
|
|
|
261
261
|
rendered = await processIncludes(rendered, templateFile);
|
|
262
262
|
rendered = processVariables(rendered, { currentUrl: `/${templateFile}`, query: {} });
|
|
263
263
|
|
|
264
|
-
const includedFiles = getIncludedFiles();
|
|
264
|
+
const includedFiles = getIncludedFiles(); // 获取所有包含文件
|
|
265
265
|
if (includedFiles.has(templateFile)) continue; // 跳过被包含的文件
|
|
266
266
|
|
|
267
267
|
const outputPath = path.join(CWD, outputDir, templatesDir, templateFile);
|
package/copy-files.js
CHANGED
|
@@ -148,7 +148,7 @@ const runCopyFiles = async (options = {}) => {
|
|
|
148
148
|
account: options.account ?? false,
|
|
149
149
|
packageDir: __dirname // 包所在目录,用于路径判断
|
|
150
150
|
},
|
|
151
|
-
targetDir = path.resolve(__dirname, '
|
|
151
|
+
targetDir = path.resolve(__dirname, '../../..'); // 目标目录(项目根目录)
|
|
152
152
|
|
|
153
153
|
console.log('✅ 开始复制文件'); // 关键消息总是显示
|
|
154
154
|
if (config.verbose) {
|
package/customize/account.js
CHANGED
|
@@ -4,7 +4,7 @@ import express from 'express';
|
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import { env } from '@flun/env';
|
|
7
|
-
import { createTransport } from '@flun/
|
|
7
|
+
import { createTransport } from '@flun/mailer';
|
|
8
8
|
import {
|
|
9
9
|
generateRegistrationOptions, verifyRegistrationResponse, generateAuthenticationOptions, verifyAuthenticationResponse
|
|
10
10
|
} from '@flun/webauthn-server';
|
package/f-CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# 变更日志
|
|
2
|
-
## [4.0.
|
|
3
|
-
###
|
|
4
|
-
-
|
|
2
|
+
## [4.0.12] - 2026-04-30 17:05
|
|
3
|
+
### 修复:
|
|
4
|
+
- 修复了account.js文件中邮件包名使用错误的问题;
|