Skip to content

Commit c6153e2

Browse files
authored
fix(fragments/angluar): add space around -- (#526)
* fix(fragments/angluar): add space around `--` closes #522 * Update angluar.md
1 parent a50e9c6 commit c6153e2

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.changes/angluar.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Fix incorrect `beforeDevCommand` in `angluar` template when using `npm` as the package manager.

packages/cli/fragments/fragment-angular/_cta_manifest_

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# SPDX-License-Identifier: MIT
44

5-
beforeDevCommand = {% pkg_manager_run_command %} start{% double_dash %} --port 1420
5+
beforeDevCommand = {% pkg_manager_run_command %} start {% double_dash_with_space %}--port 1420
66
beforeBuildCommand = {% pkg_manager_run_command %} build
77
devPath = http://localhost:1420
88
distDir = ../dist/{% package_name %}
99

1010
[mobile]
11-
beforeDevCommand = {% pkg_manager_run_command %} start{% double_dash %} --port 1420 --host $HOST --public-host $HOST
11+
beforeDevCommand = {% pkg_manager_run_command %} start {% double_dash_with_space %}--port 1420 --host $HOST --public-host $HOST
1212

1313
[files]
1414
tauri.svg = src/assets/tauri.svg

packages/cli/src/template.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ impl<'a> Template {
237237
let manifest_template_data: HashMap<&str, &str> = [
238238
("pkg_manager_run_command", pkg_manager.run_cmd()),
239239
(
240-
"double_dash",
240+
"double_dash_with_space",
241241
if pkg_manager == PackageManager::Npm {
242-
"--"
242+
"-- "
243243
} else {
244244
""
245245
},

0 commit comments

Comments
 (0)