fix(cta): add `tauri` script in package.json
@@ -208,6 +208,9 @@ async function runInit(argv, config = {}) {
});
console.log("===== running tauri init =====");
+ await shell("npm", ["set-script", "tauri", "tauri"], {
+ cwd: join(cwd, cfg.appName),
+ });
const binary = !argv.b ? packageManager : resolve(appDirectory, argv.b);
const runTauriArgs =
packageManager === "npm" && !argv.b
