@powerlines/plugin-content-collections 0.1.38 → 0.1.40

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-GRKtdNQI.cjs';
2
+ import { C as ContentCollectionsPluginContext } from '../index-DRnuhAGf.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-GRKtdNQI.js';
2
+ import { C as ContentCollectionsPluginContext } from '../index-DRnuhAGf.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-GRKtdNQI.cjs';
4
+ import '../index-DRnuhAGf.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-GRKtdNQI.js';
4
+ import '../index-DRnuhAGf.js';
5
5
  import '@storm-software/build-tools/types';
6
6
  import '@storm-software/config-tools/types';
7
7
  import '@storm-software/config/types';
@@ -1435,7 +1435,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
1435
1435
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1436
1436
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1437
1437
  };
1438
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1438
+ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1439
1439
  /**
1440
1440
  * The name of the plugin, for use in deduplication, error messages and logs.
1441
1441
  */
@@ -1466,7 +1466,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1466
1466
  * @param other - The other plugin to compare against.
1467
1467
  * @returns `true` if the two plugins are the same, `false` otherwise.
1468
1468
  */
1469
- dedupe?: false | ((other: Plugin<any>) => boolean);
1469
+ dedupe?: false | ((other: Plugin<TContext>) => boolean);
1470
1470
  /**
1471
1471
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1472
1472
  */
@@ -1477,7 +1477,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1477
1477
  * @param environment - The environment to check.
1478
1478
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1479
1479
  */
1480
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<any>>;
1480
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
1481
1481
  }
1482
1482
 
1483
1483
  type ContentCollectionsContext = Pick<Awaited<ReturnType<typeof createInternalBuilder>>, "build" | "on"> & {
@@ -1435,7 +1435,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
1435
1435
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
1436
1436
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
1437
1437
  };
1438
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1438
+ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
1439
1439
  /**
1440
1440
  * The name of the plugin, for use in deduplication, error messages and logs.
1441
1441
  */
@@ -1466,7 +1466,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1466
1466
  * @param other - The other plugin to compare against.
1467
1467
  * @returns `true` if the two plugins are the same, `false` otherwise.
1468
1468
  */
1469
- dedupe?: false | ((other: Plugin<any>) => boolean);
1469
+ dedupe?: false | ((other: Plugin<TContext>) => boolean);
1470
1470
  /**
1471
1471
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
1472
1472
  */
@@ -1477,7 +1477,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
1477
1477
  * @param environment - The environment to check.
1478
1478
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
1479
1479
  */
1480
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<any>>;
1480
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
1481
1481
  }
1482
1482
 
1483
1483
  type ContentCollectionsContext = Pick<Awaited<ReturnType<typeof createInternalBuilder>>, "build" | "on"> & {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-GRKtdNQI.cjs';
2
- export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from './index-GRKtdNQI.cjs';
1
+ import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-DRnuhAGf.cjs';
2
+ export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from './index-DRnuhAGf.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-GRKtdNQI.js';
2
- export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from './index-GRKtdNQI.js';
1
+ import { C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, P as Plugin } from './index-DRnuhAGf.js';
2
+ export { b as ContentCollectionsContext, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from './index-DRnuhAGf.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, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-GRKtdNQI.cjs';
1
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-DRnuhAGf.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, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-GRKtdNQI.js';
1
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-DRnuhAGf.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, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-GRKtdNQI.cjs';
2
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-DRnuhAGf.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, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-GRKtdNQI.js';
2
+ export { b as ContentCollectionsContext, C as ContentCollectionsPluginContext, a as ContentCollectionsPluginOptions, d as ContentCollectionsPluginResolvedConfig, c as ContentCollectionsPluginUserConfig, _ as __ΩContentCollectionsContext, h as __ΩContentCollectionsPluginContext, e as __ΩContentCollectionsPluginOptions, g as __ΩContentCollectionsPluginResolvedConfig, f as __ΩContentCollectionsPluginUserConfig } from '../index-DRnuhAGf.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.38",
3
+ "version": "0.1.40",
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.8",
113
113
  "defu": "^6.1.4",
114
114
  "pluralize": "^8.0.0",
115
- "powerlines": "^0.25.0"
115
+ "powerlines": "^0.25.2"
116
116
  },
117
117
  "devDependencies": {
118
- "@powerlines/nx": "^0.10.38",
119
- "@powerlines/plugin-plugin": "^0.11.46",
118
+ "@powerlines/nx": "^0.10.40",
119
+ "@powerlines/plugin-plugin": "^0.11.48",
120
120
  "@standard-schema/spec": "^1.0.0",
121
121
  "@types/node": "^24.10.1",
122
122
  "@types/pluralize": "^0.0.33"
123
123
  },
124
124
  "publishConfig": { "access": "public" },
125
- "gitHead": "acb1d0727c31f10519b7a59d73d245e6949414d3"
125
+ "gitHead": "e5c7481779e32bd9810613c299e775bc033c9eac"
126
126
  }