@powerlines/plugin-content-collections 0.1.5 → 0.1.7

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.
@@ -1,5 +1,5 @@
1
1
  import { Writer } from '@content-collections/core';
2
- import { C as ContentCollectionsPluginContext } from '../index-Gw48j5XK.cjs';
2
+ import { C as ContentCollectionsPluginContext } from '../index-BaZxVE75.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { Writer } from '@content-collections/core';
2
- import { C as ContentCollectionsPluginContext } from '../index-Gw48j5XK.js';
2
+ import { C as ContentCollectionsPluginContext } from '../index-BaZxVE75.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,7 +1,7 @@
1
1
  export { createEmitter } from './create-emitter.cjs';
2
2
  export { createWriter } from './create-writer.cjs';
3
3
  import '@content-collections/core';
4
- import '../index-Gw48j5XK.cjs';
4
+ import '../index-BaZxVE75.cjs';
5
5
  import '@storm-software/build-tools/types';
6
6
  import '@storm-software/config-tools/types';
7
7
  import '@storm-software/config/types';
@@ -1,7 +1,7 @@
1
1
  export { createEmitter } from './create-emitter.js';
2
2
  export { createWriter } from './create-writer.js';
3
3
  import '@content-collections/core';
4
- import '../index-Gw48j5XK.js';
4
+ import '../index-BaZxVE75.js';
5
5
  import '@storm-software/build-tools/types';
6
6
  import '@storm-software/config-tools/types';
7
7
  import '@storm-software/config/types';
@@ -1107,7 +1107,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1107
1107
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1108
1108
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1109
1109
 
1110
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1110
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1111
1111
  /**
1112
1112
  * The order in which the plugin should be applied.
1113
1113
  */
@@ -1115,13 +1115,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1115
1115
  /**
1116
1116
  * A filter to determine when the hook should be called.
1117
1117
  */
1118
- filter?: TFilter;
1118
+ filter?: Pick<HookFilter, TFilter>;
1119
1119
  /**
1120
1120
  * The hook function to be called.
1121
1121
  */
1122
1122
  handler: THookFunction;
1123
1123
  }
1124
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1124
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1125
1125
  /**
1126
1126
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1127
1127
  */
@@ -1107,7 +1107,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1107
1107
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1108
1108
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1109
1109
 
1110
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1110
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1111
1111
  /**
1112
1112
  * The order in which the plugin should be applied.
1113
1113
  */
@@ -1115,13 +1115,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1115
1115
  /**
1116
1116
  * A filter to determine when the hook should be called.
1117
1117
  */
1118
- filter?: TFilter;
1118
+ filter?: Pick<HookFilter, TFilter>;
1119
1119
  /**
1120
1120
  * The hook function to be called.
1121
1121
  */
1122
1122
  handler: THookFunction;
1123
1123
  }
1124
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1124
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1125
1125
  /**
1126
1126
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1127
1127
  */
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-Gw48j5XK.cjs';
2
- export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from './index-Gw48j5XK.cjs';
1
+ import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-BaZxVE75.cjs';
2
+ export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from './index-BaZxVE75.cjs';
3
3
  export { createEmitter } from './helpers/create-emitter.cjs';
4
4
  export { createWriter } from './helpers/create-writer.cjs';
5
5
  import '@content-collections/core';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-Gw48j5XK.js';
2
- export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from './index-Gw48j5XK.js';
1
+ import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-BaZxVE75.js';
2
+ export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from './index-BaZxVE75.js';
3
3
  export { createEmitter } from './helpers/create-emitter.js';
4
4
  export { createWriter } from './helpers/create-writer.js';
5
5
  import '@content-collections/core';
@@ -1,4 +1,4 @@
1
- export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-Gw48j5XK.cjs';
1
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-BaZxVE75.cjs';
2
2
  import '@content-collections/core';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,4 +1,4 @@
1
- export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-Gw48j5XK.js';
1
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-BaZxVE75.js';
2
2
  import '@content-collections/core';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  import '@content-collections/core';
2
- export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-Gw48j5XK.cjs';
2
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-BaZxVE75.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import '@content-collections/core';
2
- export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-Gw48j5XK.js';
2
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig } from '../index-BaZxVE75.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-content-collections",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code using Content Collections.",
6
6
  "repository": {
@@ -112,15 +112,15 @@
112
112
  "@stryke/types": "^0.10.1",
113
113
  "defu": "^6.1.4",
114
114
  "pluralize": "^8.0.0",
115
- "powerlines": "^0.19.1"
115
+ "powerlines": "^0.19.3"
116
116
  },
117
117
  "devDependencies": {
118
- "@powerlines/nx": "^0.10.5",
119
- "@powerlines/plugin-plugin": "^0.11.13",
118
+ "@powerlines/nx": "^0.10.7",
119
+ "@powerlines/plugin-plugin": "^0.11.15",
120
120
  "@standard-schema/spec": "^1.0.0",
121
121
  "@types/node": "^22.19.0",
122
122
  "@types/pluralize": "^0.0.33"
123
123
  },
124
124
  "publishConfig": { "access": "public" },
125
- "gitHead": "d25499feacd0143784f3cd426488909134bffab2"
125
+ "gitHead": "c7e78fdbae62e7c92a460d1303c7a8ab37df196b"
126
126
  }