@pubinfo/vite 2.0.7 → 2.0.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -37,6 +37,16 @@ interface ResolverPluginOptions {
37
37
  }
38
38
  //#endregion
39
39
  //#region src/interface.d.ts
40
+ interface CommitlintOptions {
41
+ /**
42
+ * Enable or disable commitlint for application repositories. Defaults to enabled.
43
+ */
44
+ enabled?: boolean;
45
+ /**
46
+ * Convenience flag mirroring `enabled: false`.
47
+ */
48
+ disable?: boolean;
49
+ }
40
50
  interface PubinfoConfig {
41
51
  /** `vite` */
42
52
  vite?: UserConfig | UserConfigFnObject;
@@ -44,6 +54,8 @@ interface PubinfoConfig {
44
54
  openapi?: Options;
45
55
  /** `resolver` */
46
56
  resolver?: ResolverPluginOptions;
57
+ /** `commitlint` */
58
+ commitlint?: boolean | CommitlintOptions;
47
59
  }
48
60
  interface ModuleConfig extends PubinfoConfig {
49
61
  /**
@@ -60,6 +72,7 @@ declare function definePubinfoConfig(config: PubinfoConfig): {
60
72
  vite: UserConfigFnObject;
61
73
  openapi?: _pubinfo_unplugin_openapi0.Options;
62
74
  resolver?: ResolverPluginOptions;
75
+ commitlint?: boolean | CommitlintOptions;
63
76
  };
64
77
  /**
65
78
  * 构建模块配置
@@ -69,6 +82,7 @@ declare function defineModuleConfig(config: ModuleConfig): {
69
82
  moduleId: InjectAutoOptions["id"];
70
83
  openapi?: _pubinfo_unplugin_openapi0.Options;
71
84
  resolver?: ResolverPluginOptions;
85
+ commitlint?: boolean | CommitlintOptions;
72
86
  };
73
87
  //#endregion
74
- export { ModuleConfig, PubinfoConfig, ResolverPluginOptions, defineModuleConfig, definePubinfoConfig };
88
+ export { CommitlintOptions, ModuleConfig, PubinfoConfig, ResolverPluginOptions, defineModuleConfig, definePubinfoConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo/vite",
3
3
  "type": "module",
4
- "version": "2.0.7",
4
+ "version": "2.0.8-beta.2",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",