mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-22 05:39:53 +03:00
feat(tauri.js) run deps install
after tauri init
(#842)
* feat(tauri.js) run `deps install` after `tauri init` * fix(tauri.js) await on installDependencies (tauri init)
This commit is contained in:
parent
f0ce94fc8e
commit
0591f1f945
5
.changes/tauri.js-install-on-init.md
Normal file
5
.changes/tauri.js-install-on-init.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri.js": patch
|
||||
---
|
||||
|
||||
Run the dependency manager's install script after `tauri init` succeeds.
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user