fixup some bug for pake-cli

This commit is contained in:
Pake-Actions
2023-04-11 10:35:13 +08:00
parent 7653eb77ed
commit 58dd7aab42
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ export async function mergeTauriConfig(
pakeConfigPath,
Buffer.from(JSON.stringify(tauriConf.pake, null, 4), 'utf-8')
);
logger.info("tauri config", JSON.stringify(tauriConf.build));
// logger.info("tauri config", JSON.stringify(tauriConf.build));
let tauriConf2 = JSON.parse(JSON.stringify(tauriConf));
delete tauriConf2.pake;
delete tauriConf2.tauri.bundle;

2
dist/cli.js vendored
View File

@@ -1878,7 +1878,7 @@ function mergeTauriConfig(url, options, tauriConf) {
yield fs$1.writeFile(configPath, Buffer.from(JSON.stringify(bundleConf, null, 4), 'utf-8'));
const pakeConfigPath = path.join(npmDirectory, 'src-tauri/pake.json');
yield fs$1.writeFile(pakeConfigPath, Buffer.from(JSON.stringify(tauriConf.pake, null, 4), 'utf-8'));
logger.info("tauri config", JSON.stringify(tauriConf.build));
// logger.info("tauri config", JSON.stringify(tauriConf.build));
let tauriConf2 = JSON.parse(JSON.stringify(tauriConf));
delete tauriConf2.pake;
delete tauriConf2.tauri.bundle;