@powerlines/plugin-automd 0.1.5 → 0.1.6

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.
@@ -1108,7 +1108,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1108
1108
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1109
1109
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1110
1110
 
1111
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1111
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1112
1112
  /**
1113
1113
  * The order in which the plugin should be applied.
1114
1114
  */
@@ -1116,13 +1116,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1116
1116
  /**
1117
1117
  * A filter to determine when the hook should be called.
1118
1118
  */
1119
- filter?: TFilter;
1119
+ filter?: Pick<HookFilter, TFilter>;
1120
1120
  /**
1121
1121
  * The hook function to be called.
1122
1122
  */
1123
1123
  handler: THookFunction;
1124
1124
  }
1125
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1125
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1126
1126
  /**
1127
1127
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1128
1128
  */
@@ -1108,7 +1108,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1108
1108
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1109
1109
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1110
1110
 
1111
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1111
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1112
1112
  /**
1113
1113
  * The order in which the plugin should be applied.
1114
1114
  */
@@ -1116,13 +1116,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1116
1116
  /**
1117
1117
  * A filter to determine when the hook should be called.
1118
1118
  */
1119
- filter?: TFilter;
1119
+ filter?: Pick<HookFilter, TFilter>;
1120
1120
  /**
1121
1121
  * The hook function to be called.
1122
1122
  */
1123
1123
  handler: THookFunction;
1124
1124
  }
1125
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1125
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1126
1126
  /**
1127
1127
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1128
1128
  */
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AutoMDPluginContext, a as AutoMDPluginOptions, P as Plugin } from './index--IRO7VRO.cjs';
2
- export { c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from './index--IRO7VRO.cjs';
1
+ import { A as AutoMDPluginContext, a as AutoMDPluginOptions, P as Plugin } from './index-Du8LdyRW.cjs';
2
+ export { c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from './index-Du8LdyRW.cjs';
3
3
  export { TOCOptions } from './types/toc.cjs';
4
4
  import 'automd';
5
5
  import '@storm-software/build-tools/types';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AutoMDPluginContext, a as AutoMDPluginOptions, P as Plugin } from './index-D21suH0c.js';
2
- export { c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from './index-D21suH0c.js';
1
+ import { A as AutoMDPluginContext, a as AutoMDPluginOptions, P as Plugin } from './index-BKS-6BIR.js';
2
+ export { c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from './index-BKS-6BIR.js';
3
3
  export { TOCOptions } from './types/toc.js';
4
4
  import 'automd';
5
5
  import '@storm-software/build-tools/types';
@@ -1,4 +1,4 @@
1
- export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index--IRO7VRO.cjs';
1
+ export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index-Du8LdyRW.cjs';
2
2
  export { TOCOptions } from './toc.cjs';
3
3
  import 'automd';
4
4
  import '@storm-software/build-tools/types';
@@ -1,4 +1,4 @@
1
- export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index-D21suH0c.js';
1
+ export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index-BKS-6BIR.js';
2
2
  export { TOCOptions } from './toc.js';
3
3
  import 'automd';
4
4
  import '@storm-software/build-tools/types';
@@ -1,5 +1,5 @@
1
1
  import 'automd';
2
- export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index--IRO7VRO.cjs';
2
+ export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index-Du8LdyRW.cjs';
3
3
  import './toc.cjs';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  import 'automd';
2
- export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index-D21suH0c.js';
2
+ export { A as AutoMDPluginContext, a as AutoMDPluginOptions, c as AutoMDPluginResolvedConfig, b as AutoMDPluginUserConfig } from '../index-BKS-6BIR.js';
3
3
  import './toc.js';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-automd",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to maintain a project's markdown files using AutoMD generators.",
6
6
  "repository": {
@@ -107,14 +107,14 @@
107
107
  "c12": "^3.3.1",
108
108
  "defu": "^6.1.4",
109
109
  "markdown-toc": "^1.2.0",
110
- "powerlines": "^0.19.1"
110
+ "powerlines": "^0.19.2"
111
111
  },
112
112
  "devDependencies": {
113
- "@powerlines/nx": "^0.10.5",
114
- "@powerlines/plugin-plugin": "^0.11.13",
113
+ "@powerlines/nx": "^0.10.6",
114
+ "@powerlines/plugin-plugin": "^0.11.14",
115
115
  "@types/node": "^22.19.0",
116
116
  "automd": "^0.4.2"
117
117
  },
118
118
  "publishConfig": { "access": "public" },
119
- "gitHead": "d25499feacd0143784f3cd426488909134bffab2"
119
+ "gitHead": "487dbe9d301ea6c2bba10d3dec1706b64a079452"
120
120
  }