@htyf-mp/cli 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.mjs +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": {
package/src/build.mjs CHANGED
@@ -253,7 +253,9 @@ export async function mpBuildShell(newAppInfo, isGodot = false) {
253
253
  // 将 app.json 复制到输出目录
254
254
  await fse.ensureDir(outputPath);
255
255
  await fse.copy(appJsonPath, path.join(outputPath, 'app.json'));
256
- fse.copyFileSync(path.join(outputPath, '../manifest.json'), path.join(outputPath, 'manifest.json'));
256
+ if (!isGodot) {
257
+ fse.copyFileSync(path.join(outputPath, '../manifest.json'), path.join(outputPath, 'manifest.json'));
258
+ }
257
259
 
258
260
  // 压缩输出目录为最终包
259
261
  const zipPath = await handleZip(outputPath, distPackagePath);