ionic-team / capacitor-docgen

Docs Readme Markdown and JSON Generator for Capacitor Plugins.
https://capacitorjs.com/
Other
12 stars 8 forks source link

fix(): import method from colorette #34

Closed rdlabo closed 2 years ago

rdlabo commented 2 years ago

fix cli error:

TypeError: Cannot read properties of undefined (reading 'red')
    at Object.run (/Users/sakakibara/dev/capacitor-docgen/dist/cli.js:59:47)

import c from 'colorette'; is undefined.

import { green, red } from 'colorette';

M1 Mac

System:
   NodeJS : v16.13.1
   npm    : 8.1.2
   OS     : macOS Monterey
tobium commented 2 years ago

can we merge this fix please?

rdlabo commented 2 years ago

@tobium The schedule for review and merge is up to the ionic-team. But you can use from GitHub repository:

@capacitor/docgen@git+https://github.com/rdlabo/capacitor-docgen.git#release

I built for use with stripe-plugin: https://github.com/capacitor-community/stripe/blob/master/package.json#L51 This branch has this pull-request and https://github.com/ionic-team/capacitor-docgen/pull/35