Skip to content

V2: Update documentation for plugin options import_extension and ts_nocheck #413

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

Conversation

timostamm
Copy link
Member

With version 2 of @bufbuild/protoplugin, standard plugin options have more convenient default behavior:

  • import_extension is now none by default, which means we don't add a .js extension to import
    paths. If you use the plugin option import_extension=none, you can delete it. If you require imports to have the .js
    extension, use import_extension=js.
  • ts_nocheck is now off by default. If you require a // @ts-nocheck annotation at the top of
    generated code, use ts_nocheck=true.

@timostamm timostamm requested a review from smaye81 September 24, 2024 12:22
@timostamm timostamm merged commit 129fea5 into v2 Sep 24, 2024
7 checks passed
@timostamm timostamm deleted the tstamm/Update-documentation-for-plugin-options-import_extension-and-ts_nocheck branch September 24, 2024 14:02
@timostamm timostamm mentioned this pull request Oct 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants