Skip to content

Unable to write nested structure to YAML file #2

@SAGARSURI

Description

@SAGARSURI

Hi, First thank you for the package. I have a specific issue while writing nested structure to yaml file. Here is the following template:

name: projectName

packages:
  #- packages/*

I am using the following code:

final melos = SettingsYaml.load(pathToSettings: 'melos.yaml');
  melos['name'] = name;
  melos['packages'] = <String, String>{
    'packages': '/*'
  };
  melos.save();

But I am getting the following output:

# SettingsYaml settings file
name: "mppm"
packages: {packages: /*}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions