feat: updates for tauri beta-rc

This commit is contained in:
Lucas Nogueira
2021-04-23 17:44:46 -03:00
parent 2de10aaa33
commit 2b0cbc36c9
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@
"jsonValidation": [
{
"fileMatch": "tauri.conf.json",
"url": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/cli/tauri.js/src/types/config.schema.json"
"url": "https://github.com/tauri-apps/tauri/blob/dev/tooling/cli.rs/schema.json"
}
],
"commands": [
@@ -81,4 +81,4 @@
"glob": "7.1.6",
"run-in-terminal": "^0.0.3"
}
}
}

View File

@@ -55,8 +55,8 @@ function runTauriInit(): void {
installCommand = 'vue add tauri';
} else {
installCommand = fs.existsSync(path.join(projectPath, 'yarn.lock'))
? 'yarn add tauri'
: `${__getNpmBin()} install tauri`;
? 'yarn add @tauri-apps/cli --dev'
: `${__getNpmBin()} install @tauri-apps/cli --save-dev`;
onInstall = () => {
__runTauriScript(['init'], { cwd: projectPath, noOutputWindow: true });
};