Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Resolve incosistency in directory option in JS vs CLI usage #355

@webketje

Description

@webketje

There is an inconsistency in the metalsmith CLI vs JS approach: in the CLI Metalsmith.directory is defaulted to process.cwd(). In the JS approach there is no default and __dirname needs to be passed explicitly. Solution:A) force specifying a directory option in metalsmith.json (breaking) or B) Make __dirname also the default for the JS solution (backwards-compatible)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions