@flun/node-mobile-app 4.0.7 → 4.0.8
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/CHANGELOG.md +6 -5
- package/package.json +1 -1
- package/src/copy.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
# 变更日志
|
|
2
|
+
## [4.0.8] - 2026-10-26 09:56
|
|
3
|
+
### 修复
|
|
4
|
+
- 修复 `src/copy.js` 中 `out.allowScripts` 赋值语句缺少等号导致的运行时报错 `out.allowScripts is not a function`;
|
|
5
|
+
- 该问题由 4.0.7 版本折行时断点落在等号处、丢失赋值运算符引起;
|
|
6
|
+
|
|
2
7
|
## [4.0.7] - 2026-10-25 15:16
|
|
3
8
|
### 优化
|
|
4
9
|
- 项目标点已改为以英文标点为主;
|
|
@@ -6,8 +11,4 @@
|
|
|
6
11
|
|
|
7
12
|
## [4.0.6] - 2026-10-22 16:31
|
|
8
13
|
### 更新
|
|
9
|
-
- 同步升级了一些依赖包;
|
|
10
|
-
|
|
11
|
-
## [4.0.5] - 2026-10-21 12:10
|
|
12
|
-
### 优化
|
|
13
|
-
- 进一步优化 .md 文件;
|
|
14
|
+
- 同步升级了一些依赖包;
|
package/package.json
CHANGED
package/src/copy.js
CHANGED
|
@@ -182,7 +182,7 @@ const BUILD_DIR_NAME = 'node-mobile-app-build',
|
|
|
182
182
|
if (!fs.existsSync(userPkgPath)) throw new Error('用户项目缺少 package.json');
|
|
183
183
|
const pkg = readJson(userPkgPath), out = { ...pkg };
|
|
184
184
|
delete out.devDependencies;
|
|
185
|
-
out.allowScripts
|
|
185
|
+
out.allowScripts =
|
|
186
186
|
(config.allowScripts && Object.keys(config.allowScripts).length) ? config.allowScripts : { node: true };
|
|
187
187
|
writeIfChanged(path.join(targetDir, 'package.json'), JSON.stringify(out, null, 2) + '\n');
|
|
188
188
|
|