@powerlines/plugin-content-collections 0.1.180 → 0.1.181
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/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.cjs +1 -1
- package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-writer.cjs +1 -1
- package/dist/helpers/index.cjs +5 -0
- package/dist/{src/index.cjs → index.cjs} +8 -8
- package/dist/{src/index.d.cts → index.d.cts} +4 -4
- package/dist/{src/index.d.mts → index.d.mts} +6 -6
- package/dist/{src/index.mjs → index.mjs} +3 -3
- package/dist/{packages/plugin-content-collections/src/types → types}/plugin.d.cts +3 -3
- package/dist/{packages/plugin-content-collections/src/types → types}/plugin.d.mts +3 -3
- package/package.json +4 -4
- package/dist/packages/plugin-content-collections/src/helpers/index.cjs +0 -5
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.d.cts +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.d.mts +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.mjs +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-writer.d.cts +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-writer.d.mts +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-writer.mjs +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/index.d.cts +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/index.d.mts +0 -0
- /package/dist/{packages/plugin-content-collections/src/helpers → helpers}/index.mjs +0 -0
- /package/dist/{packages/plugin-content-collections/src/types → types}/index.cjs +0 -0
- /package/dist/{packages/plugin-content-collections/src/types → types}/index.d.cts +0 -0
- /package/dist/{packages/plugin-content-collections/src/types → types}/index.d.mts +0 -0
- /package/dist/{packages/plugin-content-collections/src/types → types}/index.mjs +0 -0
- /package/dist/{packages/plugin-content-collections/src/types → types}/plugin.cjs +0 -0
- /package/dist/{packages/plugin-content-collections/src/types → types}/plugin.mjs +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let __content_collections_core = require("@content-collections/core");
|
|
3
3
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
4
|
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const require_helpers_create_emitter = require('./create-emitter.cjs');
|
|
2
|
+
const require_helpers_create_writer = require('./create-writer.cjs');
|
|
3
|
+
|
|
4
|
+
exports.createEmitter = require_helpers_create_emitter.createEmitter;
|
|
5
|
+
exports.createWriter = require_helpers_create_writer.createWriter;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_rolldown_runtime = require('
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
require('
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.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
6
|
let __content_collections_core = require("@content-collections/core");
|
|
7
7
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
8
8
|
let __stryke_path_join = require("@stryke/path/join");
|
|
@@ -30,7 +30,7 @@ const plugin = (options) => {
|
|
|
30
30
|
async configResolved() {
|
|
31
31
|
this.config.contentCollections.configFile ||= (0, powerlines_plugin_utils_paths.replacePathTokens)(this, this.config.contentCollections.configFile);
|
|
32
32
|
this.config.contentCollections.outputPath ||= (0, powerlines_plugin_utils_paths.replacePathTokens)(this, this.config.contentCollections.outputPath);
|
|
33
|
-
const emitter =
|
|
33
|
+
const emitter = require_helpers_create_emitter.createEmitter();
|
|
34
34
|
const readConfiguration = (0, __content_collections_core.createConfigurationReader)();
|
|
35
35
|
let configuration = {};
|
|
36
36
|
try {
|
|
@@ -47,7 +47,7 @@ const plugin = (options) => {
|
|
|
47
47
|
outputDirectory: this.config.contentCollections.outputPath || (0, __stryke_path_join.joinPaths)(this.builtinsPath, "content"),
|
|
48
48
|
configuration
|
|
49
49
|
});
|
|
50
|
-
context.writer =
|
|
50
|
+
context.writer = require_helpers_create_writer.createWriter(this);
|
|
51
51
|
this.contentCollections = {
|
|
52
52
|
context,
|
|
53
53
|
build: async () => (0, __content_collections_core.build)(context),
|
|
@@ -62,7 +62,7 @@ const plugin = (options) => {
|
|
|
62
62
|
var src_default = plugin;
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
|
-
exports.createEmitter =
|
|
66
|
-
exports.createWriter =
|
|
65
|
+
exports.createEmitter = require_helpers_create_emitter.createEmitter;
|
|
66
|
+
exports.createWriter = require_helpers_create_writer.createWriter;
|
|
67
67
|
exports.default = src_default;
|
|
68
68
|
exports.plugin = plugin;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createEmitter } from "
|
|
2
|
-
import { Plugin } from "
|
|
3
|
-
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "
|
|
4
|
-
import { createWriter } from "
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.cjs";
|
|
2
|
+
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
3
|
+
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.cjs";
|
|
4
|
+
import { createWriter } from "./helpers/create-writer.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createEmitter } from "
|
|
2
|
-
import { Plugin } from "
|
|
3
|
-
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "
|
|
4
|
-
import { createWriter } from "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.mjs";
|
|
2
|
+
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
3
|
+
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.mjs";
|
|
4
|
+
import { createWriter } from "./helpers/create-writer.mjs";
|
|
5
|
+
import "./helpers/index.mjs";
|
|
6
|
+
import "./types/index.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/index.d.ts
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createEmitter } from "
|
|
2
|
-
import { createWriter } from "
|
|
3
|
-
import "
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.mjs";
|
|
2
|
+
import { createWriter } from "./helpers/create-writer.mjs";
|
|
3
|
+
import "./helpers/index.mjs";
|
|
4
4
|
import { build, createBuildContext, createConfigurationReader } from "@content-collections/core";
|
|
5
5
|
import { existsSync } from "@stryke/fs/exists";
|
|
6
6
|
import { joinPaths } from "@stryke/path/join";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResolvedConfig } from "
|
|
2
|
-
import { PluginContext } from "
|
|
3
|
-
import { UserConfig } from "
|
|
1
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
2
|
+
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
3
|
+
import { UserConfig } from "../powerlines/src/types/config.cjs";
|
|
4
4
|
import { AnyCollection, BuildContext, createInternalBuilder } from "@content-collections/core";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResolvedConfig } from "
|
|
2
|
-
import { PluginContext } from "
|
|
3
|
-
import { UserConfig } from "
|
|
1
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
2
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
3
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
4
4
|
import { AnyCollection, BuildContext, createInternalBuilder } from "@content-collections/core";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
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.181",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code using Content Collections.",
|
|
6
6
|
"repository": {
|
|
@@ -131,13 +131,13 @@
|
|
|
131
131
|
"@stryke/types": "^0.10.33",
|
|
132
132
|
"defu": "^6.1.4",
|
|
133
133
|
"pluralize": "^8.0.0",
|
|
134
|
-
"powerlines": "^0.37.
|
|
134
|
+
"powerlines": "^0.37.55"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
137
|
+
"@powerlines/plugin-plugin": "^0.12.133",
|
|
138
138
|
"@types/node": "^24.10.9",
|
|
139
139
|
"@types/pluralize": "^0.0.33"
|
|
140
140
|
},
|
|
141
141
|
"publishConfig": { "access": "public" },
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "5c6a45da350207ae49328ff5a6330415e872a319"
|
|
143
143
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const require_packages_plugin_content_collections_src_helpers_create_emitter = require('./create-emitter.cjs');
|
|
2
|
-
const require_packages_plugin_content_collections_src_helpers_create_writer = require('./create-writer.cjs');
|
|
3
|
-
|
|
4
|
-
exports.createEmitter = require_packages_plugin_content_collections_src_helpers_create_emitter.createEmitter;
|
|
5
|
-
exports.createWriter = require_packages_plugin_content_collections_src_helpers_create_writer.createWriter;
|
/package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.d.cts
RENAMED
|
File without changes
|
/package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.d.mts
RENAMED
|
File without changes
|
/package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-emitter.mjs
RENAMED
|
File without changes
|
/package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-writer.d.cts
RENAMED
|
File without changes
|
/package/dist/{packages/plugin-content-collections/src/helpers → helpers}/create-writer.d.mts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|