Skip to content

export GitChangelogOptions from "@nolebase/vitepress-plugin-git-changelog/vite/types"; #462

@onmax

Description

@onmax

First of all, amazing job! It is really inspiring to see all the plugins that you are working on and how well they perform!

I am building my own Vitepress Theme, and with that I also have my own vite.ts which I export so the user can register the Vite Plugin.

In this vite plugin, I would like to install the GitChangelogOptions so users don't have to do that themself. Therefore I want to give them an option to pass the options to the GitChangelogOptions.

Something like this:

export interface MyVitepressThemeVitePluginOptions {
  /**
   * Whether to enable the GitChangelog plugin.
   * An options object can be passed to configure the plugin.
   */
  gitChangelog?: false | GitChangelogOptions

}

The problem is that GitChangelogOptions is in vite/types.ts and it is not being exported. Could we change that somehow? Not sure if you want to add another entry point in unbuild.config.ts for vite/types or add an export in types/index.ts.

I can create the PR if we decide to move forwards :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/easyEasy to deal with / implement againstenhancementNew feature or requestgood issueGood issue with descriptions or reproductions. 有着精良描述或者复现说明的 Issuepkg/git-changelogRelated to @nolebase/vitepress-plugin-git-changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions