Skip to content

hm-doc only runs on ./src #1

Open
@joelnet

Description

@joelnet

I am attempting to document this project https://github.com/joelnet/MojiScript. The code is not in an src directory.

I have created isArray.js inside of the function directory with the contents:

/* Determine if an array is empty.
    isEmpty([]) === true
*/
// isEmpty :: Array a -> Bool
const isEmpty = array =>
    Array.isArray(array)
    && array.length === 0

I then run the command npx hm-doc --files ./function/**/*.js and nothing is returned.

If I copy that file into src/isArray.js and run the command npx hm-doc --files ./function/**/*.js it works just fine.

It seems to only run on files in the src directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions