Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oclif readme command doesn't work #47

Open
micaswyers opened this issue Sep 28, 2022 · 0 comments
Open

oclif readme command doesn't work #47

micaswyers opened this issue Sep 28, 2022 · 0 comments

Comments

@micaswyers
Copy link

When trying to auto-generate the README using oclif-dev, I ran into an issue:
..

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:1070:16)
    at Module._compile (internal/modules/cjs/loader.js:1120:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/Users/mswyers/work/plugin-token/node_modules/@oclif/core/lib/index.js:6:19)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
module: @oclif/[email protected]
task: toCached
plugin: @twilio-labs/plugin-token
root: /Users/<me>/work/plugin-token
See more details with DEBUG=*
(node:83873) SyntaxError Plugin: @twilio-labs/plugin-token: Unexpected token '.'
module: @oclif/[email protected]
task: toCached
plugin: @twilio-labs/plugin-token
root: /Users/<me>/work/plugin-token
See more details with DEBUG=*
/Users/<me>/work/plugin-token/node_modules/@twilio/cli-core/node_modules/@oclif/core/lib/command.js:51
            delete this.globalFlags?.json;
                                    ^
                                    ^

Because it is no longer supported, I have removed the oclif-dev dependency from package.json. In SCRIPTS, you should be able to generate the readme with:

oclif readme

(and oclif manifest in the prepack step)

However, it looks like there's a bug in the @oclif/core module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant