@powerlines/plugin-content-collections 0.1.56 → 0.1.58

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,4 +1,4 @@
1
- import { n as ContentCollectionsPluginContext } from "./plugin-Dd9r_4nu.cjs";
1
+ import { n as ContentCollectionsPluginContext } from "./plugin-B0OXXzdJ.mjs";
2
2
  import { Writer } from "@content-collections/core";
3
3
 
4
4
  //#region src/helpers/create-writer.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ContentCollectionsPluginContext } from "./plugin-CN8hGE5C.mjs";
1
+ import { n as ContentCollectionsPluginContext } from "./plugin-ChVhLKb1.cjs";
2
2
  import { Writer } from "@content-collections/core";
3
3
 
4
4
  //#region src/helpers/create-writer.d.ts
@@ -1,3 +1,3 @@
1
- import "../plugin-Dd9r_4nu.cjs";
2
- import { t as createWriter } from "../create-writer-NwaCbP2S.cjs";
1
+ import "../plugin-ChVhLKb1.cjs";
2
+ import { t as createWriter } from "../create-writer-kXziZJhg.cjs";
3
3
  export { createWriter };
@@ -1,3 +1,3 @@
1
- import "../plugin-CN8hGE5C.mjs";
2
- import { t as createWriter } from "../create-writer-CKLP_sfw.mjs";
1
+ import "../plugin-B0OXXzdJ.mjs";
2
+ import { t as createWriter } from "../create-writer-DzFEUkBv.mjs";
3
3
  export { createWriter };
@@ -1,5 +1,5 @@
1
1
  import { t as createEmitter } from "../create-emitter-Bk1iruR0.cjs";
2
- import "../plugin-Dd9r_4nu.cjs";
3
- import { t as createWriter } from "../create-writer-NwaCbP2S.cjs";
2
+ import "../plugin-ChVhLKb1.cjs";
3
+ import { t as createWriter } from "../create-writer-kXziZJhg.cjs";
4
4
  import "../index-BR1oNnaF.cjs";
5
5
  export { createEmitter, createWriter };
@@ -1,5 +1,5 @@
1
1
  import { t as createEmitter } from "../create-emitter-Ccqc-tkP.mjs";
2
- import "../plugin-CN8hGE5C.mjs";
3
- import { t as createWriter } from "../create-writer-CKLP_sfw.mjs";
2
+ import "../plugin-B0OXXzdJ.mjs";
3
+ import { t as createWriter } from "../create-writer-DzFEUkBv.mjs";
4
4
  import "../index-DNLi60D-.mjs";
5
5
  export { createEmitter, createWriter };
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as createEmitter } from "./create-emitter-Bk1iruR0.cjs";
2
- import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, d as Plugin, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "./plugin-Dd9r_4nu.cjs";
3
- import { t as createWriter } from "./create-writer-NwaCbP2S.cjs";
2
+ import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, d as Plugin, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "./plugin-ChVhLKb1.cjs";
3
+ import { t as createWriter } from "./create-writer-kXziZJhg.cjs";
4
4
  import "./index-BR1oNnaF.cjs";
5
5
  import "./index-BL32-cvv.cjs";
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as createEmitter } from "./create-emitter-Ccqc-tkP.mjs";
2
- import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, d as Plugin, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "./plugin-CN8hGE5C.mjs";
3
- import { t as createWriter } from "./create-writer-CKLP_sfw.mjs";
2
+ import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, d as Plugin, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "./plugin-B0OXXzdJ.mjs";
3
+ import { t as createWriter } from "./create-writer-DzFEUkBv.mjs";
4
4
  import "./index-DNLi60D-.mjs";
5
5
  import "./index-Bk0eNZmQ.mjs";
6
6
 
@@ -22,10 +22,7 @@ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
22
22
  import ts from "typescript";
23
23
 
24
24
  //#region ../powerlines/src/types/fs.d.ts
25
- declare enum StoragePreset {
26
- VIRTUAL = "virtual",
27
- FS = "fs",
28
- }
25
+ type StoragePreset = "fs" | "virtual";
29
26
  /**
30
27
  * Interface defining the methods and properties for a storage adapter.
31
28
  */
@@ -910,7 +907,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
910
907
  * @param environment - The environment to check.
911
908
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
912
909
  */
913
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | PluginConfig<any>>;
910
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
914
911
  }
915
912
  //#endregion
916
913
  //#region ../powerlines/src/types/tsconfig.d.ts
@@ -22,10 +22,7 @@ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
22
22
  import ts from "typescript";
23
23
 
24
24
  //#region ../powerlines/src/types/fs.d.ts
25
- declare enum StoragePreset {
26
- VIRTUAL = "virtual",
27
- FS = "fs",
28
- }
25
+ type StoragePreset = "fs" | "virtual";
29
26
  /**
30
27
  * Interface defining the methods and properties for a storage adapter.
31
28
  */
@@ -910,7 +907,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
910
907
  * @param environment - The environment to check.
911
908
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
912
909
  */
913
- applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | PluginConfig<any>>;
910
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
914
911
  }
915
912
  //#endregion
916
913
  //#region ../powerlines/src/types/tsconfig.d.ts
@@ -1,3 +1,3 @@
1
- import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-Dd9r_4nu.cjs";
1
+ import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-ChVhLKb1.cjs";
2
2
  import "../index-BL32-cvv.cjs";
3
3
  export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
@@ -1,3 +1,3 @@
1
- import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-CN8hGE5C.mjs";
1
+ import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-B0OXXzdJ.mjs";
2
2
  import "../index-Bk0eNZmQ.mjs";
3
3
  export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-Dd9r_4nu.cjs";
1
+ import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-ChVhLKb1.cjs";
2
2
  export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-CN8hGE5C.mjs";
1
+ import { a as ContentCollectionsPluginUserConfig, c as __ΩContentCollectionsPluginOptions, i as ContentCollectionsPluginResolvedConfig, l as __ΩContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, o as __ΩContentCollectionsContext, r as ContentCollectionsPluginOptions, s as __ΩContentCollectionsPluginContext, t as ContentCollectionsContext, u as __ΩContentCollectionsPluginUserConfig } from "../plugin-B0OXXzdJ.mjs";
2
2
  export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-content-collections",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code using Content Collections.",
6
6
  "repository": {
@@ -130,15 +130,15 @@
130
130
  "@stryke/types": "^0.10.13",
131
131
  "defu": "^6.1.4",
132
132
  "pluralize": "^8.0.0",
133
- "powerlines": "^0.30.7"
133
+ "powerlines": "^0.30.9"
134
134
  },
135
135
  "devDependencies": {
136
- "@powerlines/nx": "^0.10.56",
137
- "@powerlines/plugin-plugin": "^0.12.8",
136
+ "@powerlines/nx": "^0.10.58",
137
+ "@powerlines/plugin-plugin": "^0.12.10",
138
138
  "@standard-schema/spec": "^1.0.0",
139
139
  "@types/node": "^24.10.1",
140
140
  "@types/pluralize": "^0.0.33"
141
141
  },
142
142
  "publishConfig": { "access": "public" },
143
- "gitHead": "c99d14f5c417d27c6854661afcf485f629f4e143"
143
+ "gitHead": "00fa339177561d404892937d2c24fe2a5b3df4e7"
144
144
  }