mirror of
https://github.com/SkyfallWasTaken/dinopkg.git
synced 2025-05-23 04:43:05 +00:00
fix: repository
and author
objects in package.json
now parse
This commit is contained in:
parent
2181a82cb8
commit
ee0e593b37
4 changed files with 12 additions and 5 deletions
|
@ -4,7 +4,7 @@ use camino::Utf8PathBuf;
|
|||
use color_eyre::eyre::eyre;
|
||||
use color_eyre::Result;
|
||||
use dialoguer::{theme::ColorfulTheme, Confirm, Input};
|
||||
use dinopkg_package_json::{AuthorVariant, PackageJson};
|
||||
use dinopkg_package_json::{AuthorVariant, PackageJson, RepositoryVariant};
|
||||
use gix_config::File as GitConfigFile;
|
||||
use maplit::hashmap;
|
||||
use owo_colors::OwoColorize;
|
||||
|
@ -101,7 +101,7 @@ pub async fn init() -> Result<()> {
|
|||
name: package_name,
|
||||
version,
|
||||
author: Some(AuthorVariant::String(author)),
|
||||
repository: Some(git_repository),
|
||||
repository: Some(RepositoryVariant::String(git_repository)),
|
||||
license: Some(license),
|
||||
description: Some(description),
|
||||
private,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue