diff --git a/.changes/tauri.js-install-on-init.md b/.changes/tauri.js-install-on-init.md new file mode 100644 index 000000000..d395a7dad --- /dev/null +++ b/.changes/tauri.js-install-on-init.md @@ -0,0 +1,5 @@ +--- +"tauri.js": patch +--- + +Run the dependency manager's install script after `tauri init` succeeds. diff --git a/cli/tauri.js/bin/tauri-init.js b/cli/tauri.js/bin/tauri-init.js index cad0a7e27..30d340630 100644 --- a/cli/tauri.js/bin/tauri-init.js +++ b/cli/tauri.js/bin/tauri-init.js @@ -11,6 +11,9 @@ const { merge } = require('lodash') const toml = require('@tauri-apps/toml') +const { + installDependencies +} = require('../dist/api/dependency-manager') /** * @type {object} @@ -116,7 +119,7 @@ if (argv.ci) { }) } -function runInit(config = {}) { +async function runInit(config = {}) { const { appName, ...configOptions @@ -153,4 +156,6 @@ function runInit(config = {}) { } writeFileSync(manifestPath, toml.stringify(cargoManifest)) } + + await installDependencies() }