Skip to content

Make the prepublish and postpublish logic available from the API #9

Description

@ggrossetie

I'm using downdoc API in a release script and I want to use the prepublish/postpublish logic:

with an input file

const { prepublish, postpublish } = require('downdoc/npm')

const outputReadme = await prepublish('/path/to/README.adoc')
await postpublish(outputReadme)

with empty argument (i.e., default values)

const { prepublish, postpublish } = require('downdoc/npm')

await prepublish() // use process.cwd() + README.adoc
await postpublish() // use process.cwd() + README.md

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