powerlines 0.37.3 → 0.37.4
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/{api-DClrDYWk.d.ts → api-CXFbHV-Z.d.ts} +1 -1
- package/dist/{api-CLQePK25.d.cts → api-D9jjGCj6.d.cts} +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/{chunk-UNIWU6XL.js → chunk-4CSEIV4A.js} +2 -2
- package/dist/{chunk-JQDMR7OP.cjs → chunk-57F6GT7H.cjs} +2 -2
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/lib/{chunk-ZHUC4GSS.js → chunk-3DYPJHNF.js} +3 -3
- package/dist/lib/{chunk-ZHUC4GSS.js.map → chunk-3DYPJHNF.js.map} +1 -1
- package/dist/lib/{chunk-BS33LX7M.js → chunk-7ZLMFCZF.js} +5 -2
- package/dist/lib/chunk-7ZLMFCZF.js.map +1 -0
- package/dist/lib/{chunk-SZJK753E.cjs → chunk-HUWGH27W.cjs} +4 -4
- package/dist/lib/{chunk-SZJK753E.cjs.map → chunk-HUWGH27W.cjs.map} +1 -1
- package/dist/lib/{chunk-FFISCX32.cjs → chunk-PD6TYAFZ.cjs} +5 -2
- package/dist/lib/chunk-PD6TYAFZ.cjs.map +1 -0
- package/dist/lib/index.cjs +4 -4
- package/dist/lib/index.js +2 -2
- package/dist/lib/utilities/bundle.cjs +2 -2
- package/dist/lib/utilities/bundle.js +1 -1
- package/dist/lib/utilities/index.cjs +4 -4
- package/dist/lib/utilities/index.js +2 -2
- package/dist/lib/utilities/resolve.cjs +3 -3
- package/dist/lib/utilities/resolve.js +2 -2
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/types/api.d.cts +1 -1
- package/dist/types/api.d.ts +1 -1
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.cjs +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.d.cts +1 -1
- package/dist/types/internal.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.ts +1 -1
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/package.json +2 -2
- package/dist/lib/chunk-BS33LX7M.js.map +0 -1
- package/dist/lib/chunk-FFISCX32.cjs.map +0 -1
|
@@ -994,7 +994,7 @@ declare type __ΩInferHookParameters = any[];
|
|
|
994
994
|
declare type __ΩInferHookThisType = any[];
|
|
995
995
|
|
|
996
996
|
/**
|
|
997
|
-
* The severity level of a
|
|
997
|
+
* The severity level of a log message.
|
|
998
998
|
*/
|
|
999
999
|
type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
|
|
1000
1000
|
declare const LogLevel: {
|
|
@@ -994,7 +994,7 @@ declare type __ΩInferHookParameters = any[];
|
|
|
994
994
|
declare type __ΩInferHookThisType = any[];
|
|
995
995
|
|
|
996
996
|
/**
|
|
997
|
-
* The severity level of a
|
|
997
|
+
* The severity level of a log message.
|
|
998
998
|
*/
|
|
999
999
|
type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
|
|
1000
1000
|
declare const LogLevel: {
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-
|
|
1
|
+
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-D9jjGCj6.cjs';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-
|
|
1
|
+
import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-CXFbHV-Z.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cz as ViteResolvedConfig } from './api-
|
|
2
|
+
import { cz as ViteResolvedConfig } from './api-D9jjGCj6.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/astro.d.ts
CHANGED
package/dist/esbuild.d.cts
CHANGED
package/dist/esbuild.d.ts
CHANGED
package/dist/farm.d.cts
CHANGED
package/dist/farm.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ require('./chunk-IHUNA3MO.cjs');
|
|
|
10
10
|
require('./chunk-YZZUOOPS.cjs');
|
|
11
11
|
require('./chunk-DFLNRC3B.cjs');
|
|
12
12
|
require('./chunk-4JCNAKOE.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunk57F6GT7H_cjs = require('./chunk-57F6GT7H.cjs');
|
|
14
14
|
var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
|
|
15
15
|
var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
|
|
16
16
|
var chunkE4QAO32M_cjs = require('./chunk-E4QAO32M.cjs');
|
|
@@ -34,7 +34,7 @@ var index_default = chunkE4QAO32M_cjs.PowerlinesAPI;
|
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "LogLevel", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk57F6GT7H_cjs.LogLevel; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "STORAGE_PRESETS", {
|
|
40
40
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.cjs';
|
|
2
|
-
import { ai as AnyUserConfig, U as UserConfig } from './api-
|
|
3
|
-
export { A as API, ba as APIContext, B as BabelPluginPass, cu as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, J as BabelUserConfig, M as BaseConfig, ad as BuildInlineConfig, bg as BuildPluginContext, ab as CleanInlineConfig, C as CommandType, v as Commands, T as CommonUserConfig, ah as ConfigEnv, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, K as DeployConfig, ag as DeployInlineConfig, af as DocsInlineConfig, cC as ESBuildResolvedConfig, a0 as ESBuildUserConfig, b7 as EmitEntryOptions, b6 as EmitOptions, Q as EnvironmentConfig, be as EnvironmentContext, bb as EnvironmentContextPlugin, cv as EnvironmentResolvedConfig, cI as FarmResolvedConfig, a4 as FarmUserConfig, b4 as FetchOptions, bG as HOOKS_LIST_ORDERS, bO as HookFields, bF as HookListOrders, bP as HooksList, I as ImportDefinition, h as ImportSpecifier, bR as InferHookFunction, bT as InferHookParameters, bS as InferHookReturnType, bU as InferHookThisType, bQ as InferHooksListItem, cJ as InferResolvedConfig, d0 as InferUnpluginOptions, a5 as InferUserConfig, b3 as InitContextOptions, a6 as InitialUserConfig, a9 as InlineConfig, ci as KNOWN_PLUGIN_FIELDS, ae as LintInlineConfig, L as LogFn, aX as LogLevel, aZ as MetaInfo, N as NamedImportDefinition, aa as NewInlineConfig, O as OutputConfig, cx as OutputResolvedConfig, cg as PLUGIN_HOOKS_FIELDS, ce as PLUGIN_NON_HOOK_FIELDS, b5 as ParseOptions, a7 as ParsedUserConfig, F as PartialPlugin, G as PartialPluginFactory, cd as Plugin, E as PluginConfig, z as PluginConfigObject, y as PluginConfigTuple, bf as PluginContext, P as PluginFactory, cj as PluginFields, c9 as PluginHook, ch as PluginHookFields, cb as PluginHookFunctions, c8 as PluginHookObject, cc as PluginHooks, bJ as PluginHooksList, bI as PluginHooksListItem, cf as PluginNonHookFields, a8 as PowerlinesCommand, ac as PrepareInlineConfig, H as ProjectType, cw as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cy as ResolvedConfig, ct as ResolvedEntryTypeDefinition, a_ as Resolver, cE as RolldownResolvedConfig, Z as RolldownUserConfig, cD as RollupResolvedConfig, Y as RollupUserConfig, cB as RspackResolvedConfig, X as RspackUserConfig, S as SUPPORTED_COMMANDS, bd as SelectHookResult, bc as SelectHookResultItem, b2 as SelectHooksOptions, b0 as SourceFile, a$ as TransformResult, cG as TsdownResolvedConfig, a3 as TsdownUserConfig, cF as TsupResolvedConfig, a2 as TsupUserConfig, ca as TypesResult, cH as UnbuildResolvedConfig, a1 as UnbuildUserConfig, b1 as UnimportContext, d2 as UnpluginFactory, bH as UnpluginHookFunctions, bL as UnpluginHookList, bN as UnpluginHookVariant, bM as UnpluginHookVariantField, bK as UnpluginHooksListItem, c$ as UnpluginOptions, d1 as UnpluginUserConfig, b8 as UnresolvedContext, cz as ViteResolvedConfig, $ as ViteUserConfig, cA as WebpackResolvedConfig, V as WebpackUserConfig, bh as WithUnpluginBuildContext, aY as WorkerProcess, W as WorkspaceConfig, _ as __ΩAPI, bx as __ΩAPIContext, aW as __ΩAnyUserConfig, l as __ΩBabelPluginPass, cL as __ΩBabelResolvedConfig, q as __ΩBabelTransformInput, n as __ΩBabelTransformPlugin, s as __ΩBabelTransformPluginBuilder, r as __ΩBabelTransformPluginBuilderParams, m as __ΩBabelTransformPluginFilter, o as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, av as __ΩBaseConfig, aR as __ΩBuildInlineConfig, bD as __ΩBuildPluginContext, aP as __ΩCleanInlineConfig, w as __ΩCommandType, x as __ΩCommands, ax as __ΩCommonUserConfig, aV as __ΩConfigEnv, bw as __ΩContext, t as __ΩDeclareBabelTransformPluginReturn, j as __ΩDefaultImportDefinition, at as __ΩDeployConfig, aU as __ΩDeployInlineConfig, aT as __ΩDocsInlineConfig, cT as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, bu as __ΩEmitEntryOptions, bt as __ΩEmitOptions, aw as __ΩEnvironmentConfig, bB as __ΩEnvironmentContext, by as __ΩEnvironmentContextPlugin, cM as __ΩEnvironmentResolvedConfig, cZ as __ΩFarmResolvedConfig, aI as __ΩFarmUserConfig, br as __ΩFetchOptions, c1 as __ΩHookFields, bV as __ΩHookListOrders, c2 as __ΩHooksList, k as __ΩImportDefinition, u as __ΩImportSpecifier, c4 as __ΩInferHookFunction, c6 as __ΩInferHookParameters, c5 as __ΩInferHookReturnType, c7 as __ΩInferHookThisType, c3 as __ΩInferHooksListItem, c_ as __ΩInferResolvedConfig, d4 as __ΩInferUnpluginOptions, aJ as __ΩInferUserConfig, bq as __ΩInitContextOptions, aK as __ΩInitialUserConfig, aN as __ΩInlineConfig, aS as __ΩLintInlineConfig, aj as __ΩLogFn, bi as __ΩLogLevel, bk as __ΩMetaInfo, i as __ΩNamedImportDefinition, aO as __ΩNewInlineConfig, au as __ΩOutputConfig, cO as __ΩOutputResolvedConfig, bs as __ΩParseOptions, aL as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, cp as __ΩPlugin, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bC as __ΩPluginContext, al as __ΩPluginFactory, cs as __ΩPluginFields, cl as __ΩPluginHook, cr as __ΩPluginHookFields, cn as __ΩPluginHookFunctions, ck as __ΩPluginHookObject, co as __ΩPluginHooks, bY as __ΩPluginHooksList, bX as __ΩPluginHooksListItem, cq as __ΩPluginNonHookFields, aM as __ΩPowerlinesCommand, aQ as __ΩPrepareInlineConfig, ar as __ΩProjectType, cN as __ΩResolvedAssetGlob, p as __ΩResolvedBabelTransformPluginOptions, cP as __ΩResolvedConfig, cK as __ΩResolvedEntryTypeDefinition, bl as __ΩResolver, cV as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cU as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cS as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bA as __ΩSelectHookResult, bz as __ΩSelectHookResultItem, bp as __ΩSelectHooksOptions, bn as __ΩSourceFile, bm as __ΩTransformResult, cX as __ΩTsdownResolvedConfig, aH as __ΩTsdownUserConfig, cW as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cm as __ΩTypesResult, cY as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bo as __ΩUnimportContext, d6 as __ΩUnpluginFactory, bW as __ΩUnpluginHookFunctions, b_ as __ΩUnpluginHookList, c0 as __ΩUnpluginHookVariant, b$ as __ΩUnpluginHookVariantField, bZ as __ΩUnpluginHooksListItem, d3 as __ΩUnpluginOptions, d5 as __ΩUnpluginUserConfig, bv as __ΩUnresolvedContext, ay as __ΩUserConfig, cQ as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cR as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bE as __ΩWithUnpluginBuildContext, bj as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from './api-
|
|
2
|
+
import { ai as AnyUserConfig, U as UserConfig } from './api-D9jjGCj6.cjs';
|
|
3
|
+
export { A as API, ba as APIContext, B as BabelPluginPass, cu as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, J as BabelUserConfig, M as BaseConfig, ad as BuildInlineConfig, bg as BuildPluginContext, ab as CleanInlineConfig, C as CommandType, v as Commands, T as CommonUserConfig, ah as ConfigEnv, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, K as DeployConfig, ag as DeployInlineConfig, af as DocsInlineConfig, cC as ESBuildResolvedConfig, a0 as ESBuildUserConfig, b7 as EmitEntryOptions, b6 as EmitOptions, Q as EnvironmentConfig, be as EnvironmentContext, bb as EnvironmentContextPlugin, cv as EnvironmentResolvedConfig, cI as FarmResolvedConfig, a4 as FarmUserConfig, b4 as FetchOptions, bG as HOOKS_LIST_ORDERS, bO as HookFields, bF as HookListOrders, bP as HooksList, I as ImportDefinition, h as ImportSpecifier, bR as InferHookFunction, bT as InferHookParameters, bS as InferHookReturnType, bU as InferHookThisType, bQ as InferHooksListItem, cJ as InferResolvedConfig, d0 as InferUnpluginOptions, a5 as InferUserConfig, b3 as InitContextOptions, a6 as InitialUserConfig, a9 as InlineConfig, ci as KNOWN_PLUGIN_FIELDS, ae as LintInlineConfig, L as LogFn, aX as LogLevel, aZ as MetaInfo, N as NamedImportDefinition, aa as NewInlineConfig, O as OutputConfig, cx as OutputResolvedConfig, cg as PLUGIN_HOOKS_FIELDS, ce as PLUGIN_NON_HOOK_FIELDS, b5 as ParseOptions, a7 as ParsedUserConfig, F as PartialPlugin, G as PartialPluginFactory, cd as Plugin, E as PluginConfig, z as PluginConfigObject, y as PluginConfigTuple, bf as PluginContext, P as PluginFactory, cj as PluginFields, c9 as PluginHook, ch as PluginHookFields, cb as PluginHookFunctions, c8 as PluginHookObject, cc as PluginHooks, bJ as PluginHooksList, bI as PluginHooksListItem, cf as PluginNonHookFields, a8 as PowerlinesCommand, ac as PrepareInlineConfig, H as ProjectType, cw as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cy as ResolvedConfig, ct as ResolvedEntryTypeDefinition, a_ as Resolver, cE as RolldownResolvedConfig, Z as RolldownUserConfig, cD as RollupResolvedConfig, Y as RollupUserConfig, cB as RspackResolvedConfig, X as RspackUserConfig, S as SUPPORTED_COMMANDS, bd as SelectHookResult, bc as SelectHookResultItem, b2 as SelectHooksOptions, b0 as SourceFile, a$ as TransformResult, cG as TsdownResolvedConfig, a3 as TsdownUserConfig, cF as TsupResolvedConfig, a2 as TsupUserConfig, ca as TypesResult, cH as UnbuildResolvedConfig, a1 as UnbuildUserConfig, b1 as UnimportContext, d2 as UnpluginFactory, bH as UnpluginHookFunctions, bL as UnpluginHookList, bN as UnpluginHookVariant, bM as UnpluginHookVariantField, bK as UnpluginHooksListItem, c$ as UnpluginOptions, d1 as UnpluginUserConfig, b8 as UnresolvedContext, cz as ViteResolvedConfig, $ as ViteUserConfig, cA as WebpackResolvedConfig, V as WebpackUserConfig, bh as WithUnpluginBuildContext, aY as WorkerProcess, W as WorkspaceConfig, _ as __ΩAPI, bx as __ΩAPIContext, aW as __ΩAnyUserConfig, l as __ΩBabelPluginPass, cL as __ΩBabelResolvedConfig, q as __ΩBabelTransformInput, n as __ΩBabelTransformPlugin, s as __ΩBabelTransformPluginBuilder, r as __ΩBabelTransformPluginBuilderParams, m as __ΩBabelTransformPluginFilter, o as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, av as __ΩBaseConfig, aR as __ΩBuildInlineConfig, bD as __ΩBuildPluginContext, aP as __ΩCleanInlineConfig, w as __ΩCommandType, x as __ΩCommands, ax as __ΩCommonUserConfig, aV as __ΩConfigEnv, bw as __ΩContext, t as __ΩDeclareBabelTransformPluginReturn, j as __ΩDefaultImportDefinition, at as __ΩDeployConfig, aU as __ΩDeployInlineConfig, aT as __ΩDocsInlineConfig, cT as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, bu as __ΩEmitEntryOptions, bt as __ΩEmitOptions, aw as __ΩEnvironmentConfig, bB as __ΩEnvironmentContext, by as __ΩEnvironmentContextPlugin, cM as __ΩEnvironmentResolvedConfig, cZ as __ΩFarmResolvedConfig, aI as __ΩFarmUserConfig, br as __ΩFetchOptions, c1 as __ΩHookFields, bV as __ΩHookListOrders, c2 as __ΩHooksList, k as __ΩImportDefinition, u as __ΩImportSpecifier, c4 as __ΩInferHookFunction, c6 as __ΩInferHookParameters, c5 as __ΩInferHookReturnType, c7 as __ΩInferHookThisType, c3 as __ΩInferHooksListItem, c_ as __ΩInferResolvedConfig, d4 as __ΩInferUnpluginOptions, aJ as __ΩInferUserConfig, bq as __ΩInitContextOptions, aK as __ΩInitialUserConfig, aN as __ΩInlineConfig, aS as __ΩLintInlineConfig, aj as __ΩLogFn, bi as __ΩLogLevel, bk as __ΩMetaInfo, i as __ΩNamedImportDefinition, aO as __ΩNewInlineConfig, au as __ΩOutputConfig, cO as __ΩOutputResolvedConfig, bs as __ΩParseOptions, aL as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, cp as __ΩPlugin, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bC as __ΩPluginContext, al as __ΩPluginFactory, cs as __ΩPluginFields, cl as __ΩPluginHook, cr as __ΩPluginHookFields, cn as __ΩPluginHookFunctions, ck as __ΩPluginHookObject, co as __ΩPluginHooks, bY as __ΩPluginHooksList, bX as __ΩPluginHooksListItem, cq as __ΩPluginNonHookFields, aM as __ΩPowerlinesCommand, aQ as __ΩPrepareInlineConfig, ar as __ΩProjectType, cN as __ΩResolvedAssetGlob, p as __ΩResolvedBabelTransformPluginOptions, cP as __ΩResolvedConfig, cK as __ΩResolvedEntryTypeDefinition, bl as __ΩResolver, cV as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cU as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cS as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bA as __ΩSelectHookResult, bz as __ΩSelectHookResultItem, bp as __ΩSelectHooksOptions, bn as __ΩSourceFile, bm as __ΩTransformResult, cX as __ΩTsdownResolvedConfig, aH as __ΩTsdownUserConfig, cW as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cm as __ΩTypesResult, cY as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bo as __ΩUnimportContext, d6 as __ΩUnpluginFactory, bW as __ΩUnpluginHookFunctions, b_ as __ΩUnpluginHookList, c0 as __ΩUnpluginHookVariant, b$ as __ΩUnpluginHookVariantField, bZ as __ΩUnpluginHooksListItem, d3 as __ΩUnpluginOptions, d5 as __ΩUnpluginUserConfig, bv as __ΩUnresolvedContext, ay as __ΩUserConfig, cQ as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cR as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bE as __ΩWithUnpluginBuildContext, bj as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from './api-D9jjGCj6.cjs';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
5
5
|
export { BUILDER_VARIANTS, BuildConfig, BuildResolvedConfig, BuilderVariant, BunBuildConfig, BunResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UNPLUGIN_BUILDER_VARIANTS, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuilderVariant, __ΩBunBuildConfig, __ΩBunResolvedBuildConfig, __Ω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.cjs';
|
|
6
6
|
export { ResolveOptions, STORAGE_PRESETS, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from './types/fs.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.js';
|
|
2
|
-
import { ai as AnyUserConfig, U as UserConfig } from './api-
|
|
3
|
-
export { A as API, ba as APIContext, B as BabelPluginPass, cu as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, J as BabelUserConfig, M as BaseConfig, ad as BuildInlineConfig, bg as BuildPluginContext, ab as CleanInlineConfig, C as CommandType, v as Commands, T as CommonUserConfig, ah as ConfigEnv, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, K as DeployConfig, ag as DeployInlineConfig, af as DocsInlineConfig, cC as ESBuildResolvedConfig, a0 as ESBuildUserConfig, b7 as EmitEntryOptions, b6 as EmitOptions, Q as EnvironmentConfig, be as EnvironmentContext, bb as EnvironmentContextPlugin, cv as EnvironmentResolvedConfig, cI as FarmResolvedConfig, a4 as FarmUserConfig, b4 as FetchOptions, bG as HOOKS_LIST_ORDERS, bO as HookFields, bF as HookListOrders, bP as HooksList, I as ImportDefinition, h as ImportSpecifier, bR as InferHookFunction, bT as InferHookParameters, bS as InferHookReturnType, bU as InferHookThisType, bQ as InferHooksListItem, cJ as InferResolvedConfig, d0 as InferUnpluginOptions, a5 as InferUserConfig, b3 as InitContextOptions, a6 as InitialUserConfig, a9 as InlineConfig, ci as KNOWN_PLUGIN_FIELDS, ae as LintInlineConfig, L as LogFn, aX as LogLevel, aZ as MetaInfo, N as NamedImportDefinition, aa as NewInlineConfig, O as OutputConfig, cx as OutputResolvedConfig, cg as PLUGIN_HOOKS_FIELDS, ce as PLUGIN_NON_HOOK_FIELDS, b5 as ParseOptions, a7 as ParsedUserConfig, F as PartialPlugin, G as PartialPluginFactory, cd as Plugin, E as PluginConfig, z as PluginConfigObject, y as PluginConfigTuple, bf as PluginContext, P as PluginFactory, cj as PluginFields, c9 as PluginHook, ch as PluginHookFields, cb as PluginHookFunctions, c8 as PluginHookObject, cc as PluginHooks, bJ as PluginHooksList, bI as PluginHooksListItem, cf as PluginNonHookFields, a8 as PowerlinesCommand, ac as PrepareInlineConfig, H as ProjectType, cw as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cy as ResolvedConfig, ct as ResolvedEntryTypeDefinition, a_ as Resolver, cE as RolldownResolvedConfig, Z as RolldownUserConfig, cD as RollupResolvedConfig, Y as RollupUserConfig, cB as RspackResolvedConfig, X as RspackUserConfig, S as SUPPORTED_COMMANDS, bd as SelectHookResult, bc as SelectHookResultItem, b2 as SelectHooksOptions, b0 as SourceFile, a$ as TransformResult, cG as TsdownResolvedConfig, a3 as TsdownUserConfig, cF as TsupResolvedConfig, a2 as TsupUserConfig, ca as TypesResult, cH as UnbuildResolvedConfig, a1 as UnbuildUserConfig, b1 as UnimportContext, d2 as UnpluginFactory, bH as UnpluginHookFunctions, bL as UnpluginHookList, bN as UnpluginHookVariant, bM as UnpluginHookVariantField, bK as UnpluginHooksListItem, c$ as UnpluginOptions, d1 as UnpluginUserConfig, b8 as UnresolvedContext, cz as ViteResolvedConfig, $ as ViteUserConfig, cA as WebpackResolvedConfig, V as WebpackUserConfig, bh as WithUnpluginBuildContext, aY as WorkerProcess, W as WorkspaceConfig, _ as __ΩAPI, bx as __ΩAPIContext, aW as __ΩAnyUserConfig, l as __ΩBabelPluginPass, cL as __ΩBabelResolvedConfig, q as __ΩBabelTransformInput, n as __ΩBabelTransformPlugin, s as __ΩBabelTransformPluginBuilder, r as __ΩBabelTransformPluginBuilderParams, m as __ΩBabelTransformPluginFilter, o as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, av as __ΩBaseConfig, aR as __ΩBuildInlineConfig, bD as __ΩBuildPluginContext, aP as __ΩCleanInlineConfig, w as __ΩCommandType, x as __ΩCommands, ax as __ΩCommonUserConfig, aV as __ΩConfigEnv, bw as __ΩContext, t as __ΩDeclareBabelTransformPluginReturn, j as __ΩDefaultImportDefinition, at as __ΩDeployConfig, aU as __ΩDeployInlineConfig, aT as __ΩDocsInlineConfig, cT as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, bu as __ΩEmitEntryOptions, bt as __ΩEmitOptions, aw as __ΩEnvironmentConfig, bB as __ΩEnvironmentContext, by as __ΩEnvironmentContextPlugin, cM as __ΩEnvironmentResolvedConfig, cZ as __ΩFarmResolvedConfig, aI as __ΩFarmUserConfig, br as __ΩFetchOptions, c1 as __ΩHookFields, bV as __ΩHookListOrders, c2 as __ΩHooksList, k as __ΩImportDefinition, u as __ΩImportSpecifier, c4 as __ΩInferHookFunction, c6 as __ΩInferHookParameters, c5 as __ΩInferHookReturnType, c7 as __ΩInferHookThisType, c3 as __ΩInferHooksListItem, c_ as __ΩInferResolvedConfig, d4 as __ΩInferUnpluginOptions, aJ as __ΩInferUserConfig, bq as __ΩInitContextOptions, aK as __ΩInitialUserConfig, aN as __ΩInlineConfig, aS as __ΩLintInlineConfig, aj as __ΩLogFn, bi as __ΩLogLevel, bk as __ΩMetaInfo, i as __ΩNamedImportDefinition, aO as __ΩNewInlineConfig, au as __ΩOutputConfig, cO as __ΩOutputResolvedConfig, bs as __ΩParseOptions, aL as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, cp as __ΩPlugin, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bC as __ΩPluginContext, al as __ΩPluginFactory, cs as __ΩPluginFields, cl as __ΩPluginHook, cr as __ΩPluginHookFields, cn as __ΩPluginHookFunctions, ck as __ΩPluginHookObject, co as __ΩPluginHooks, bY as __ΩPluginHooksList, bX as __ΩPluginHooksListItem, cq as __ΩPluginNonHookFields, aM as __ΩPowerlinesCommand, aQ as __ΩPrepareInlineConfig, ar as __ΩProjectType, cN as __ΩResolvedAssetGlob, p as __ΩResolvedBabelTransformPluginOptions, cP as __ΩResolvedConfig, cK as __ΩResolvedEntryTypeDefinition, bl as __ΩResolver, cV as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cU as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cS as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bA as __ΩSelectHookResult, bz as __ΩSelectHookResultItem, bp as __ΩSelectHooksOptions, bn as __ΩSourceFile, bm as __ΩTransformResult, cX as __ΩTsdownResolvedConfig, aH as __ΩTsdownUserConfig, cW as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cm as __ΩTypesResult, cY as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bo as __ΩUnimportContext, d6 as __ΩUnpluginFactory, bW as __ΩUnpluginHookFunctions, b_ as __ΩUnpluginHookList, c0 as __ΩUnpluginHookVariant, b$ as __ΩUnpluginHookVariantField, bZ as __ΩUnpluginHooksListItem, d3 as __ΩUnpluginOptions, d5 as __ΩUnpluginUserConfig, bv as __ΩUnresolvedContext, ay as __ΩUserConfig, cQ as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cR as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bE as __ΩWithUnpluginBuildContext, bj as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from './api-
|
|
2
|
+
import { ai as AnyUserConfig, U as UserConfig } from './api-CXFbHV-Z.js';
|
|
3
|
+
export { A as API, ba as APIContext, B as BabelPluginPass, cu as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, J as BabelUserConfig, M as BaseConfig, ad as BuildInlineConfig, bg as BuildPluginContext, ab as CleanInlineConfig, C as CommandType, v as Commands, T as CommonUserConfig, ah as ConfigEnv, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, K as DeployConfig, ag as DeployInlineConfig, af as DocsInlineConfig, cC as ESBuildResolvedConfig, a0 as ESBuildUserConfig, b7 as EmitEntryOptions, b6 as EmitOptions, Q as EnvironmentConfig, be as EnvironmentContext, bb as EnvironmentContextPlugin, cv as EnvironmentResolvedConfig, cI as FarmResolvedConfig, a4 as FarmUserConfig, b4 as FetchOptions, bG as HOOKS_LIST_ORDERS, bO as HookFields, bF as HookListOrders, bP as HooksList, I as ImportDefinition, h as ImportSpecifier, bR as InferHookFunction, bT as InferHookParameters, bS as InferHookReturnType, bU as InferHookThisType, bQ as InferHooksListItem, cJ as InferResolvedConfig, d0 as InferUnpluginOptions, a5 as InferUserConfig, b3 as InitContextOptions, a6 as InitialUserConfig, a9 as InlineConfig, ci as KNOWN_PLUGIN_FIELDS, ae as LintInlineConfig, L as LogFn, aX as LogLevel, aZ as MetaInfo, N as NamedImportDefinition, aa as NewInlineConfig, O as OutputConfig, cx as OutputResolvedConfig, cg as PLUGIN_HOOKS_FIELDS, ce as PLUGIN_NON_HOOK_FIELDS, b5 as ParseOptions, a7 as ParsedUserConfig, F as PartialPlugin, G as PartialPluginFactory, cd as Plugin, E as PluginConfig, z as PluginConfigObject, y as PluginConfigTuple, bf as PluginContext, P as PluginFactory, cj as PluginFields, c9 as PluginHook, ch as PluginHookFields, cb as PluginHookFunctions, c8 as PluginHookObject, cc as PluginHooks, bJ as PluginHooksList, bI as PluginHooksListItem, cf as PluginNonHookFields, a8 as PowerlinesCommand, ac as PrepareInlineConfig, H as ProjectType, cw as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cy as ResolvedConfig, ct as ResolvedEntryTypeDefinition, a_ as Resolver, cE as RolldownResolvedConfig, Z as RolldownUserConfig, cD as RollupResolvedConfig, Y as RollupUserConfig, cB as RspackResolvedConfig, X as RspackUserConfig, S as SUPPORTED_COMMANDS, bd as SelectHookResult, bc as SelectHookResultItem, b2 as SelectHooksOptions, b0 as SourceFile, a$ as TransformResult, cG as TsdownResolvedConfig, a3 as TsdownUserConfig, cF as TsupResolvedConfig, a2 as TsupUserConfig, ca as TypesResult, cH as UnbuildResolvedConfig, a1 as UnbuildUserConfig, b1 as UnimportContext, d2 as UnpluginFactory, bH as UnpluginHookFunctions, bL as UnpluginHookList, bN as UnpluginHookVariant, bM as UnpluginHookVariantField, bK as UnpluginHooksListItem, c$ as UnpluginOptions, d1 as UnpluginUserConfig, b8 as UnresolvedContext, cz as ViteResolvedConfig, $ as ViteUserConfig, cA as WebpackResolvedConfig, V as WebpackUserConfig, bh as WithUnpluginBuildContext, aY as WorkerProcess, W as WorkspaceConfig, _ as __ΩAPI, bx as __ΩAPIContext, aW as __ΩAnyUserConfig, l as __ΩBabelPluginPass, cL as __ΩBabelResolvedConfig, q as __ΩBabelTransformInput, n as __ΩBabelTransformPlugin, s as __ΩBabelTransformPluginBuilder, r as __ΩBabelTransformPluginBuilderParams, m as __ΩBabelTransformPluginFilter, o as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, av as __ΩBaseConfig, aR as __ΩBuildInlineConfig, bD as __ΩBuildPluginContext, aP as __ΩCleanInlineConfig, w as __ΩCommandType, x as __ΩCommands, ax as __ΩCommonUserConfig, aV as __ΩConfigEnv, bw as __ΩContext, t as __ΩDeclareBabelTransformPluginReturn, j as __ΩDefaultImportDefinition, at as __ΩDeployConfig, aU as __ΩDeployInlineConfig, aT as __ΩDocsInlineConfig, cT as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, bu as __ΩEmitEntryOptions, bt as __ΩEmitOptions, aw as __ΩEnvironmentConfig, bB as __ΩEnvironmentContext, by as __ΩEnvironmentContextPlugin, cM as __ΩEnvironmentResolvedConfig, cZ as __ΩFarmResolvedConfig, aI as __ΩFarmUserConfig, br as __ΩFetchOptions, c1 as __ΩHookFields, bV as __ΩHookListOrders, c2 as __ΩHooksList, k as __ΩImportDefinition, u as __ΩImportSpecifier, c4 as __ΩInferHookFunction, c6 as __ΩInferHookParameters, c5 as __ΩInferHookReturnType, c7 as __ΩInferHookThisType, c3 as __ΩInferHooksListItem, c_ as __ΩInferResolvedConfig, d4 as __ΩInferUnpluginOptions, aJ as __ΩInferUserConfig, bq as __ΩInitContextOptions, aK as __ΩInitialUserConfig, aN as __ΩInlineConfig, aS as __ΩLintInlineConfig, aj as __ΩLogFn, bi as __ΩLogLevel, bk as __ΩMetaInfo, i as __ΩNamedImportDefinition, aO as __ΩNewInlineConfig, au as __ΩOutputConfig, cO as __ΩOutputResolvedConfig, bs as __ΩParseOptions, aL as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, cp as __ΩPlugin, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bC as __ΩPluginContext, al as __ΩPluginFactory, cs as __ΩPluginFields, cl as __ΩPluginHook, cr as __ΩPluginHookFields, cn as __ΩPluginHookFunctions, ck as __ΩPluginHookObject, co as __ΩPluginHooks, bY as __ΩPluginHooksList, bX as __ΩPluginHooksListItem, cq as __ΩPluginNonHookFields, aM as __ΩPowerlinesCommand, aQ as __ΩPrepareInlineConfig, ar as __ΩProjectType, cN as __ΩResolvedAssetGlob, p as __ΩResolvedBabelTransformPluginOptions, cP as __ΩResolvedConfig, cK as __ΩResolvedEntryTypeDefinition, bl as __ΩResolver, cV as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cU as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cS as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bA as __ΩSelectHookResult, bz as __ΩSelectHookResultItem, bp as __ΩSelectHooksOptions, bn as __ΩSourceFile, bm as __ΩTransformResult, cX as __ΩTsdownResolvedConfig, aH as __ΩTsdownUserConfig, cW as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cm as __ΩTypesResult, cY as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bo as __ΩUnimportContext, d6 as __ΩUnpluginFactory, bW as __ΩUnpluginHookFunctions, b_ as __ΩUnpluginHookList, c0 as __ΩUnpluginHookVariant, b$ as __ΩUnpluginHookVariantField, bZ as __ΩUnpluginHooksListItem, d3 as __ΩUnpluginOptions, d5 as __ΩUnpluginUserConfig, bv as __ΩUnresolvedContext, ay as __ΩUserConfig, cQ as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cR as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bE as __ΩWithUnpluginBuildContext, bj as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from './api-CXFbHV-Z.js';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
5
5
|
export { BUILDER_VARIANTS, BuildConfig, BuildResolvedConfig, BuilderVariant, BunBuildConfig, BunResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UNPLUGIN_BUILDER_VARIANTS, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuilderVariant, __ΩBunBuildConfig, __ΩBunResolvedBuildConfig, __Ω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.js';
|
|
6
6
|
export { ResolveOptions, STORAGE_PRESETS, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from './types/fs.js';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import './chunk-AFJCY3R6.js';
|
|
|
6
6
|
import './chunk-PCCFAZML.js';
|
|
7
7
|
import './chunk-GIE6OE3X.js';
|
|
8
8
|
import './chunk-OYASPHNL.js';
|
|
9
|
-
export { LogLevel } from './chunk-
|
|
9
|
+
export { LogLevel } from './chunk-4CSEIV4A.js';
|
|
10
10
|
export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
|
|
11
11
|
export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
|
|
12
12
|
import { PowerlinesAPI } from './chunk-NM3AFEVI.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bundle } from './chunk-
|
|
1
|
+
import { bundle } from './chunk-7ZLMFCZF.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
4
4
|
import { isSetString } from '@stryke/type-checks/is-set-string';
|
|
@@ -24,5 +24,5 @@ async function resolve(context, type, overrides = {}) {
|
|
|
24
24
|
__name(resolve, "resolve");
|
|
25
25
|
|
|
26
26
|
export { resolve };
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-3DYPJHNF.js.map
|
|
28
|
+
//# sourceMappingURL=chunk-3DYPJHNF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,WAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,oBAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,MAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,MAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,WAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,oBAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,MAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,MAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-3DYPJHNF.js","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { bundle } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<TResult = any>(\n context: Context,\n type: TypeDefinitionParameter,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle(context, typeDefinition.file, overrides);\n\n const resolved = (await context.resolver.evalModule(result.text, {\n filename: result.path,\n forceTranspile: true\n })) as Record<string, any>;\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n return resolved[exportName] ?? resolved[`__Ω${exportName}`];\n}\n"]}
|
|
@@ -18,6 +18,9 @@ async function bundle(context, file, overrides = {}) {
|
|
|
18
18
|
splitting: false,
|
|
19
19
|
treeShaking: false,
|
|
20
20
|
bundle: true,
|
|
21
|
+
packages: "external",
|
|
22
|
+
platform: "node",
|
|
23
|
+
logLevel: "silent",
|
|
21
24
|
...overrides
|
|
22
25
|
});
|
|
23
26
|
if (result.errors.length > 0) {
|
|
@@ -34,5 +37,5 @@ async function bundle(context, file, overrides = {}) {
|
|
|
34
37
|
__name(bundle, "bundle");
|
|
35
38
|
|
|
36
39
|
export { bundle };
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-7ZLMFCZF.js.map
|
|
41
|
+
//# sourceMappingURL=chunk-7ZLMFCZF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utilities/bundle.ts"],"names":["bundle","context","file","overrides","path","fs","resolve","existsSync","Error","result","build","extractESBuildConfig","entryPoints","write","sourcemap","splitting","treeShaking","packages","platform","logLevel","errors","length","map","error","text","join","warnings","log","LogLevelLabel","WARN","warning","outputFiles","filter","Boolean"],"mappings":";;;;;AAgCA,eAAsBA,MAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,MAAMC,IAAAA,GAAO,MAAMH,OAAAA,CAAQI,EAAAA,CAAGC,QAAQJ,IAAAA,CAAAA;AACtC,EAAA,IAAI,CAACE,IAAAA,IAAQ,CAACH,QAAQI,EAAAA,CAAGE,UAAAA,CAAWH,IAAAA,CAAAA,EAAO;AACzC,IAAA,MAAM,IAAII,KAAAA,CACR,CAAA,mBAAA,EAAsBN,IAAAA,CAAAA,uCAAAA,CAA6C,CAAA;AAEvE,EAAA;AAEA,EAAA,MAAMO,MAAAA,GAAS,MAAMC,KAAAA,CAAM;AACzB,IAAA,GAAGC,qBAAqBV,OAAAA,CAAAA;IACxBW,WAAAA,EAAa;AAACR,MAAAA;;IACdS,KAAAA,EAAO,KAAA;IACPC,SAAAA,EAAW,KAAA;IACXC,SAAAA,EAAW,KAAA;IACXC,WAAAA,EAAa,KAAA;IACbhB,MAAAA,EAAQ,IAAA;IACRiB,QAAAA,EAAU,UAAA;IACVC,QAAAA,EAAU,MAAA;IACVC,QAAAA,EAAU,QAAA;IACV,GAAGhB;GACL,CAAA;AACA,EAAA,IAAIM,MAAAA,CAAOW,MAAAA,CAAOC,MAAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,MAAM,IAAIb,KAAAA,CACR,CAAA,oBAAA,EAAuBN,IAAAA,CAAAA,EAAAA,EAASO,OAAOW,MAAAA,CACpCE,GAAAA,CAAIC,CAAAA,KAAAA,KAASA,MAAMC,IAAI,CAAA,CACvBC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAIhB,MAAAA,CAAOiB,QAAAA,CAASL,MAAAA,GAAS,CAAA,EAAG;AAC9BpB,IAAAA,OAAAA,CAAQ0B,IACNC,aAAAA,CAAcC,IAAAA,EACd,CAAA,2BAAA,EAA8B3B,IAAAA,KAASO,MAAAA,CAAOiB,QAAAA,CAC3CJ,GAAAA,CAAIQ,CAAAA,YAAWA,OAAAA,CAAQN,IAAI,EAC3BC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAI,CAAChB,OAAOsB,WAAAA,IAAetB,MAAAA,CAAOsB,YAAYC,MAAAA,CAAOC,OAAAA,CAAAA,CAASZ,MAAAA,KAAW,CAAA,EAAG;AAC1E,IAAA,MAAM,IAAIb,KAAAA,CACR,CAAA,8BAAA,EACEN,IAAAA,CAAAA,+CAAAA,CAC+C,CAAA;AAErD,EAAA;AAEA,EAAA,OAAOO,MAAAA,CAAOsB,WAAAA,CAAYC,MAAAA,CAAOC,OAAAA,EAAS,CAAA,CAAA;AAC5C;AAjDsBjC,MAAAA,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA","file":"chunk-7ZLMFCZF.js","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { build, BuildOptions, OutputFile } from \"esbuild\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { extractESBuildConfig } from \"../build/esbuild\";\n\n/**\n * Bundle a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param file - The file path to bundle.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the bundled module.\n */\nexport async function bundle(\n context: Context,\n file: string,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<OutputFile> {\n const path = await context.fs.resolve(file);\n if (!path || !context.fs.existsSync(path)) {\n throw new Error(\n `Module not found: \"${file}\". Please check the path and try again.`\n );\n }\n\n const result = await build({\n ...extractESBuildConfig(context),\n entryPoints: [path],\n write: false,\n sourcemap: false,\n splitting: false,\n treeShaking: false,\n bundle: true,\n packages: \"external\",\n platform: \"node\",\n logLevel: \"silent\",\n ...overrides\n } as BuildOptions);\n if (result.errors.length > 0) {\n throw new Error(\n `Failed to transpile ${file}: ${result.errors\n .map(error => error.text)\n .join(\", \")}`\n );\n }\n if (result.warnings.length > 0) {\n context.log(\n LogLevelLabel.WARN,\n `Warnings while transpiling ${file}: ${result.warnings\n .map(warning => warning.text)\n .join(\", \")}`\n );\n }\n if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {\n throw new Error(\n `No output files generated for ${\n file\n }. Please check the configuration and try again.`\n );\n }\n\n return result.outputFiles.filter(Boolean)[0]!;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPD6TYAFZ_cjs = require('./chunk-PD6TYAFZ.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
6
6
|
var isSetString = require('@stryke/type-checks/is-set-string');
|
|
@@ -12,7 +12,7 @@ async function resolve(context, type, overrides = {}) {
|
|
|
12
12
|
} else {
|
|
13
13
|
typeDefinition = type;
|
|
14
14
|
}
|
|
15
|
-
const result = await
|
|
15
|
+
const result = await chunkPD6TYAFZ_cjs.bundle(context, typeDefinition.file, overrides);
|
|
16
16
|
const resolved = await context.resolver.evalModule(result.text, {
|
|
17
17
|
filename: result.path,
|
|
18
18
|
forceTranspile: true
|
|
@@ -26,5 +26,5 @@ async function resolve(context, type, overrides = {}) {
|
|
|
26
26
|
chunkPK6SKIKE_cjs.__name(resolve, "resolve");
|
|
27
27
|
|
|
28
28
|
exports.resolve = resolve;
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-HUWGH27W.cjs.map
|
|
30
|
+
//# sourceMappingURL=chunk-HUWGH27W.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,uBAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,wCAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,wBAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,wBAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,uBAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,wCAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,wBAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,wBAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-HUWGH27W.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { bundle } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<TResult = any>(\n context: Context,\n type: TypeDefinitionParameter,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle(context, typeDefinition.file, overrides);\n\n const resolved = (await context.resolver.evalModule(result.text, {\n filename: result.path,\n forceTranspile: true\n })) as Record<string, any>;\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n return resolved[exportName] ?? resolved[`__Ω${exportName}`];\n}\n"]}
|
|
@@ -20,6 +20,9 @@ async function bundle(context, file, overrides = {}) {
|
|
|
20
20
|
splitting: false,
|
|
21
21
|
treeShaking: false,
|
|
22
22
|
bundle: true,
|
|
23
|
+
packages: "external",
|
|
24
|
+
platform: "node",
|
|
25
|
+
logLevel: "silent",
|
|
23
26
|
...overrides
|
|
24
27
|
});
|
|
25
28
|
if (result.errors.length > 0) {
|
|
@@ -36,5 +39,5 @@ async function bundle(context, file, overrides = {}) {
|
|
|
36
39
|
chunkPK6SKIKE_cjs.__name(bundle, "bundle");
|
|
37
40
|
|
|
38
41
|
exports.bundle = bundle;
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-PD6TYAFZ.cjs.map
|
|
43
|
+
//# sourceMappingURL=chunk-PD6TYAFZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utilities/bundle.ts"],"names":["bundle","context","file","overrides","path","fs","resolve","existsSync","Error","result","build","extractESBuildConfig","entryPoints","write","sourcemap","splitting","treeShaking","packages","platform","logLevel","errors","length","map","error","text","join","warnings","log","LogLevelLabel","WARN","warning","outputFiles","filter","Boolean"],"mappings":";;;;;;;AAgCA,eAAsBA,MAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,MAAMC,IAAAA,GAAO,MAAMH,OAAAA,CAAQI,EAAAA,CAAGC,QAAQJ,IAAAA,CAAAA;AACtC,EAAA,IAAI,CAACE,IAAAA,IAAQ,CAACH,QAAQI,EAAAA,CAAGE,UAAAA,CAAWH,IAAAA,CAAAA,EAAO;AACzC,IAAA,MAAM,IAAII,KAAAA,CACR,CAAA,mBAAA,EAAsBN,IAAAA,CAAAA,uCAAAA,CAA6C,CAAA;AAEvE,EAAA;AAEA,EAAA,MAAMO,MAAAA,GAAS,MAAMC,aAAAA,CAAM;AACzB,IAAA,GAAGC,uCAAqBV,OAAAA,CAAAA;IACxBW,WAAAA,EAAa;AAACR,MAAAA;;IACdS,KAAAA,EAAO,KAAA;IACPC,SAAAA,EAAW,KAAA;IACXC,SAAAA,EAAW,KAAA;IACXC,WAAAA,EAAa,KAAA;IACbhB,MAAAA,EAAQ,IAAA;IACRiB,QAAAA,EAAU,UAAA;IACVC,QAAAA,EAAU,MAAA;IACVC,QAAAA,EAAU,QAAA;IACV,GAAGhB;GACL,CAAA;AACA,EAAA,IAAIM,MAAAA,CAAOW,MAAAA,CAAOC,MAAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,MAAM,IAAIb,KAAAA,CACR,CAAA,oBAAA,EAAuBN,IAAAA,CAAAA,EAAAA,EAASO,OAAOW,MAAAA,CACpCE,GAAAA,CAAIC,CAAAA,KAAAA,KAASA,MAAMC,IAAI,CAAA,CACvBC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAIhB,MAAAA,CAAOiB,QAAAA,CAASL,MAAAA,GAAS,CAAA,EAAG;AAC9BpB,IAAAA,OAAAA,CAAQ0B,IACNC,mBAAAA,CAAcC,IAAAA,EACd,CAAA,2BAAA,EAA8B3B,IAAAA,KAASO,MAAAA,CAAOiB,QAAAA,CAC3CJ,GAAAA,CAAIQ,CAAAA,YAAWA,OAAAA,CAAQN,IAAI,EAC3BC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAI,CAAChB,OAAOsB,WAAAA,IAAetB,MAAAA,CAAOsB,YAAYC,MAAAA,CAAOC,OAAAA,CAAAA,CAASZ,MAAAA,KAAW,CAAA,EAAG;AAC1E,IAAA,MAAM,IAAIb,KAAAA,CACR,CAAA,8BAAA,EACEN,IAAAA,CAAAA,+CAAAA,CAC+C,CAAA;AAErD,EAAA;AAEA,EAAA,OAAOO,MAAAA,CAAOsB,WAAAA,CAAYC,MAAAA,CAAOC,OAAAA,EAAS,CAAA,CAAA;AAC5C;AAjDsBjC,wBAAAA,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA","file":"chunk-PD6TYAFZ.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { build, BuildOptions, OutputFile } from \"esbuild\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { extractESBuildConfig } from \"../build/esbuild\";\n\n/**\n * Bundle a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param file - The file path to bundle.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the bundled module.\n */\nexport async function bundle(\n context: Context,\n file: string,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<OutputFile> {\n const path = await context.fs.resolve(file);\n if (!path || !context.fs.existsSync(path)) {\n throw new Error(\n `Module not found: \"${file}\". Please check the path and try again.`\n );\n }\n\n const result = await build({\n ...extractESBuildConfig(context),\n entryPoints: [path],\n write: false,\n sourcemap: false,\n splitting: false,\n treeShaking: false,\n bundle: true,\n packages: \"external\",\n platform: \"node\",\n logLevel: \"silent\",\n ...overrides\n } as BuildOptions);\n if (result.errors.length > 0) {\n throw new Error(\n `Failed to transpile ${file}: ${result.errors\n .map(error => error.text)\n .join(\", \")}`\n );\n }\n if (result.warnings.length > 0) {\n context.log(\n LogLevelLabel.WARN,\n `Warnings while transpiling ${file}: ${result.warnings\n .map(warning => warning.text)\n .join(\", \")}`\n );\n }\n if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {\n throw new Error(\n `No output files generated for ${\n file\n }. Please check the configuration and try again.`\n );\n }\n\n return result.outputFiles.filter(Boolean)[0]!;\n}\n"]}
|
package/dist/lib/index.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
require('./chunk-UYDY7RRQ.cjs');
|
|
4
4
|
var chunkRQICHHZM_cjs = require('./chunk-RQICHHZM.cjs');
|
|
5
5
|
var chunkNPSC73QO_cjs = require('./chunk-NPSC73QO.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkHUWGH27W_cjs = require('./chunk-HUWGH27W.cjs');
|
|
7
7
|
var chunkHYQXPNVP_cjs = require('./chunk-HYQXPNVP.cjs');
|
|
8
8
|
var chunkR56TN3SN_cjs = require('./chunk-R56TN3SN.cjs');
|
|
9
9
|
require('./chunk-3GMJQ5G3.cjs');
|
|
10
10
|
var chunkG3BXMS2V_cjs = require('./chunk-G3BXMS2V.cjs');
|
|
11
11
|
var chunkMFC7UJHT_cjs = require('./chunk-MFC7UJHT.cjs');
|
|
12
12
|
var chunkQVDESIYV_cjs = require('./chunk-QVDESIYV.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkPD6TYAFZ_cjs = require('./chunk-PD6TYAFZ.cjs');
|
|
14
14
|
require('./chunk-QMKA57N4.cjs');
|
|
15
15
|
require('./chunk-K3FDM5F3.cjs');
|
|
16
16
|
require('./chunk-XBOHJTOI.cjs');
|
|
@@ -54,7 +54,7 @@ Object.defineProperty(exports, "setCache", {
|
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "resolve", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkHUWGH27W_cjs.resolve; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "generateSourceMap", {
|
|
60
60
|
enumerable: true,
|
|
@@ -86,7 +86,7 @@ Object.defineProperty(exports, "createUnplugin", {
|
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "bundle", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkPD6TYAFZ_cjs.bundle; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "isolatedDeclarations", {
|
|
92
92
|
enumerable: true,
|
package/dist/lib/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './chunk-CLOW34EQ.js';
|
|
2
2
|
export { writeFile } from './chunk-HQ6TGY34.js';
|
|
3
3
|
export { getCache, setCache } from './chunk-MJ6WN3XA.js';
|
|
4
|
-
export { resolve } from './chunk-
|
|
4
|
+
export { resolve } from './chunk-3DYPJHNF.js';
|
|
5
5
|
export { generateSourceMap } from './chunk-OC2AD37X.js';
|
|
6
6
|
export { Worker, createWorker } from './chunk-OZKNYQEG.js';
|
|
7
7
|
import './chunk-4BPHC6QQ.js';
|
|
8
8
|
export { createUnpluginFactory } from './chunk-TO3SBSXL.js';
|
|
9
9
|
export { getBaseFileHeader, getFileHeader } from './chunk-7R23HVGQ.js';
|
|
10
10
|
export { createUnplugin } from './chunk-I7BLJZ4D.js';
|
|
11
|
-
export { bundle } from './chunk-
|
|
11
|
+
export { bundle } from './chunk-7ZLMFCZF.js';
|
|
12
12
|
import './chunk-FJMP4CXA.js';
|
|
13
13
|
import './chunk-GTNYRHTO.js';
|
|
14
14
|
import './chunk-DQJCGJ5P.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPD6TYAFZ_cjs = require('../chunk-PD6TYAFZ.cjs');
|
|
4
4
|
require('../chunk-TAHP4BEC.cjs');
|
|
5
5
|
require('../chunk-FQZQA4EJ.cjs');
|
|
6
6
|
require('../chunk-YF57WETC.cjs');
|
|
@@ -10,7 +10,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "bundle", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkPD6TYAFZ_cjs.bundle; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=bundle.cjs.map
|
|
16
16
|
//# sourceMappingURL=bundle.cjs.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
require('../chunk-UYDY7RRQ.cjs');
|
|
4
4
|
var chunkRQICHHZM_cjs = require('../chunk-RQICHHZM.cjs');
|
|
5
5
|
var chunkNPSC73QO_cjs = require('../chunk-NPSC73QO.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkHUWGH27W_cjs = require('../chunk-HUWGH27W.cjs');
|
|
7
7
|
var chunkHYQXPNVP_cjs = require('../chunk-HYQXPNVP.cjs');
|
|
8
8
|
var chunkR56TN3SN_cjs = require('../chunk-R56TN3SN.cjs');
|
|
9
9
|
var chunkMFC7UJHT_cjs = require('../chunk-MFC7UJHT.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkPD6TYAFZ_cjs = require('../chunk-PD6TYAFZ.cjs');
|
|
11
11
|
var chunkBJGMF356_cjs = require('../chunk-BJGMF356.cjs');
|
|
12
12
|
require('../chunk-GFUPZMLG.cjs');
|
|
13
13
|
var chunkOXOTWH3L_cjs = require('../chunk-OXOTWH3L.cjs');
|
|
@@ -32,7 +32,7 @@ Object.defineProperty(exports, "setCache", {
|
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "resolve", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkHUWGH27W_cjs.resolve; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "generateSourceMap", {
|
|
38
38
|
enumerable: true,
|
|
@@ -56,7 +56,7 @@ Object.defineProperty(exports, "getFileHeader", {
|
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "bundle", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkPD6TYAFZ_cjs.bundle; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "CACHE_HASH_LENGTH", {
|
|
62
62
|
enumerable: true,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../chunk-CLOW34EQ.js';
|
|
2
2
|
export { writeFile } from '../chunk-HQ6TGY34.js';
|
|
3
3
|
export { getCache, setCache } from '../chunk-MJ6WN3XA.js';
|
|
4
|
-
export { resolve } from '../chunk-
|
|
4
|
+
export { resolve } from '../chunk-3DYPJHNF.js';
|
|
5
5
|
export { generateSourceMap } from '../chunk-OC2AD37X.js';
|
|
6
6
|
export { Worker, createWorker } from '../chunk-OZKNYQEG.js';
|
|
7
7
|
export { getBaseFileHeader, getFileHeader } from '../chunk-7R23HVGQ.js';
|
|
8
|
-
export { bundle } from '../chunk-
|
|
8
|
+
export { bundle } from '../chunk-7ZLMFCZF.js';
|
|
9
9
|
export { CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, discoverTemplates, getPersistedMeta, getPrefixedProjectRootHash, writeMetaFile } from '../chunk-45D4XIOK.js';
|
|
10
10
|
import '../chunk-F5GKG7AF.js';
|
|
11
11
|
export { getMagicString, getSourceFile, getString } from '../chunk-D55ZAZCX.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkHUWGH27W_cjs = require('../chunk-HUWGH27W.cjs');
|
|
4
|
+
require('../chunk-PD6TYAFZ.cjs');
|
|
5
5
|
require('../chunk-TAHP4BEC.cjs');
|
|
6
6
|
require('../chunk-FQZQA4EJ.cjs');
|
|
7
7
|
require('../chunk-YF57WETC.cjs');
|
|
@@ -11,7 +11,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "resolve", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkHUWGH27W_cjs.resolve; }
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=resolve.cjs.map
|
|
17
17
|
//# sourceMappingURL=resolve.cjs.map
|
package/dist/nuxt.cjs
CHANGED
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { U as UserConfig } from './api-
|
|
2
|
+
import { U as UserConfig } from './api-D9jjGCj6.cjs';
|
|
3
3
|
import { BuildConfig, BuildResolvedConfig } from './types/build.cjs';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { U as UserConfig } from './api-
|
|
2
|
+
import { U as UserConfig } from './api-CXFbHV-Z.js';
|
|
3
3
|
import { BuildConfig, BuildResolvedConfig } from './types/build.js';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
package/dist/nuxt.js
CHANGED
package/dist/rolldown.d.cts
CHANGED
package/dist/rolldown.d.ts
CHANGED
package/dist/rollup.d.cts
CHANGED
package/dist/rollup.d.ts
CHANGED
package/dist/rspack.d.cts
CHANGED
package/dist/rspack.d.ts
CHANGED