@powerlines/plugin-content-collections 0.1.432 → 0.1.434
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.
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/helpers/create-emitter.cjs +1 -0
- package/dist/helpers/create-emitter.d.cts +30 -0
- package/dist/helpers/create-emitter.d.cts.map +1 -0
- package/dist/helpers/create-emitter.d.mts +30 -0
- package/dist/helpers/create-emitter.d.mts.map +1 -0
- package/dist/helpers/create-emitter.mjs +2 -0
- package/dist/helpers/create-emitter.mjs.map +1 -0
- package/dist/helpers/create-writer.cjs +6 -0
- package/dist/helpers/create-writer.d.cts +14 -0
- package/dist/helpers/create-writer.d.cts.map +1 -0
- package/dist/helpers/create-writer.d.mts +14 -0
- package/dist/helpers/create-writer.d.mts.map +1 -0
- package/dist/helpers/create-writer.mjs +7 -0
- package/dist/helpers/create-writer.mjs.map +1 -0
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.d.cts +3 -0
- package/dist/helpers/index.d.mts +3 -0
- package/dist/helpers/index.mjs +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +48 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +48 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`node:events`);function t(){let t=new e.EventEmitter;function n(e,n){t.on(e,n)}function r(e,n){t.emit(e,n),typeof n==`object`&&n&&`error`in n&&t.emit(`_error`,{...n,_event:e}),t.emit(`_all`,{...n,_event:e})}return{on:n,emit:r}}exports.createEmitter=t;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/helpers/create-emitter.d.ts
|
|
2
|
+
type EventMap = Record<string, object>;
|
|
3
|
+
interface EventWithError {
|
|
4
|
+
error: Error;
|
|
5
|
+
}
|
|
6
|
+
interface SystemEvent {
|
|
7
|
+
_event: string;
|
|
8
|
+
}
|
|
9
|
+
type ErrorEvent = EventWithError & SystemEvent;
|
|
10
|
+
interface SystemEvents extends EventMap {
|
|
11
|
+
_error: ErrorEvent;
|
|
12
|
+
_all: SystemEvent;
|
|
13
|
+
}
|
|
14
|
+
type Keys<TEvents extends EventMap> = keyof TEvents & string;
|
|
15
|
+
type Listener<TEvent> = (event: TEvent) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Create an event emitter with typed events.
|
|
18
|
+
*
|
|
19
|
+
* @returns An event emitter instance with typed event handling.
|
|
20
|
+
*/
|
|
21
|
+
declare function createEmitter<TEvents extends EventMap>(): {
|
|
22
|
+
on: {
|
|
23
|
+
<TKey extends Keys<TEvents>>(key: TKey, listener: Listener<TEvents[TKey]>): void;
|
|
24
|
+
<TKey extends Keys<SystemEvents>>(key: TKey, listener: Listener<SystemEvents[TKey]>): void;
|
|
25
|
+
};
|
|
26
|
+
emit: <TKey extends Keys<TEvents>>(key: TKey, event: TEvents[TKey]) => void;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { createEmitter };
|
|
30
|
+
//# sourceMappingURL=create-emitter.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-emitter.d.cts","names":[],"sources":["../../src/helpers/create-emitter.ts"],"mappings":";KAoBK,QAAA,GAAW,MAAA;AAAA,UAEN,cAAA;EACR,KAAA,EAAO,KAAA;AAAA;AAAA,UAGC,WAAA;EACR,MAAA;AAAA;AAAA,KAGG,UAAA,GAAa,cAAA,GAAiB,WAAA;AAAA,UAEzB,YAAA,SAAqB,QAAA;EAC7B,MAAA,EAAQ,UAAA;EACR,IAAA,EAAM,WAAA;AAAA;AAAA,KAGH,IAAA,iBAAqB,QAAA,UAAkB,OAAA;AAAA,KACvC,QAAA,YAAoB,KAAA,EAAO,MAAA;;;AAXxB;;;iBAkBQ,aAAA,iBAA8B,QAAA,CAAA,CAAA;;kBAGnB,IAAA,CAAK,OAAA,GAAQ,GAAA,EAC/B,IAAA,EAAI,QAAA,EACC,QAAA,CAAS,OAAA,CAAQ,IAAA;IAAA,cAGJ,IAAA,CAAK,YAAA,GAAa,GAAA,EACpC,IAAA,EAAI,QAAA,EACC,QAAA,CAAS,YAAA,CAAa,IAAA;EAAA;sBAOP,IAAA,CAAK,OAAA,GAAQ,GAAA,EAAO,IAAA,EAAI,KAAA,EAAS,OAAA,CAAQ,IAAA;AAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/helpers/create-emitter.d.ts
|
|
2
|
+
type EventMap = Record<string, object>;
|
|
3
|
+
interface EventWithError {
|
|
4
|
+
error: Error;
|
|
5
|
+
}
|
|
6
|
+
interface SystemEvent {
|
|
7
|
+
_event: string;
|
|
8
|
+
}
|
|
9
|
+
type ErrorEvent = EventWithError & SystemEvent;
|
|
10
|
+
interface SystemEvents extends EventMap {
|
|
11
|
+
_error: ErrorEvent;
|
|
12
|
+
_all: SystemEvent;
|
|
13
|
+
}
|
|
14
|
+
type Keys<TEvents extends EventMap> = keyof TEvents & string;
|
|
15
|
+
type Listener<TEvent> = (event: TEvent) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Create an event emitter with typed events.
|
|
18
|
+
*
|
|
19
|
+
* @returns An event emitter instance with typed event handling.
|
|
20
|
+
*/
|
|
21
|
+
declare function createEmitter<TEvents extends EventMap>(): {
|
|
22
|
+
on: {
|
|
23
|
+
<TKey extends Keys<TEvents>>(key: TKey, listener: Listener<TEvents[TKey]>): void;
|
|
24
|
+
<TKey extends Keys<SystemEvents>>(key: TKey, listener: Listener<SystemEvents[TKey]>): void;
|
|
25
|
+
};
|
|
26
|
+
emit: <TKey extends Keys<TEvents>>(key: TKey, event: TEvents[TKey]) => void;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { createEmitter };
|
|
30
|
+
//# sourceMappingURL=create-emitter.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-emitter.d.mts","names":[],"sources":["../../src/helpers/create-emitter.ts"],"mappings":";KAoBK,QAAA,GAAW,MAAA;AAAA,UAEN,cAAA;EACR,KAAA,EAAO,KAAA;AAAA;AAAA,UAGC,WAAA;EACR,MAAA;AAAA;AAAA,KAGG,UAAA,GAAa,cAAA,GAAiB,WAAA;AAAA,UAEzB,YAAA,SAAqB,QAAA;EAC7B,MAAA,EAAQ,UAAA;EACR,IAAA,EAAM,WAAA;AAAA;AAAA,KAGH,IAAA,iBAAqB,QAAA,UAAkB,OAAA;AAAA,KACvC,QAAA,YAAoB,KAAA,EAAO,MAAA;;;AAXxB;;;iBAkBQ,aAAA,iBAA8B,QAAA,CAAA,CAAA;;kBAGnB,IAAA,CAAK,OAAA,GAAQ,GAAA,EAC/B,IAAA,EAAI,QAAA,EACC,QAAA,CAAS,OAAA,CAAQ,IAAA;IAAA,cAGJ,IAAA,CAAK,YAAA,GAAa,GAAA,EACpC,IAAA,EAAI,QAAA,EACC,QAAA,CAAS,YAAA,CAAa,IAAA;EAAA;sBAOP,IAAA,CAAK,OAAA,GAAQ,GAAA,EAAO,IAAA,EAAI,KAAA,EAAS,OAAA,CAAQ,IAAA;AAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{EventEmitter as e}from"node:events";function t(){let t=new e;function n(e,n){t.on(e,n)}function r(e,n){t.emit(e,n),typeof n==`object`&&n&&`error`in n&&t.emit(`_error`,{...n,_event:e}),t.emit(`_all`,{...n,_event:e})}return{on:n,emit:r}}export{t as createEmitter};
|
|
2
|
+
//# sourceMappingURL=create-emitter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-emitter.mjs","names":[],"sources":["../../src/helpers/create-emitter.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EventEmitter } from \"node:events\";\n\ntype EventMap = Record<string, object>;\n\ninterface EventWithError {\n error: Error;\n}\n\ninterface SystemEvent {\n _event: string;\n}\n\ntype ErrorEvent = EventWithError & SystemEvent;\n\ninterface SystemEvents extends EventMap {\n _error: ErrorEvent;\n _all: SystemEvent;\n}\n\ntype Keys<TEvents extends EventMap> = keyof TEvents & string;\ntype Listener<TEvent> = (event: TEvent) => void;\n\n/**\n * Create an event emitter with typed events.\n *\n * @returns An event emitter instance with typed event handling.\n */\nexport function createEmitter<TEvents extends EventMap>() {\n const emitter = new EventEmitter();\n\n function on<TKey extends Keys<TEvents>>(\n key: TKey,\n listener: Listener<TEvents[TKey]>\n ): void;\n\n function on<TKey extends Keys<SystemEvents>>(\n key: TKey,\n listener: Listener<SystemEvents[TKey]>\n ): void;\n\n function on(key: string, listener: Listener<any>) {\n emitter.on(key, listener);\n }\n\n function emit<TKey extends Keys<TEvents>>(key: TKey, event: TEvents[TKey]) {\n emitter.emit(key, event);\n\n if (typeof event === \"object\" && event !== null && \"error\" in event) {\n emitter.emit(\"_error\", {\n ...event,\n _event: key\n });\n }\n\n emitter.emit(\"_all\", {\n ...event,\n _event: key\n });\n }\n\n return {\n on,\n emit\n };\n}\n"],"mappings":"2CA6CA,SAAgB,GAA0C,CACxD,IAAM,EAAU,IAAI,EAYpB,SAAS,EAAG,EAAa,EAAyB,CAChD,EAAQ,GAAG,EAAK,EAAS,CAG3B,SAAS,EAAiC,EAAW,EAAsB,CACzE,EAAQ,KAAK,EAAK,EAAM,CAEpB,OAAO,GAAU,UAAY,GAAkB,UAAW,GAC5D,EAAQ,KAAK,SAAU,CACrB,GAAG,EACH,OAAQ,EACT,CAAC,CAGJ,EAAQ,KAAK,OAAQ,CACnB,GAAG,EACH,OAAQ,EACT,CAAC,CAGJ,MAAO,CACL,KACA,OACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`);let t=require(`@content-collections/core`),n=require(`@stryke/path/join-paths`),r=require(`@stryke/string-format/kebab-case`),i=require(`pluralize`);i=e.__toESM(i,1);let a=require(`powerlines/utils`);const o=e=>(0,i.default)(e.charAt(0).toUpperCase()+e.slice(1)),s=e=>`all${o(e)}`,c=e=>({createJavaScriptFile:async t=>e.emitBuiltin(`${(0,a.getFileHeader)(e)}
|
|
2
|
+
${t.collections.map(({name:e})=>`import ${s(e)} from "./${(0,r.kebabCase)(e)}";`).join(`
|
|
3
|
+
`)}
|
|
4
|
+
|
|
5
|
+
export { ${t.collections.map(({name:e})=>s(e)).join(`, `)} };
|
|
6
|
+
`,`content`),createTypeDefinitionFile:async e=>Promise.resolve(),createDataFiles:async i=>{await Promise.all(i.map(async i=>e.config.contentCollections.outputPath?e.fs.write((0,n.joinPaths)(e.config.contentCollections.outputPath,(0,r.kebabCase)(i.name)),(0,t.serialize)(i.documents.map(e=>e.document))):e.emitBuiltin((0,t.serialize)(i.documents.map(e=>e.document)),(0,n.joinPaths)(`content`,(0,r.kebabCase)(i.name)))))}});exports.createWriter=c;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContentCollectionsPluginContext } from "../types/plugin.cjs";
|
|
2
|
+
import { Writer } from "@content-collections/core";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/create-writer.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Writer instance for emitting files related to content collections.
|
|
7
|
+
*
|
|
8
|
+
* @param context - The Powerlines build plugin
|
|
9
|
+
* @returns A Writer instance for emitting files related to content collections
|
|
10
|
+
*/
|
|
11
|
+
declare const createWriter: (context: ContentCollectionsPluginContext) => Writer;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { createWriter };
|
|
14
|
+
//# sourceMappingURL=create-writer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-writer.d.cts","names":[],"sources":["../../src/helpers/create-writer.ts"],"mappings":";;;;;;AA6CA;;;;cAAa,YAAA,GACX,OAAA,EAAS,+BAAA,KACR,MAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContentCollectionsPluginContext } from "../types/plugin.mjs";
|
|
2
|
+
import { Writer } from "@content-collections/core";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/create-writer.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Writer instance for emitting files related to content collections.
|
|
7
|
+
*
|
|
8
|
+
* @param context - The Powerlines build plugin
|
|
9
|
+
* @returns A Writer instance for emitting files related to content collections
|
|
10
|
+
*/
|
|
11
|
+
declare const createWriter: (context: ContentCollectionsPluginContext) => Writer;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { createWriter };
|
|
14
|
+
//# sourceMappingURL=create-writer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-writer.d.mts","names":[],"sources":["../../src/helpers/create-writer.ts"],"mappings":";;;;;;AA6CA;;;;cAAa,YAAA,GACX,OAAA,EAAS,+BAAA,KACR,MAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{serialize as e}from"@content-collections/core";import{joinPaths as t}from"@stryke/path/join-paths";import{kebabCase as n}from"@stryke/string-format/kebab-case";import r from"pluralize";import{getFileHeader as i}from"powerlines/utils";const a=e=>r(e.charAt(0).toUpperCase()+e.slice(1)),o=e=>`all${a(e)}`,s=r=>({createJavaScriptFile:async e=>r.emitBuiltin(`${i(r)}
|
|
2
|
+
${e.collections.map(({name:e})=>`import ${o(e)} from "./${n(e)}";`).join(`
|
|
3
|
+
`)}
|
|
4
|
+
|
|
5
|
+
export { ${e.collections.map(({name:e})=>o(e)).join(`, `)} };
|
|
6
|
+
`,`content`),createTypeDefinitionFile:async e=>Promise.resolve(),createDataFiles:async i=>{await Promise.all(i.map(async i=>r.config.contentCollections.outputPath?r.fs.write(t(r.config.contentCollections.outputPath,n(i.name)),e(i.documents.map(e=>e.document))):r.emitBuiltin(e(i.documents.map(e=>e.document)),t(`content`,n(i.name)))))}});export{s as createWriter};
|
|
7
|
+
//# sourceMappingURL=create-writer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-writer.mjs","names":[],"sources":["../../src/helpers/create-writer.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n DataFileCollection,\n JavaScriptFileConfiguration,\n serialize,\n TypeDefinitionFileConfiguration,\n Writer\n} from \"@content-collections/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport pluralize from \"pluralize\";\nimport { getFileHeader } from \"powerlines/utils\";\nimport { ContentCollectionsPluginContext } from \"../types/plugin\";\n\nconst createConstName = (name: string) => {\n return pluralize(name.charAt(0).toUpperCase() + name.slice(1));\n};\n\nconst createArrayConstName = (name: string) => {\n return `all${createConstName(name)}`;\n};\n\n/**\n * Creates a Writer instance for emitting files related to content collections.\n *\n * @param context - The Powerlines build plugin\n * @returns A Writer instance for emitting files related to content collections\n */\nexport const createWriter = (\n context: ContentCollectionsPluginContext\n): Writer => {\n return {\n createJavaScriptFile: async (\n configuration: JavaScriptFileConfiguration\n ) => {\n return context.emitBuiltin(\n `${getFileHeader(context)}\n${configuration.collections\n .map(\n ({ name }) =>\n `import ${createArrayConstName(name)} from \"./${kebabCase(name)}\";`\n )\n .join(\"\\n\")}\n\nexport { ${configuration.collections\n .map(({ name }) => createArrayConstName(name))\n .join(\", \")} };\n`,\n \"content\"\n );\n },\n createTypeDefinitionFile: async (_: TypeDefinitionFileConfiguration) =>\n Promise.resolve(),\n createDataFiles: async (collections: Array<DataFileCollection>) => {\n await Promise.all(\n collections.map(async collection => {\n if (context.config.contentCollections.outputPath) {\n return context.fs.write(\n joinPaths(\n context.config.contentCollections.outputPath,\n kebabCase(collection.name)\n ),\n serialize(collection.documents.map(doc => doc.document))\n );\n }\n\n return context.emitBuiltin(\n serialize(collection.documents.map(doc => doc.document)),\n joinPaths(\"content\", kebabCase(collection.name))\n );\n })\n );\n }\n };\n};\n"],"mappings":"iPA+BA,MAAM,EAAmB,GAChB,EAAU,EAAK,OAAO,EAAE,CAAC,aAAa,CAAG,EAAK,MAAM,EAAE,CAAC,CAG1D,EAAwB,GACrB,MAAM,EAAgB,EAAK,GASvB,EACX,IAEO,CACL,qBAAsB,KACpB,IAEO,EAAQ,YACb,GAAG,EAAc,EAAQ,CAAC;EAChC,EAAc,YACb,KACE,CAAE,UACD,UAAU,EAAqB,EAAK,CAAC,WAAW,EAAU,EAAK,CAAC,IACnE,CACA,KAAK;EAAK,CAAC;;WAEH,EAAc,YACd,KAAK,CAAE,UAAW,EAAqB,EAAK,CAAC,CAC7C,KAAK,KAAK,CAAC;EAEd,UACD,CAEH,yBAA0B,KAAO,IAC/B,QAAQ,SAAS,CACnB,gBAAiB,KAAO,IAA2C,CACjE,MAAM,QAAQ,IACZ,EAAY,IAAI,KAAM,IAChB,EAAQ,OAAO,mBAAmB,WAC7B,EAAQ,GAAG,MAChB,EACE,EAAQ,OAAO,mBAAmB,WAClC,EAAU,EAAW,KAAK,CAC3B,CACD,EAAU,EAAW,UAAU,IAAI,GAAO,EAAI,SAAS,CAAC,CACzD,CAGI,EAAQ,YACb,EAAU,EAAW,UAAU,IAAI,GAAO,EAAI,SAAS,CAAC,CACxD,EAAU,UAAW,EAAU,EAAW,KAAK,CAAC,CACjD,CACD,CACH,EAEJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./create-emitter.cjs`),t=require(`./create-writer.cjs`);exports.createEmitter=e.createEmitter,exports.createWriter=t.createWriter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createEmitter as e}from"./create-emitter.mjs";import{createWriter as t}from"./create-writer.mjs";export{e as createEmitter,t as createWriter};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./_virtual/_rolldown/runtime.cjs`),t=require(`./helpers/create-emitter.cjs`),n=require(`./helpers/create-writer.cjs`);require(`./helpers/index.cjs`);let r=require(`@content-collections/core`),i=require(`@stryke/fs/exists`),a=require(`@stryke/path/join`),o=require(`defu`);o=e.__toESM(o,1);let s=require(`node:crypto`),c=require(`powerlines/plugin-utils`);const l=e=>({name:`content-collections`,config(){return{contentCollections:(0,o.default)(e,{configFile:`{root}/content-collections.ts`,collections:[]})}},async configResolved(){this.config.contentCollections.configFile||=(0,c.replacePathTokens)(this,this.config.contentCollections.configFile),this.config.contentCollections.outputPath||=(0,c.replacePathTokens)(this,this.config.contentCollections.outputPath);let e=t.createEmitter(),l=(0,r.createConfigurationReader)(),u={};try{(0,i.existsSync)(this.config.contentCollections.configFile)&&(u=await l(this.config.contentCollections.configFile,{configName:`config.mjs`,cacheDir:(0,a.joinPaths)(this.cachePath,`content-collections`)}))}catch{}u=(0,o.default)(u??{},this.config.contentCollections),u.checksum=(0,s.createHash)(`sha256`).update(JSON.stringify(u)).digest(`hex`);let d=await(0,r.createBuildContext)({emitter:e,baseDirectory:(0,a.joinPaths)(this.config.cwd,this.config.root),outputDirectory:this.config.contentCollections.outputPath||(0,a.joinPaths)(this.builtinsPath,`content`),configuration:u});d.writer=n.createWriter(this),this.contentCollections={context:d,build:async()=>(0,r.build)(d),on:e.on}},async prepare(){return this.contentCollections.build()}});exports.createEmitter=t.createEmitter,exports.createWriter=n.createWriter,exports.default=l,exports.plugin=l;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.cjs";
|
|
2
|
+
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
+
import { createWriter } from "./helpers/create-writer.cjs";
|
|
4
|
+
import { Plugin } from "powerlines";
|
|
5
|
+
|
|
6
|
+
//#region src/index.d.ts
|
|
7
|
+
declare module "powerlines" {
|
|
8
|
+
interface Config {
|
|
9
|
+
contentCollections?: ContentCollectionsPluginOptions;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A Powerlines plugin to integrate Content Collections for code generation.
|
|
14
|
+
*
|
|
15
|
+
* @param options - The plugin options.
|
|
16
|
+
* @returns A Powerlines plugin instance.
|
|
17
|
+
*/
|
|
18
|
+
declare const plugin: <TContext extends ContentCollectionsPluginContext = ContentCollectionsPluginContext>(options: ContentCollectionsPluginOptions) => Plugin<TContext>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig, createEmitter, createWriter, plugin as default, plugin };
|
|
21
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;YAyCY,MAAA;IACR,kBAAA,GAAqB,+BAAA;EAAA;AAAA;;;;;;;cAUZ,MAAA,oBACM,+BAAA,GACf,+BAAA,EAEF,OAAA,EAAS,+BAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.mjs";
|
|
2
|
+
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
+
import { createWriter } from "./helpers/create-writer.mjs";
|
|
4
|
+
import { Plugin } from "powerlines";
|
|
5
|
+
|
|
6
|
+
//#region src/index.d.ts
|
|
7
|
+
declare module "powerlines" {
|
|
8
|
+
interface Config {
|
|
9
|
+
contentCollections?: ContentCollectionsPluginOptions;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A Powerlines plugin to integrate Content Collections for code generation.
|
|
14
|
+
*
|
|
15
|
+
* @param options - The plugin options.
|
|
16
|
+
* @returns A Powerlines plugin instance.
|
|
17
|
+
*/
|
|
18
|
+
declare const plugin: <TContext extends ContentCollectionsPluginContext = ContentCollectionsPluginContext>(options: ContentCollectionsPluginOptions) => Plugin<TContext>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig, createEmitter, createWriter, plugin as default, plugin };
|
|
21
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;YAyCY,MAAA;IACR,kBAAA,GAAqB,+BAAA;EAAA;AAAA;;;;;;;cAUZ,MAAA,oBACM,+BAAA,GACf,+BAAA,EAEF,OAAA,EAAS,+BAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createEmitter as e}from"./helpers/create-emitter.mjs";import{createWriter as t}from"./helpers/create-writer.mjs";import"./helpers/index.mjs";import{build as n,createBuildContext as r,createConfigurationReader as i}from"@content-collections/core";import{existsSync as a}from"@stryke/fs/exists";import{joinPaths as o}from"@stryke/path/join";import s from"defu";import{createHash as c}from"node:crypto";import{replacePathTokens as l}from"powerlines/plugin-utils";const u=u=>({name:`content-collections`,config(){return{contentCollections:s(u,{configFile:`{root}/content-collections.ts`,collections:[]})}},async configResolved(){this.config.contentCollections.configFile||=l(this,this.config.contentCollections.configFile),this.config.contentCollections.outputPath||=l(this,this.config.contentCollections.outputPath);let u=e(),d=i(),f={};try{a(this.config.contentCollections.configFile)&&(f=await d(this.config.contentCollections.configFile,{configName:`config.mjs`,cacheDir:o(this.cachePath,`content-collections`)}))}catch{}f=s(f??{},this.config.contentCollections),f.checksum=c(`sha256`).update(JSON.stringify(f)).digest(`hex`);let p=await r({emitter:u,baseDirectory:o(this.config.cwd,this.config.root),outputDirectory:this.config.contentCollections.outputPath||o(this.builtinsPath,`content`),configuration:f});p.writer=t(this),this.contentCollections={context:p,build:async()=>n(p),on:u.on}},async prepare(){return this.contentCollections.build()}});export{e as createEmitter,t as createWriter,u as default,u as plugin};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n build,\n createBuildContext,\n createConfigurationReader,\n InternalConfiguration\n} from \"@content-collections/core\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport defu from \"defu\";\nimport { createHash } from \"node:crypto\";\nimport { Plugin } from \"powerlines\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\nimport { createEmitter } from \"./helpers/create-emitter\";\nimport { createWriter } from \"./helpers/create-writer\";\nimport {\n ContentCollectionsPluginContext,\n ContentCollectionsPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n contentCollections?: ContentCollectionsPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate Content Collections for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends ContentCollectionsPluginContext =\n ContentCollectionsPluginContext\n>(\n options: ContentCollectionsPluginOptions\n): Plugin<TContext> => {\n return {\n name: \"content-collections\",\n config() {\n return {\n contentCollections: defu(options, {\n configFile: \"{root}/content-collections.ts\",\n collections: []\n })\n };\n },\n async configResolved() {\n this.config.contentCollections.configFile ||= replacePathTokens(\n this,\n this.config.contentCollections.configFile\n );\n\n this.config.contentCollections.outputPath ||= replacePathTokens(\n this,\n this.config.contentCollections.outputPath\n );\n\n const emitter = createEmitter();\n const readConfiguration = createConfigurationReader();\n\n let configuration = {} as InternalConfiguration;\n try {\n if (existsSync(this.config.contentCollections.configFile)) {\n configuration = await readConfiguration(\n this.config.contentCollections.configFile,\n {\n configName: \"config.mjs\",\n cacheDir: joinPaths(this.cachePath, \"content-collections\")\n }\n );\n }\n } catch {\n // Do nothing\n }\n\n configuration = defu(configuration ?? {}, this.config.contentCollections);\n configuration.checksum = createHash(\"sha256\")\n .update(JSON.stringify(configuration))\n .digest(\"hex\");\n\n const context = await createBuildContext({\n emitter,\n baseDirectory: joinPaths(this.config.cwd, this.config.root),\n outputDirectory:\n this.config.contentCollections.outputPath ||\n joinPaths(this.builtinsPath, \"content\"),\n configuration\n });\n context.writer = createWriter(this);\n\n this.contentCollections = {\n context,\n build: async () => build(context),\n on: emitter.on\n };\n },\n async prepare() {\n return this.contentCollections.build();\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"mdAoDA,MAAa,EAIX,IAEO,CACL,KAAM,sBACN,QAAS,CACP,MAAO,CACL,mBAAoB,EAAK,EAAS,CAChC,WAAY,gCACZ,YAAa,EAAE,CAChB,CAAC,CACH,EAEH,MAAM,gBAAiB,CACrB,KAAK,OAAO,mBAAmB,aAAe,EAC5C,KACA,KAAK,OAAO,mBAAmB,WAChC,CAED,KAAK,OAAO,mBAAmB,aAAe,EAC5C,KACA,KAAK,OAAO,mBAAmB,WAChC,CAED,IAAM,EAAU,GAAe,CACzB,EAAoB,GAA2B,CAEjD,EAAgB,EAAE,CACtB,GAAI,CACE,EAAW,KAAK,OAAO,mBAAmB,WAAW,GACvD,EAAgB,MAAM,EACpB,KAAK,OAAO,mBAAmB,WAC/B,CACE,WAAY,aACZ,SAAU,EAAU,KAAK,UAAW,sBAAsB,CAC3D,CACF,OAEG,EAIR,EAAgB,EAAK,GAAiB,EAAE,CAAE,KAAK,OAAO,mBAAmB,CACzE,EAAc,SAAW,EAAW,SAAS,CAC1C,OAAO,KAAK,UAAU,EAAc,CAAC,CACrC,OAAO,MAAM,CAEhB,IAAM,EAAU,MAAM,EAAmB,CACvC,UACA,cAAe,EAAU,KAAK,OAAO,IAAK,KAAK,OAAO,KAAK,CAC3D,gBACE,KAAK,OAAO,mBAAmB,YAC/B,EAAU,KAAK,aAAc,UAAU,CACzC,gBACD,CAAC,CACF,EAAQ,OAAS,EAAa,KAAK,CAEnC,KAAK,mBAAqB,CACxB,UACA,MAAO,SAAY,EAAM,EAAQ,CACjC,GAAI,EAAQ,GACb,EAEH,MAAM,SAAU,CACd,OAAO,KAAK,mBAAmB,OAAO,EAEzC"}
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AnyCollection, BuildContext, createInternalBuilder } from "@content-collections/core";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type ContentCollectionsContext = Pick<Awaited<ReturnType<typeof createInternalBuilder>>, "build" | "on"> & {
|
|
6
|
+
context: BuildContext;
|
|
7
|
+
};
|
|
8
|
+
interface ContentCollectionsPluginOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The path to a custom Prisma configuration file.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* This field allows the use of the "\{root\}" token to refer to the project's root directory - the value will be replaced with the correct file path by the plugin.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue "\{root\}/content-collections.ts"
|
|
16
|
+
*/
|
|
17
|
+
configFile?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The list of content collections to include.
|
|
20
|
+
*/
|
|
21
|
+
collections?: AnyCollection[];
|
|
22
|
+
/**
|
|
23
|
+
* The path to the content collection output files generated by the plugin.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* If using the default value, the file can be imported from "powerlines:content/collection-name". This field allows the use of the "\{builtinsPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue "\{builtinsPath\}/content"
|
|
29
|
+
*/
|
|
30
|
+
outputPath?: string;
|
|
31
|
+
}
|
|
32
|
+
type ContentCollectionsPluginUserConfig = UserConfig & {
|
|
33
|
+
contentCollections?: ContentCollectionsPluginOptions;
|
|
34
|
+
};
|
|
35
|
+
type ContentCollectionsPluginResolvedConfig = ResolvedConfig & {
|
|
36
|
+
contentCollections: Required<Omit<ContentCollectionsPluginOptions, "outputPath">> & Pick<ContentCollectionsPluginOptions, "outputPath">;
|
|
37
|
+
};
|
|
38
|
+
type ContentCollectionsPluginContext<TResolvedConfig extends ContentCollectionsPluginResolvedConfig = ContentCollectionsPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
39
|
+
contentCollections: ContentCollectionsContext;
|
|
40
|
+
};
|
|
41
|
+
declare type __ΩContentCollectionsContext = any[];
|
|
42
|
+
declare type __ΩContentCollectionsPluginOptions = any[];
|
|
43
|
+
declare type __ΩContentCollectionsPluginUserConfig = any[];
|
|
44
|
+
declare type __ΩContentCollectionsPluginResolvedConfig = any[];
|
|
45
|
+
declare type __ΩContentCollectionsPluginContext = any[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
|
|
48
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAyBY,yBAAA,GAA4B,IAAA,CACtC,OAAA,CAAQ,UAAA,QAAkB,qBAAA;EAEtB,OAAA,EAAS,YAAA;AAAA;AAAA,UAEE,+BAAA;;;;;;;;;EASf,UAAA;EAbA;;;EAkBA,WAAA,GAAc,aAAA;EAhBD;;;AAEf;;;;;EAwBE,UAAA;AAAA;AAAA,KAGU,kCAAA,GAAqC,UAAA;EAC/C,kBAAA,GAAqB,+BAAA;AAAA;AAAA,KAGX,sCAAA,GAAyC,cAAA;EACnD,kBAAA,EAAoB,QAAA,CAClB,IAAA,CAAK,+BAAA,mBAEL,IAAA,CAAK,+BAAA;AAAA;AAAA,KAGG,+BAAA,yBACc,sCAAA,GACtB,sCAAA,IACA,aAAA,CAAc,eAAA;EAChB,kBAAA,EAAoB,yBAAA;AAAA;AAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AnyCollection, BuildContext, createInternalBuilder } from "@content-collections/core";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type ContentCollectionsContext = Pick<Awaited<ReturnType<typeof createInternalBuilder>>, "build" | "on"> & {
|
|
6
|
+
context: BuildContext;
|
|
7
|
+
};
|
|
8
|
+
interface ContentCollectionsPluginOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The path to a custom Prisma configuration file.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* This field allows the use of the "\{root\}" token to refer to the project's root directory - the value will be replaced with the correct file path by the plugin.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue "\{root\}/content-collections.ts"
|
|
16
|
+
*/
|
|
17
|
+
configFile?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The list of content collections to include.
|
|
20
|
+
*/
|
|
21
|
+
collections?: AnyCollection[];
|
|
22
|
+
/**
|
|
23
|
+
* The path to the content collection output files generated by the plugin.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* If using the default value, the file can be imported from "powerlines:content/collection-name". This field allows the use of the "\{builtinsPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue "\{builtinsPath\}/content"
|
|
29
|
+
*/
|
|
30
|
+
outputPath?: string;
|
|
31
|
+
}
|
|
32
|
+
type ContentCollectionsPluginUserConfig = UserConfig & {
|
|
33
|
+
contentCollections?: ContentCollectionsPluginOptions;
|
|
34
|
+
};
|
|
35
|
+
type ContentCollectionsPluginResolvedConfig = ResolvedConfig & {
|
|
36
|
+
contentCollections: Required<Omit<ContentCollectionsPluginOptions, "outputPath">> & Pick<ContentCollectionsPluginOptions, "outputPath">;
|
|
37
|
+
};
|
|
38
|
+
type ContentCollectionsPluginContext<TResolvedConfig extends ContentCollectionsPluginResolvedConfig = ContentCollectionsPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
39
|
+
contentCollections: ContentCollectionsContext;
|
|
40
|
+
};
|
|
41
|
+
declare type __ΩContentCollectionsContext = any[];
|
|
42
|
+
declare type __ΩContentCollectionsPluginOptions = any[];
|
|
43
|
+
declare type __ΩContentCollectionsPluginUserConfig = any[];
|
|
44
|
+
declare type __ΩContentCollectionsPluginResolvedConfig = any[];
|
|
45
|
+
declare type __ΩContentCollectionsPluginContext = any[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig };
|
|
48
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAyBY,yBAAA,GAA4B,IAAA,CACtC,OAAA,CAAQ,UAAA,QAAkB,qBAAA;EAEtB,OAAA,EAAS,YAAA;AAAA;AAAA,UAEE,+BAAA;;;;;;;;;EASf,UAAA;EAbA;;;EAkBA,WAAA,GAAc,aAAA;EAhBD;;;AAEf;;;;;EAwBE,UAAA;AAAA;AAAA,KAGU,kCAAA,GAAqC,UAAA;EAC/C,kBAAA,GAAqB,+BAAA;AAAA;AAAA,KAGX,sCAAA,GAAyC,cAAA;EACnD,kBAAA,EAAoB,QAAA,CAClB,IAAA,CAAK,+BAAA,mBAEL,IAAA,CAAK,+BAAA;AAAA;AAAA,KAGG,+BAAA,yBACc,sCAAA,GACtB,sCAAA,IACA,aAAA,CAAc,eAAA;EAChB,kBAAA,EAAoB,yBAAA;AAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-content-collections",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.434",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code using Content Collections.",
|
|
6
6
|
"keywords": [
|
|
@@ -138,18 +138,18 @@
|
|
|
138
138
|
"files": ["dist/**/*"],
|
|
139
139
|
"dependencies": {
|
|
140
140
|
"@standard-schema/spec": "^1.1.0",
|
|
141
|
-
"@stryke/fs": "^0.33.
|
|
142
|
-
"@stryke/path": "^0.
|
|
143
|
-
"@stryke/string-format": "^0.17.
|
|
144
|
-
"@stryke/type-checks": "^0.6.
|
|
145
|
-
"@stryke/types": "^0.11.
|
|
141
|
+
"@stryke/fs": "^0.33.69",
|
|
142
|
+
"@stryke/path": "^0.28.1",
|
|
143
|
+
"@stryke/string-format": "^0.17.12",
|
|
144
|
+
"@stryke/type-checks": "^0.6.4",
|
|
145
|
+
"@stryke/types": "^0.11.6",
|
|
146
146
|
"defu": "^6.1.7",
|
|
147
147
|
"pluralize": "^8.0.0",
|
|
148
|
-
"powerlines": "^0.43.
|
|
148
|
+
"powerlines": "^0.43.30"
|
|
149
149
|
},
|
|
150
150
|
"devDependencies": {
|
|
151
151
|
"@content-collections/core": "^0.12.0",
|
|
152
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
152
|
+
"@powerlines/plugin-plugin": "^0.12.385",
|
|
153
153
|
"@types/node": "^25.6.0",
|
|
154
154
|
"@types/pluralize": "^0.0.33"
|
|
155
155
|
},
|
|
@@ -158,5 +158,5 @@
|
|
|
158
158
|
"@content-collections/core": { "optional": false }
|
|
159
159
|
},
|
|
160
160
|
"publishConfig": { "access": "public" },
|
|
161
|
-
"gitHead": "
|
|
161
|
+
"gitHead": "36f3385b33024e00aafb6c4a10e7a2e3c896aad5"
|
|
162
162
|
}
|