@powerlines/plugin-env 0.15.11 → 0.15.13
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/babel/plugin.d.mts +1 -1
- package/dist/helpers/load.d.mts +1 -1
- package/dist/helpers/persistence.cjs +3 -1
- package/dist/helpers/persistence.mjs +3 -1
- package/dist/helpers/reflect.cjs +2 -2
- package/dist/helpers/reflect.mjs +2 -2
- package/dist/index.d.mts +0 -1
- package/dist/plugin-alloy/src/types/components.d.mts +0 -1
- package/dist/plugin-alloy/src/types/plugin.d.cts +1 -1
- package/dist/plugin-alloy/src/types/plugin.d.mts +1 -1
- package/dist/plugin-automd/src/types/plugin.d.mts +1 -1
- package/dist/plugin-babel/src/types/plugin.d.cts +1 -1
- package/dist/plugin-babel/src/types/plugin.d.mts +1 -1
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +1 -1
- package/dist/powerlines/src/lib/build/esbuild.cjs +1 -1
- package/dist/powerlines/src/lib/build/esbuild.mjs +1 -1
- package/dist/powerlines/src/types/api.d.cts +1 -1
- package/dist/powerlines/src/types/api.d.mts +1 -1
- 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 +3 -3
- package/dist/powerlines/src/types/config.d.mts +3 -3
- package/dist/powerlines/src/types/context.d.cts +3 -3
- package/dist/powerlines/src/types/context.d.mts +3 -3
- 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/index.d.mts +6 -6
- 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 +2 -2
- package/package.json +9 -9
- package/dist/powerlines/schemas/fs.d.mts +0 -1
- package/dist/powerlines/src/api.d.mts +0 -7
- package/dist/powerlines/src/index.d.mts +0 -15
package/dist/babel/plugin.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclareBabelTransformPluginReturn } from "../powerlines/src/types/babel.mjs";
|
|
2
|
-
import "../powerlines/src/index.mjs";
|
|
3
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
|
|
3
|
+
import "../powerlines/src/types/index.mjs";
|
|
4
4
|
import "../index.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/babel/plugin.d.ts
|
package/dist/helpers/load.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnvironmentResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
2
|
-
import "../powerlines/src/index.mjs";
|
|
3
2
|
import { EnvPluginContext, EnvPluginOptions } from "../types/plugin.mjs";
|
|
3
|
+
import "../powerlines/src/types/index.mjs";
|
|
4
4
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/load.d.ts
|
|
@@ -21,7 +21,9 @@ let node_fs = require("node:fs");
|
|
|
21
21
|
* @returns The runtime type definition file for the environment variables.
|
|
22
22
|
*/
|
|
23
23
|
async function resolveRuntimeTypeFile(context) {
|
|
24
|
-
|
|
24
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
25
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
26
|
+
return resolved;
|
|
25
27
|
}
|
|
26
28
|
resolveRuntimeTypeFile.__type = [
|
|
27
29
|
() => require_context.__ΩUnresolvedContext,
|
|
@@ -19,7 +19,9 @@ import { existsSync } from "node:fs";
|
|
|
19
19
|
* @returns The runtime type definition file for the environment variables.
|
|
20
20
|
*/
|
|
21
21
|
async function resolveRuntimeTypeFile(context) {
|
|
22
|
-
|
|
22
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
23
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
24
|
+
return resolved;
|
|
23
25
|
}
|
|
24
26
|
resolveRuntimeTypeFile.__type = [
|
|
25
27
|
() => __ΩUnresolvedContext,
|
package/dist/helpers/reflect.cjs
CHANGED
|
@@ -213,7 +213,7 @@ async function reflectEnv(context, file, name) {
|
|
|
213
213
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
214
214
|
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
215
215
|
name
|
|
216
|
-
}
|
|
216
|
+
}));
|
|
217
217
|
const defaultConfigType = await require_reflect_type.reflectType(context, await require_helpers_persistence.getEnvDefaultTypeDefinition(context));
|
|
218
218
|
return mergeEnvReflections(context, [
|
|
219
219
|
await require_helpers_persistence.readEnvTypeReflection(context, "env"),
|
|
@@ -234,7 +234,7 @@ async function reflectSecrets(context, file, name) {
|
|
|
234
234
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
235
235
|
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
236
236
|
name
|
|
237
|
-
}
|
|
237
|
+
}));
|
|
238
238
|
const defaultSecretsType = await require_reflect_type.reflectType(context, await require_helpers_persistence.getSecretsDefaultTypeDefinition(context));
|
|
239
239
|
return mergeSecretsReflections(context, [
|
|
240
240
|
await require_helpers_persistence.readSecretsReflection(context),
|
package/dist/helpers/reflect.mjs
CHANGED
|
@@ -212,7 +212,7 @@ async function reflectEnv(context, file, name) {
|
|
|
212
212
|
if (file) config = resolveClassType(await reflectType(context, {
|
|
213
213
|
file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
|
|
214
214
|
name
|
|
215
|
-
}
|
|
215
|
+
}));
|
|
216
216
|
const defaultConfigType = await reflectType(context, await getEnvDefaultTypeDefinition(context));
|
|
217
217
|
return mergeEnvReflections(context, [
|
|
218
218
|
await readEnvTypeReflection(context, "env"),
|
|
@@ -233,7 +233,7 @@ async function reflectSecrets(context, file, name) {
|
|
|
233
233
|
if (file) config = resolveClassType(await reflectType(context, {
|
|
234
234
|
file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
|
|
235
235
|
name
|
|
236
|
-
}
|
|
236
|
+
}));
|
|
237
237
|
const defaultSecretsType = await reflectType(context, await getSecretsDefaultTypeDefinition(context));
|
|
238
238
|
return mergeSecretsReflections(context, [
|
|
239
239
|
await readSecretsReflection(context),
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
|
-
import "./powerlines/src/index.mjs";
|
|
3
2
|
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
|
|
4
3
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
|
|
5
4
|
import { EnvDocs } from "./components/docs.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
|
|
2
1
|
import { UserConfig } from "../../../powerlines/src/types/config.cjs";
|
|
2
|
+
import { ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
|
|
3
3
|
import { PluginContext } from "../../../powerlines/src/types/context.cjs";
|
|
4
4
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
2
1
|
import { UserConfig } from "../../../powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
3
3
|
import { PluginContext } from "../../../powerlines/src/types/context.mjs";
|
|
4
4
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../powerlines/src/types/resolved.mjs";
|
|
2
1
|
import "../../../powerlines/src/types/config.mjs";
|
|
2
|
+
import "../../../powerlines/src/types/resolved.mjs";
|
|
3
3
|
import "../../../powerlines/src/types/context.mjs";
|
|
4
4
|
import { TOCOptions } from "./toc.mjs";
|
|
5
5
|
import { Config } from "automd";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
|
|
2
1
|
import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.cjs";
|
|
2
|
+
import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
|
|
3
3
|
import { PluginContext } from "../../../powerlines/src/types/context.cjs";
|
|
4
4
|
|
|
5
5
|
//#region ../plugin-babel/src/types/plugin.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
2
1
|
import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.mjs";
|
|
2
|
+
import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
3
3
|
import { PluginContext } from "../../../powerlines/src/types/context.mjs";
|
|
4
4
|
|
|
5
5
|
//#region ../plugin-babel/src/types/plugin.d.ts
|
|
@@ -38,7 +38,7 @@ const DEFAULT_ESBUILD_CONFIG = {
|
|
|
38
38
|
function resolveESBuildEntry(context, entryPoints = []) {
|
|
39
39
|
return entryPoints.reduce(__assignType((ret, entry) => {
|
|
40
40
|
if ((0, __stryke_type_checks_is_string.isString)(entry)) ret[(0, __stryke_path_replace.replaceExtension)((0, __stryke_path_replace.replacePath)(entry, context.config.sourceRoot || context.config.projectRoot))] = (0, __stryke_path_replace.replacePath)(entry, context.config.sourceRoot || context.config.projectRoot);
|
|
41
|
-
else ret[entry.output || require_entry.resolveEntryOutput(context, entry.input
|
|
41
|
+
else ret[entry.output || require_entry.resolveEntryOutput(context, entry.input ?? entry)] = require_entry.resolveEntryInputFile(context, entry.input ?? entry);
|
|
42
42
|
return ret;
|
|
43
43
|
}, [
|
|
44
44
|
"ret",
|
|
@@ -36,7 +36,7 @@ const DEFAULT_ESBUILD_CONFIG = {
|
|
|
36
36
|
function resolveESBuildEntry(context, entryPoints = []) {
|
|
37
37
|
return entryPoints.reduce(__assignType((ret, entry) => {
|
|
38
38
|
if (isString(entry)) ret[replaceExtension(replacePath(entry, context.config.sourceRoot || context.config.projectRoot))] = replacePath(entry, context.config.sourceRoot || context.config.projectRoot);
|
|
39
|
-
else ret[entry.output || resolveEntryOutput(context, entry.input
|
|
39
|
+
else ret[entry.output || resolveEntryOutput(context, entry.input ?? entry)] = resolveEntryInputFile(context, entry.input ?? entry);
|
|
40
40
|
return ret;
|
|
41
41
|
}, [
|
|
42
42
|
"ret",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.cjs";
|
|
2
1
|
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
3
2
|
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.cjs";
|
|
4
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
5
5
|
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.mjs";
|
|
2
1
|
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
3
2
|
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.mjs";
|
|
4
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
5
5
|
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
6
6
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig
|
|
1
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
2
|
+
import { UserConfig } 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 { UserConfig as UserConfig$2 } from "
|
|
8
|
+
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
|
+
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
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, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig$2, "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 & BuildResolvedConfig;
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig$2 & 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$1, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$1 & 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
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig & 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
1
|
import { BuildOptions } from "esbuild";
|
|
2
|
-
import {
|
|
3
|
-
import { UserConfig
|
|
2
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
3
|
+
import { UserConfig } from "@farmfe/core";
|
|
4
4
|
import { Configuration } from "@rspack/core";
|
|
5
5
|
import { BuildOptions as BuildOptions$1 } from "@storm-software/tsup/types";
|
|
6
6
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import { UserConfig as UserConfig$2 } from "
|
|
8
|
+
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
|
+
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
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, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig$2, "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 & BuildResolvedConfig;
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig$2 & 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$1, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions$1 & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$1, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$1 & 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
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
2
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import "./context.mjs";
|
|
2
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
3
2
|
import { ArrayValues } from "@stryke/types/array";
|
|
3
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
4
4
|
|
|
5
5
|
//#region ../powerlines/src/types/commands.d.ts
|
|
6
6
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { BabelTransformPluginOptions } from "./babel.cjs";
|
|
2
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
|
+
import { BabelTransformPluginOptions } from "./babel.cjs";
|
|
3
3
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
4
|
-
import { Plugin } from "./plugin.cjs";
|
|
5
4
|
import { TSConfig } from "./tsconfig.cjs";
|
|
6
5
|
import { PluginContext } from "./context.cjs";
|
|
6
|
+
import { Plugin } from "./plugin.cjs";
|
|
7
7
|
import { MaybePromise } from "@stryke/types/base";
|
|
8
|
+
import { PreviewOptions } from "vite";
|
|
8
9
|
import { transformAsync } from "@babel/core";
|
|
9
10
|
import { Format } from "@storm-software/build-tools/types";
|
|
10
11
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
@@ -12,7 +13,6 @@ import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
|
12
13
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
14
|
import { AssetGlob } from "@stryke/types/file";
|
|
14
15
|
import { DateString } from "compatx";
|
|
15
|
-
import { PreviewOptions } from "vite";
|
|
16
16
|
|
|
17
17
|
//#region ../powerlines/src/types/config.d.ts
|
|
18
18
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
2
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
|
+
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
3
3
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
4
|
-
import { Plugin } from "./plugin.mjs";
|
|
5
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
6
5
|
import { PluginContext } from "./context.mjs";
|
|
6
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
7
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
8
|
import "c12";
|
|
9
9
|
import { transformAsync } from "@babel/core";
|
|
10
10
|
import { MaybePromise } from "@stryke/types/base";
|
|
11
|
+
import { PreviewOptions } from "vite";
|
|
11
12
|
import { Format } from "@storm-software/build-tools/types";
|
|
12
13
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
13
14
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
14
15
|
import { AssetGlob } from "@stryke/types/file";
|
|
15
16
|
import { DateString } from "compatx";
|
|
16
|
-
import { PreviewOptions } from "vite";
|
|
17
17
|
|
|
18
18
|
//#region ../powerlines/src/types/config.d.ts
|
|
19
19
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
3
|
-
import { Plugin } from "./plugin.cjs";
|
|
4
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
5
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
6
4
|
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
6
|
+
import { Plugin } from "./plugin.cjs";
|
|
7
7
|
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
9
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
10
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -14,7 +15,6 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
14
15
|
import { Range } from "semver";
|
|
15
16
|
import { Project } from "ts-morph";
|
|
16
17
|
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,10 +1,11 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
3
|
-
import { Plugin } from "./plugin.mjs";
|
|
4
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
5
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
6
4
|
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
6
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
7
|
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
9
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
10
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -14,7 +15,6 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
14
15
|
import { Range } from "semver";
|
|
15
16
|
import { Project } from "ts-morph";
|
|
16
17
|
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 { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.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 { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BabelPluginPass, BabelTransformPlugin, BabelTransformPluginFilter, BabelTransformPluginOptions, DeclareBabelTransformPluginReturn } from "./babel.mjs";
|
|
2
1
|
import { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
|
+
import { BabelPluginPass, BabelTransformPlugin, BabelTransformPluginFilter, BabelTransformPluginOptions, DeclareBabelTransformPluginReturn } from "./babel.mjs";
|
|
3
3
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileMetadata, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
4
|
-
import { CommandType, SUPPORTED_COMMANDS } from "./commands.mjs";
|
|
5
|
-
import { BabelResolvedConfig, ESBuildResolvedConfig, EnvironmentResolvedConfig, FarmResolvedConfig, InferResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, RolldownResolvedConfig, RollupResolvedConfig, RspackResolvedConfig, TsdownResolvedConfig, TsupResolvedConfig, UnbuildResolvedConfig, ViteResolvedConfig, WebpackResolvedConfig } from "./resolved.mjs";
|
|
6
|
-
import { InferUnpluginOptions, UnpluginOptions } from "./unplugin.mjs";
|
|
7
|
-
import { Plugin, PluginHook, PluginHookFields, PluginHookFunctions, PluginHookObject, PluginHooks, TypesResult } from "./plugin.mjs";
|
|
8
4
|
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from "./tsconfig.mjs";
|
|
9
5
|
import { BabelUserConfig, BaseConfig, BuildInlineConfig, CleanInlineConfig, CommonUserConfig, DeployConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig } from "./config.mjs";
|
|
10
6
|
import { HookFields, HookListOrders, HooksList, InferHookFunction, InferHookParameters, InferHookReturnType, InferHooksListItem, PluginHooksList, PluginHooksListItem, UnpluginHookFunctions, UnpluginHookList, UnpluginHookVariant, UnpluginHookVariantField, UnpluginHooksListItem } from "./hooks.mjs";
|
|
7
|
+
import { BabelResolvedConfig, ESBuildResolvedConfig, EnvironmentResolvedConfig, FarmResolvedConfig, InferResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, RolldownResolvedConfig, RollupResolvedConfig, RspackResolvedConfig, TsdownResolvedConfig, TsupResolvedConfig, UnbuildResolvedConfig, ViteResolvedConfig, WebpackResolvedConfig } from "./resolved.mjs";
|
|
11
8
|
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, TransformResult, UnresolvedContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
12
|
-
import {
|
|
9
|
+
import { CommandType, SUPPORTED_COMMANDS } from "./commands.mjs";
|
|
10
|
+
import { API } from "./api.mjs";
|
|
11
|
+
import { InferUnpluginOptions, UnpluginOptions } from "./unplugin.mjs";
|
|
12
|
+
import { Plugin, PluginHook, PluginHookFields, PluginHookFunctions, PluginHookObject, PluginHooks, TypesResult } from "./plugin.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { CommandType } from "./commands.cjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
5
2
|
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
6
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
5
|
+
import { CommandType } from "./commands.cjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
7
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
7
8
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
8
|
-
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
9
|
import { LoadResult } from "rollup";
|
|
10
|
-
import {
|
|
10
|
+
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
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 { CommandType } from "./commands.mjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
5
2
|
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
6
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
5
|
+
import { CommandType } from "./commands.mjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
7
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
7
8
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
8
|
-
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
9
|
import { LoadResult } from "rollup";
|
|
10
|
-
import {
|
|
10
|
+
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
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 { BabelUserConfig, 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";
|
|
4
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
6
|
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 { BabelUserConfig, 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";
|
|
4
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
6
|
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 { PluginHook } from "./plugin.cjs";
|
|
4
3
|
import { Context } from "./context.cjs";
|
|
5
4
|
import { API } from "./api.cjs";
|
|
5
|
+
import { PluginHook } from "./plugin.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
-
import { InferResolvedConfig } from "./resolved.mjs";
|
|
3
|
-
import { PluginHook } from "./plugin.mjs";
|
|
4
2
|
import "./config.mjs";
|
|
3
|
+
import { InferResolvedConfig } from "./resolved.mjs";
|
|
5
4
|
import { Context } from "./context.mjs";
|
|
6
5
|
import { API } from "./api.mjs";
|
|
6
|
+
import { PluginHook } from "./plugin.mjs";
|
|
7
7
|
import { MaybePromise } from "@stryke/types/base";
|
|
8
8
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"repository": {
|
|
@@ -193,10 +193,10 @@
|
|
|
193
193
|
"@alloy-js/json": "^0.22.0",
|
|
194
194
|
"@babel/core": "^7.28.5",
|
|
195
195
|
"@babel/types": "^7.28.5",
|
|
196
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
197
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
198
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
199
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
196
|
+
"@powerlines/plugin-alloy": "^0.18.10",
|
|
197
|
+
"@powerlines/plugin-automd": "^0.1.128",
|
|
198
|
+
"@powerlines/plugin-babel": "^0.12.137",
|
|
199
|
+
"@powerlines/plugin-plugin": "^0.12.80",
|
|
200
200
|
"@storm-software/config-tools": "^1.188.75",
|
|
201
201
|
"@stryke/capnp": "^0.12.52",
|
|
202
202
|
"@stryke/env": "^0.20.44",
|
|
@@ -206,14 +206,14 @@
|
|
|
206
206
|
"@stryke/type-checks": "^0.5.15",
|
|
207
207
|
"@stryke/types": "^0.10.29",
|
|
208
208
|
"automd": "^0.4.2",
|
|
209
|
-
"powerlines": "^0.37.
|
|
209
|
+
"powerlines": "^0.37.2"
|
|
210
210
|
},
|
|
211
211
|
"devDependencies": {
|
|
212
|
-
"@powerlines/deepkit": "^0.5.
|
|
213
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
212
|
+
"@powerlines/deepkit": "^0.5.43",
|
|
213
|
+
"@powerlines/plugin-deepkit": "^0.11.4",
|
|
214
214
|
"@types/node": "^24.10.4",
|
|
215
215
|
"vite": "8.0.0-beta.2"
|
|
216
216
|
},
|
|
217
217
|
"publishConfig": { "access": "public" },
|
|
218
|
-
"gitHead": "
|
|
218
|
+
"gitHead": "5a9bfc9333eca98a453682f39a04a0d642930a50"
|
|
219
219
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@stryke/capnp";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BabelPluginPass, BabelTransformPlugin, BabelTransformPluginFilter, BabelTransformPluginOptions, DeclareBabelTransformPluginReturn } from "./types/babel.mjs";
|
|
2
|
-
import { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./types/build.mjs";
|
|
3
|
-
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileMetadata, VirtualFileSystemInterface, WriteOptions } from "./types/fs.mjs";
|
|
4
|
-
import { CommandType, SUPPORTED_COMMANDS } from "./types/commands.mjs";
|
|
5
|
-
import { BabelResolvedConfig, ESBuildResolvedConfig, EnvironmentResolvedConfig, FarmResolvedConfig, InferResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, RolldownResolvedConfig, RollupResolvedConfig, RspackResolvedConfig, TsdownResolvedConfig, TsupResolvedConfig, UnbuildResolvedConfig, ViteResolvedConfig, WebpackResolvedConfig } from "./types/resolved.mjs";
|
|
6
|
-
import { InferUnpluginOptions, UnpluginOptions } from "./types/unplugin.mjs";
|
|
7
|
-
import { Plugin, PluginHook, PluginHookFields, PluginHookFunctions, PluginHookObject, PluginHooks, TypesResult } from "./types/plugin.mjs";
|
|
8
|
-
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from "./types/tsconfig.mjs";
|
|
9
|
-
import { BabelUserConfig, BaseConfig, BuildInlineConfig, CleanInlineConfig, CommonUserConfig, DeployConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig } from "./types/config.mjs";
|
|
10
|
-
import { HookFields, HookListOrders, HooksList, InferHookFunction, InferHookParameters, InferHookReturnType, InferHooksListItem, PluginHooksList, PluginHooksListItem, UnpluginHookFunctions, UnpluginHookList, UnpluginHookVariant, UnpluginHookVariantField, UnpluginHooksListItem } from "./types/hooks.mjs";
|
|
11
|
-
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, TransformResult, UnresolvedContext, WithUnpluginBuildContext } from "./types/context.mjs";
|
|
12
|
-
import { API } from "./types/api.mjs";
|
|
13
|
-
import "./types/index.mjs";
|
|
14
|
-
import "./api.mjs";
|
|
15
|
-
import "../schemas/fs.mjs";
|