@powerlines/plugin-content-collections 0.1.676 → 0.1.678
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/{create-emitter-CE9g0zIu.d.cts → create-emitter-COgSPxfC.d.cts} +1 -3
- package/dist/create-emitter-COgSPxfC.d.cts.map +1 -0
- package/dist/{create-emitter-CE9g0zIu.d.mts → create-emitter-COgSPxfC.d.mts} +1 -3
- package/dist/create-emitter-COgSPxfC.d.mts.map +1 -0
- package/dist/{create-writer-Bs74Pu1R.d.mts → create-writer-CyhBmj6n.d.cts} +2 -4
- package/dist/create-writer-CyhBmj6n.d.cts.map +1 -0
- package/dist/{create-writer-DLRmxPwG.d.cts → create-writer-D19eQY6w.d.mts} +2 -4
- package/dist/create-writer-D19eQY6w.d.mts.map +1 -0
- package/dist/helpers/create-emitter.cjs +1 -2
- package/dist/helpers/create-emitter.d.cts +1 -1
- package/dist/helpers/create-emitter.d.mts +1 -1
- package/dist/helpers/create-emitter.mjs +1 -2
- package/dist/helpers/create-writer.cjs +2 -3
- package/dist/helpers/create-writer.d.cts +1 -1
- package/dist/helpers/create-writer.d.mts +1 -1
- package/dist/helpers/create-writer.mjs +1 -2
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/index.cjs +6 -7
- package/dist/index.d.cts +3 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -5
- package/dist/index.mjs +1 -2
- package/dist/{plugin-BOfMmWO0.d.cts → plugin-drkszP72.d.cts} +1 -3
- package/dist/plugin-drkszP72.d.cts.map +1 -0
- package/dist/{plugin-BOfMmWO0.d.mts → plugin-drkszP72.d.mts} +1 -3
- package/dist/plugin-drkszP72.d.mts.map +1 -0
- package/dist/{rolldown-runtime-C24Yb2bl.cjs → rolldown-runtime-xuxB8TGW.cjs} +2 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +4 -4
- package/dist/create-emitter-CE9g0zIu.d.cts.map +0 -1
- package/dist/create-emitter-CE9g0zIu.d.mts.map +0 -1
- package/dist/create-writer-Bs74Pu1R.d.mts.map +0 -1
- package/dist/create-writer-DLRmxPwG.d.cts.map +0 -1
- package/dist/plugin-BOfMmWO0.d.cts.map +0 -1
- package/dist/plugin-BOfMmWO0.d.mts.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/helpers/create-emitter.d.ts
|
|
2
1
|
type EventMap = Record<string, object>;
|
|
3
2
|
interface EventWithError {
|
|
4
3
|
error: Error;
|
|
@@ -25,6 +24,5 @@ declare function createEmitter<TEvents extends EventMap>(): {
|
|
|
25
24
|
};
|
|
26
25
|
emit: <TKey extends Keys<TEvents>>(key: TKey, event: TEvents[TKey]) => void;
|
|
27
26
|
};
|
|
28
|
-
//#endregion
|
|
29
27
|
export { createEmitter as t };
|
|
30
|
-
//# sourceMappingURL=create-emitter-
|
|
28
|
+
//# sourceMappingURL=create-emitter-COgSPxfC.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-emitter-COgSPxfC.d.cts","names":[],"sources":["../src/helpers/create-emitter.ts"],"mappings":"A,KAoBK,WAAW;UAEN;EACR,OAAO;;UAGC;EACR;;KAGG,aAAa,iBAAiB;UAEzB,qBAAqB;EAC7B,QAAQ;EACR,MAAM;;KAGH,KAAK,gBAAgB,kBAAkB;KACvC,SAAS,WAAW,OAAO;;;;;;iBAOhB,cAAc,gBAAgB;;KAGhC,aAAa,KAAK,UAAQ,KAC/B,MAAI,UACC,SAAS,QAAQ;KAGjB,aAAa,KAAK,eAAa,KACpC,MAAI,UACC,SAAS,aAAa;;EAOpB,OAAA,aAAa,KAAK,UAAQ,KAAO,MAAI,OAAS,QAAQ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/helpers/create-emitter.d.ts
|
|
2
1
|
type EventMap = Record<string, object>;
|
|
3
2
|
interface EventWithError {
|
|
4
3
|
error: Error;
|
|
@@ -25,6 +24,5 @@ declare function createEmitter<TEvents extends EventMap>(): {
|
|
|
25
24
|
};
|
|
26
25
|
emit: <TKey extends Keys<TEvents>>(key: TKey, event: TEvents[TKey]) => void;
|
|
27
26
|
};
|
|
28
|
-
//#endregion
|
|
29
27
|
export { createEmitter as t };
|
|
30
|
-
//# sourceMappingURL=create-emitter-
|
|
28
|
+
//# sourceMappingURL=create-emitter-COgSPxfC.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-emitter-COgSPxfC.d.mts","names":[],"sources":["../src/helpers/create-emitter.ts"],"mappings":""}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as ContentCollectionsPluginContext } from "./plugin-
|
|
1
|
+
import { n as ContentCollectionsPluginContext } from "./plugin-drkszP72.cjs";
|
|
2
2
|
import { Writer } from "@content-collections/core";
|
|
3
|
-
//#region src/helpers/create-writer.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Creates a Writer instance for emitting files related to content collections.
|
|
6
5
|
*
|
|
@@ -8,6 +7,5 @@ import { Writer } from "@content-collections/core";
|
|
|
8
7
|
* @returns A Writer instance for emitting files related to content collections
|
|
9
8
|
*/
|
|
10
9
|
declare const createWriter: (context: ContentCollectionsPluginContext) => Writer;
|
|
11
|
-
//#endregion
|
|
12
10
|
export { createWriter as t };
|
|
13
|
-
//# sourceMappingURL=create-writer-
|
|
11
|
+
//# sourceMappingURL=create-writer-CyhBmj6n.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-writer-CyhBmj6n.d.cts","names":[],"sources":["../src/helpers/create-writer.ts"],"mappings":";;;;;;;;cA8Ca,eACX,SAAS,oCACR"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as ContentCollectionsPluginContext } from "./plugin-
|
|
1
|
+
import { n as ContentCollectionsPluginContext } from "./plugin-drkszP72.mjs";
|
|
2
2
|
import { Writer } from "@content-collections/core";
|
|
3
|
-
//#region src/helpers/create-writer.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Creates a Writer instance for emitting files related to content collections.
|
|
6
5
|
*
|
|
@@ -8,6 +7,5 @@ import { Writer } from "@content-collections/core";
|
|
|
8
7
|
* @returns A Writer instance for emitting files related to content collections
|
|
9
8
|
*/
|
|
10
9
|
declare const createWriter: (context: ContentCollectionsPluginContext) => Writer;
|
|
11
|
-
//#endregion
|
|
12
10
|
export { createWriter as t };
|
|
13
|
-
//# sourceMappingURL=create-writer-
|
|
11
|
+
//# sourceMappingURL=create-writer-D19eQY6w.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-writer-D19eQY6w.d.mts","names":[],"sources":["../src/helpers/create-writer.ts"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
let node_events = require("node:events");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/helpers/create-emitter.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create an event emitter with typed events.
|
|
7
7
|
*
|
|
@@ -29,5 +29,4 @@ function createEmitter() {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
//#endregion
|
|
33
32
|
exports.createEmitter = createEmitter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createEmitter } from "../create-emitter-
|
|
1
|
+
import { t as createEmitter } from "../create-emitter-COgSPxfC.cjs";
|
|
2
2
|
export { createEmitter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createEmitter } from "../create-emitter-
|
|
1
|
+
import { t as createEmitter } from "../create-emitter-COgSPxfC.mjs";
|
|
2
2
|
export { createEmitter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "node:events";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/helpers/create-emitter.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create an event emitter with typed events.
|
|
6
6
|
*
|
|
@@ -28,6 +28,5 @@ function createEmitter() {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { createEmitter };
|
|
33
32
|
//# sourceMappingURL=create-emitter.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
2
|
+
const require_rolldown_runtime = require("../rolldown-runtime-xuxB8TGW.cjs");
|
|
3
3
|
let _content_collections_core = require("@content-collections/core");
|
|
4
4
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
5
5
|
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
@@ -7,7 +7,7 @@ let pluralize = require("pluralize");
|
|
|
7
7
|
pluralize = require_rolldown_runtime.__toESM(pluralize, 1);
|
|
8
8
|
let powerlines_utils = require("powerlines/utils");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/helpers/create-writer.ts
|
|
11
11
|
const createConstName = (name) => {
|
|
12
12
|
return (0, pluralize.default)(name.charAt(0).toUpperCase() + name.slice(1));
|
|
13
13
|
};
|
|
@@ -39,5 +39,4 @@ export { ${configuration.collections.map(({ name }) => createArrayConstName(name
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
exports.createWriter = createWriter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createWriter } from "../create-writer-
|
|
1
|
+
import { t as createWriter } from "../create-writer-CyhBmj6n.cjs";
|
|
2
2
|
export { createWriter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createWriter } from "../create-writer-
|
|
1
|
+
import { t as createWriter } from "../create-writer-D19eQY6w.mjs";
|
|
2
2
|
export { createWriter };
|
|
@@ -4,7 +4,7 @@ import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
|
4
4
|
import pluralize from "pluralize";
|
|
5
5
|
import { getFileHeader } from "powerlines/utils";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/helpers/create-writer.ts
|
|
8
8
|
const createConstName = (name) => {
|
|
9
9
|
return pluralize(name.charAt(0).toUpperCase() + name.slice(1));
|
|
10
10
|
};
|
|
@@ -36,6 +36,5 @@ export { ${configuration.collections.map(({ name }) => createArrayConstName(name
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { createWriter };
|
|
41
40
|
//# sourceMappingURL=create-writer.mjs.map
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_create_emitter = require(
|
|
3
|
-
const require_helpers_create_writer = require(
|
|
2
|
+
const require_helpers_create_emitter = require("./create-emitter.cjs");
|
|
3
|
+
const require_helpers_create_writer = require("./create-writer.cjs");
|
|
4
4
|
|
|
5
5
|
exports.createEmitter = require_helpers_create_emitter.createEmitter;
|
|
6
6
|
exports.createWriter = require_helpers_create_writer.createWriter;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createEmitter } from "../create-emitter-
|
|
2
|
-
import { t as createWriter } from "../create-writer-
|
|
1
|
+
import { t as createEmitter } from "../create-emitter-COgSPxfC.cjs";
|
|
2
|
+
import { t as createWriter } from "../create-writer-CyhBmj6n.cjs";
|
|
3
3
|
export { createEmitter, createWriter };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createEmitter } from "../create-emitter-
|
|
2
|
-
import { t as createWriter } from "../create-writer-
|
|
1
|
+
import { t as createEmitter } from "../create-emitter-COgSPxfC.mjs";
|
|
2
|
+
import { t as createWriter } from "../create-writer-D19eQY6w.mjs";
|
|
3
3
|
export { createEmitter, createWriter };
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
3
|
-
const require_helpers_create_emitter = require(
|
|
4
|
-
const require_helpers_create_writer = require(
|
|
5
|
-
require(
|
|
6
|
-
require(
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-xuxB8TGW.cjs");
|
|
3
|
+
const require_helpers_create_emitter = require("./helpers/create-emitter.cjs");
|
|
4
|
+
const require_helpers_create_writer = require("./helpers/create-writer.cjs");
|
|
5
|
+
require("./helpers/index.cjs");
|
|
6
|
+
require("./types/index.cjs");
|
|
7
7
|
let _content_collections_core = require("@content-collections/core");
|
|
8
8
|
let _stryke_fs_exists = require("@stryke/fs/exists");
|
|
9
9
|
let _stryke_path_join = require("@stryke/path/join");
|
|
@@ -12,7 +12,7 @@ defu = require_rolldown_runtime.__toESM(defu, 1);
|
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// src/index.ts
|
|
16
16
|
/**
|
|
17
17
|
* A Powerlines plugin to integrate Content Collections for code generation.
|
|
18
18
|
*
|
|
@@ -61,7 +61,6 @@ const plugin = (options) => {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
exports.createEmitter = require_helpers_create_emitter.createEmitter;
|
|
66
65
|
exports.createWriter = require_helpers_create_writer.createWriter;
|
|
67
66
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as createEmitter } from "./create-emitter-
|
|
2
|
-
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "./plugin-
|
|
3
|
-
import { t as createWriter } from "./create-writer-
|
|
1
|
+
import { t as createEmitter } from "./create-emitter-COgSPxfC.cjs";
|
|
2
|
+
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "./plugin-drkszP72.cjs";
|
|
3
|
+
import { t as createWriter } from "./create-writer-CyhBmj6n.cjs";
|
|
4
4
|
import "./helpers/index.cjs";
|
|
5
5
|
import "./types/index.cjs";
|
|
6
6
|
import { Plugin } from "powerlines";
|
|
7
|
-
//#region src/index.d.ts
|
|
8
7
|
declare module "powerlines" {
|
|
9
8
|
interface Config {
|
|
10
9
|
contentCollections?: ContentCollectionsPluginOptions;
|
|
@@ -17,6 +16,5 @@ declare module "powerlines" {
|
|
|
17
16
|
* @returns A Powerlines plugin instance.
|
|
18
17
|
*/
|
|
19
18
|
declare const plugin: <TContext extends ContentCollectionsPluginContext = ContentCollectionsPluginContext>(options: ContentCollectionsPluginOptions) => Plugin<TContext>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, createEmitter, createWriter, plugin };
|
|
22
20
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;YAyCY;IACR,qBAAqB;;;;;;;;;cAUZ,SACX,iBAAiB,kCACf,iCAEF,SAAS,oCACR,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as createEmitter } from "./create-emitter-
|
|
2
|
-
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "./plugin-
|
|
3
|
-
import { t as createWriter } from "./create-writer-
|
|
1
|
+
import { t as createEmitter } from "./create-emitter-COgSPxfC.mjs";
|
|
2
|
+
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "./plugin-drkszP72.mjs";
|
|
3
|
+
import { t as createWriter } from "./create-writer-D19eQY6w.mjs";
|
|
4
4
|
import "./helpers/index.mjs";
|
|
5
5
|
import "./types/index.mjs";
|
|
6
6
|
import { Plugin } from "powerlines";
|
|
7
|
-
//#region src/index.d.ts
|
|
8
7
|
declare module "powerlines" {
|
|
9
8
|
interface Config {
|
|
10
9
|
contentCollections?: ContentCollectionsPluginOptions;
|
|
@@ -17,6 +16,5 @@ declare module "powerlines" {
|
|
|
17
16
|
* @returns A Powerlines plugin instance.
|
|
18
17
|
*/
|
|
19
18
|
declare const plugin: <TContext extends ContentCollectionsPluginContext = ContentCollectionsPluginContext>(options: ContentCollectionsPluginOptions) => Plugin<TContext>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, createEmitter, createWriter, plugin };
|
|
22
20
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import defu from "defu";
|
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
import { replacePathTokens } from "powerlines/plugin-utils";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/index.ts
|
|
13
13
|
/**
|
|
14
14
|
* A Powerlines plugin to integrate Content Collections for code generation.
|
|
15
15
|
*
|
|
@@ -58,6 +58,5 @@ const plugin = (options) => {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
//#endregion
|
|
62
61
|
export { createEmitter, createWriter, plugin };
|
|
63
62
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AnyCollection, BuildContext, createInternalBuilder } from "@content-collections/core";
|
|
2
2
|
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
-
//#region src/types/plugin.d.ts
|
|
4
3
|
type ContentCollectionsContext = Pick<Awaited<ReturnType<typeof createInternalBuilder>>, "build" | "on"> & {
|
|
5
4
|
context: BuildContext;
|
|
6
5
|
};
|
|
@@ -37,6 +36,5 @@ type ContentCollectionsPluginResolvedConfig = ResolvedConfig & {
|
|
|
37
36
|
type ContentCollectionsPluginContext<TResolvedConfig extends ContentCollectionsPluginResolvedConfig = ContentCollectionsPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
38
37
|
contentCollections: ContentCollectionsContext;
|
|
39
38
|
};
|
|
40
|
-
//#endregion
|
|
41
39
|
export { ContentCollectionsPluginUserConfig as a, ContentCollectionsPluginResolvedConfig as i, ContentCollectionsPluginContext as n, ContentCollectionsPluginOptions as r, ContentCollectionsContext as t };
|
|
42
|
-
//# sourceMappingURL=plugin-
|
|
40
|
+
//# sourceMappingURL=plugin-drkszP72.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-drkszP72.d.cts","names":["ExternalContentCollectionsContext"],"sources":["../src/types/plugin.ts"],"mappings":";;KAyBY,4BAA4B,KACtC,QAAQ,kBAAkB;EAEtB,SAASA;;UAEE;;;;;;;;;EASf;;;;EAKA,cAAc;;;;;;;;;EAUd;;KAGU,qCAAqC;EAC/C,qBAAqB;;KAGX,yCAAyC;EACnD,oBAAoB,SAClB,KAAK,kDAEL,KAAK;;KAGG,gCACV,wBAAwB,yCACtB,0CACA,cAAc;EAChB,oBAAoB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AnyCollection, BuildContext, createInternalBuilder } from "@content-collections/core";
|
|
2
2
|
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
-
//#region src/types/plugin.d.ts
|
|
4
3
|
type ContentCollectionsContext = Pick<Awaited<ReturnType<typeof createInternalBuilder>>, "build" | "on"> & {
|
|
5
4
|
context: BuildContext;
|
|
6
5
|
};
|
|
@@ -37,6 +36,5 @@ type ContentCollectionsPluginResolvedConfig = ResolvedConfig & {
|
|
|
37
36
|
type ContentCollectionsPluginContext<TResolvedConfig extends ContentCollectionsPluginResolvedConfig = ContentCollectionsPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
38
37
|
contentCollections: ContentCollectionsContext;
|
|
39
38
|
};
|
|
40
|
-
//#endregion
|
|
41
39
|
export { ContentCollectionsPluginUserConfig as a, ContentCollectionsPluginResolvedConfig as i, ContentCollectionsPluginContext as n, ContentCollectionsPluginOptions as r, ContentCollectionsContext as t };
|
|
42
|
-
//# sourceMappingURL=plugin-
|
|
40
|
+
//# sourceMappingURL=plugin-drkszP72.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-drkszP72.d.mts","names":["ExternalContentCollectionsContext"],"sources":["../src/types/plugin.ts"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -24,8 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(exports, '__toESM', {
|
|
27
|
+
Object.defineProperty(exports, "__toESM", {
|
|
29
28
|
enumerable: true,
|
|
30
29
|
get: function () {
|
|
31
30
|
return __toESM;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-
|
|
1
|
+
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-drkszP72.cjs";
|
|
2
2
|
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-
|
|
1
|
+
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-drkszP72.mjs";
|
|
2
2
|
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-
|
|
1
|
+
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-drkszP72.cjs";
|
|
2
2
|
export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-
|
|
1
|
+
import { a as ContentCollectionsPluginUserConfig, i as ContentCollectionsPluginResolvedConfig, n as ContentCollectionsPluginContext, r as ContentCollectionsPluginOptions, t as ContentCollectionsContext } from "../plugin-drkszP72.mjs";
|
|
2
2
|
export { 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.
|
|
3
|
+
"version": "0.1.678",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code using Content Collections.",
|
|
6
6
|
"keywords": [
|
|
@@ -145,11 +145,11 @@
|
|
|
145
145
|
"@stryke/types": "^0.12.44",
|
|
146
146
|
"defu": "^6.1.7",
|
|
147
147
|
"pluralize": "^8.0.0",
|
|
148
|
-
"powerlines": "^0.47.
|
|
148
|
+
"powerlines": "^0.47.216"
|
|
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.629",
|
|
153
153
|
"@types/node": "^25.9.9",
|
|
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": "75efa1cc4eb8bc90093202669065576aa70fbfef"
|
|
162
162
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-emitter-CE9g0zIu.d.cts","names":[],"sources":["../src/helpers/create-emitter.ts"],"mappings":";KAoBK,WAAW;UAEN;EACR,OAAO;;UAGC;EACR;;KAGG,aAAa,iBAAiB;UAEzB,qBAAqB;EAC7B,QAAQ;EACR,MAAM;;KAGH,KAAK,gBAAgB,kBAAkB;KACvC,SAAS,WAAW,OAAO;;;;;;iBAOhB,cAAc,gBAAgB;;KAGhC,aAAa,KAAK,UAAQ,KAC/B,MAAI,UACC,SAAS,QAAQ;KAGjB,aAAa,KAAK,eAAa,KACpC,MAAI,UACC,SAAS,aAAa;;EAOpB,OAAA,aAAa,KAAK,UAAQ,KAAO,MAAI,OAAS,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-emitter-CE9g0zIu.d.mts","names":[],"sources":["../src/helpers/create-emitter.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-writer-Bs74Pu1R.d.mts","names":[],"sources":["../src/helpers/create-writer.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-writer-DLRmxPwG.d.cts","names":[],"sources":["../src/helpers/create-writer.ts"],"mappings":";;;;;;;;;cA8Ca,eACX,SAAS,oCACR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-BOfMmWO0.d.cts","names":["ExternalContentCollectionsContext"],"sources":["../src/types/plugin.ts"],"mappings":";;;KAyBY,4BAA4B,KACtC,QAAQ,kBAAkB;EAEtB,SAASA;;UAEE;;;;;;;;;EASf;;;;EAKA,cAAc;;;;;;;;;EAUd;;KAGU,qCAAqC;EAC/C,qBAAqB;;KAGX,yCAAyC;EACnD,oBAAoB,SAClB,KAAK,kDAEL,KAAK;;KAGG,gCACV,wBAAwB,yCACtB,0CACA,cAAc;EAChB,oBAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-BOfMmWO0.d.mts","names":["ExternalContentCollectionsContext"],"sources":["../src/types/plugin.ts"],"mappings":""}
|