@powerlines/plugin-content-collections 0.1.168 → 0.1.170
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/helpers/index.cjs +5 -2
- package/dist/helpers/index.d.cts +3 -0
- package/dist/helpers/index.d.mts +2 -1
- package/dist/helpers/index.mjs +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/api.d.mts +3 -3
- package/dist/powerlines/src/types/build.d.cts +10 -10
- package/dist/powerlines/src/types/build.d.mts +10 -10
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +4 -4
- package/dist/powerlines/src/types/config.d.mts +4 -4
- package/dist/powerlines/src/types/context.d.cts +4 -4
- package/dist/powerlines/src/types/context.d.mts +4 -4
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +5 -5
- package/dist/powerlines/src/types/plugin.d.mts +5 -5
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +1 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.mjs +1 -0
- package/package.json +4 -4
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
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;
|
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const require_helpers_create_emitter = require('./helpers/create-emitter.cjs');
|
|
4
|
+
const require_helpers_create_writer = require('./helpers/create-writer.cjs');
|
|
5
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");
|
|
@@ -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;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.cjs";
|
|
1
2
|
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
3
|
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
-
import { createEmitter } from "./helpers/create-emitter.cjs";
|
|
4
4
|
import { createWriter } from "./helpers/create-writer.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { createEmitter } from "./helpers/create-emitter.mjs";
|
|
1
2
|
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
3
|
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
-
import { createEmitter } from "./helpers/create-emitter.mjs";
|
|
4
4
|
import { createWriter } from "./helpers/create-writer.mjs";
|
|
5
5
|
import "./helpers/index.mjs";
|
|
6
6
|
import "./types/index.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
1
|
import { ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
5
2
|
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
3
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
4
|
+
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
5
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
1
|
import { ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
5
2
|
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
3
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
4
|
+
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
5
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig } from "@farmfe/core";
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
|
+
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig$1, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig } from "@farmfe/core";
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
|
+
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig$1, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
2
1
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
2
1
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
2
1
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
3
|
+
import { Plugin } from "./plugin.cjs";
|
|
3
4
|
import { TSConfig } from "./tsconfig.cjs";
|
|
4
5
|
import { PluginContext } from "./context.cjs";
|
|
5
|
-
import { Plugin } from "./plugin.cjs";
|
|
6
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
-
import { PreviewOptions } from "vite";
|
|
8
6
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
7
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
8
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
9
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
11
10
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
11
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
12
|
import { DateString } from "compatx";
|
|
13
|
+
import { PreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
1
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
3
|
+
import { Plugin } from "./plugin.mjs";
|
|
3
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
4
5
|
import { PluginContext } from "./context.mjs";
|
|
5
|
-
import { Plugin } from "./plugin.mjs";
|
|
6
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
-
import { PreviewOptions } from "vite";
|
|
8
6
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
7
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
8
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
9
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
11
10
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
11
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
12
|
import { DateString } from "compatx";
|
|
13
|
+
import { PreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
3
|
-
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
4
|
-
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
2
|
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
6
3
|
import { Plugin } from "./plugin.cjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
|
+
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
6
|
+
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
7
7
|
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
-
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
9
8
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
9
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
11
10
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -15,6 +14,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
15
14
|
import { Range } from "semver";
|
|
16
15
|
import { Project } from "ts-morph";
|
|
17
16
|
import { RequestInfo, Response } from "undici";
|
|
17
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
3
|
-
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
4
|
-
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
2
|
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
6
3
|
import { Plugin } from "./plugin.mjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
|
+
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
|
+
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
7
7
|
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
-
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
9
8
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
9
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
11
10
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -15,6 +14,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
15
14
|
import { Range } from "semver";
|
|
16
15
|
import { Project } from "ts-morph";
|
|
17
16
|
import { RequestInfo, Response } from "undici";
|
|
17
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.cjs";
|
|
2
|
-
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
3
2
|
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
3
|
+
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
-
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
3
2
|
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
3
|
+
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
5
2
|
import { CommandType } from "./commands.cjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
6
4
|
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
7
|
-
import {
|
|
5
|
+
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
6
|
+
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
8
7
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
-
import { LoadResult } from "rollup";
|
|
10
8
|
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
5
2
|
import { CommandType } from "./commands.mjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
6
4
|
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
7
|
-
import {
|
|
5
|
+
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
6
|
+
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
8
7
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
-
import { LoadResult } from "rollup";
|
|
10
8
|
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
5
4
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
5
|
import { AssetGlob } from "@stryke/types/file";
|
|
6
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../powerlines/src/types/resolved.d.ts
|
|
9
9
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
5
4
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
5
|
import { AssetGlob } from "@stryke/types/file";
|
|
6
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../powerlines/src/types/resolved.d.ts
|
|
9
9
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.cjs";
|
|
2
2
|
import { InferResolvedConfig } from "./resolved.cjs";
|
|
3
|
-
import { Context } from "./context.cjs";
|
|
4
3
|
import { API } from "./api.cjs";
|
|
5
4
|
import { PluginHook } from "./plugin.cjs";
|
|
5
|
+
import { Context } from "./context.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
|
|
2
2
|
import { InferResolvedConfig } from "./resolved.mjs";
|
|
3
|
-
import { Context } from "./context.mjs";
|
|
4
3
|
import { API } from "./api.mjs";
|
|
5
4
|
import { PluginHook } from "./plugin.mjs";
|
|
5
|
+
import { Context } from "./context.mjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
|
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 };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./plugin.mjs";
|
|
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
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserConfig } from "../powerlines/src/types/config.cjs";
|
|
2
1
|
import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
3
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
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
1
|
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
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
|
|
@@ -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.170",
|
|
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.31",
|
|
132
132
|
"defu": "^6.1.4",
|
|
133
133
|
"pluralize": "^8.0.0",
|
|
134
|
-
"powerlines": "^0.37.
|
|
134
|
+
"powerlines": "^0.37.44"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
137
|
+
"@powerlines/plugin-plugin": "^0.12.122",
|
|
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": "e4860aa4ebc657acfef8a8f2399108f0badc520c"
|
|
143
143
|
}
|