fix(init): use current path if unspecified
(cherry picked from commit f9a4e8ecdc)
This commit is contained in:
parent
85a42f48be
commit
9d0313af0f
2 changed files with 5 additions and 4 deletions
|
|
@ -135,7 +135,7 @@ impl JsonConfigOpts {
|
|||
name: self.name.clone(),
|
||||
camelcase: Some(self.camelcase),
|
||||
scope: self.scope,
|
||||
path: PathBuf::from("."),
|
||||
path: None,
|
||||
external_files: PathsJSON::Empty,
|
||||
file_types: Some(self.file_types),
|
||||
highlights: PathsJSON::Empty,
|
||||
|
|
@ -231,7 +231,7 @@ pub fn migrate_package_json(repo_path: &Path) -> Result<bool> {
|
|||
name: name.clone(),
|
||||
camelcase: Some(name.to_upper_camel_case()),
|
||||
scope: l.scope.unwrap_or_else(|| format!("source.{name}")),
|
||||
path: l.path,
|
||||
path: Some(l.path),
|
||||
external_files: l.external_files,
|
||||
file_types: l.file_types,
|
||||
highlights: l.highlights,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue