powerlines 0.3.0 → 0.4.0
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/astro.cjs +8 -8
- package/dist/astro.d.cts +2 -2
- package/dist/astro.d.ts +2 -2
- package/dist/astro.js +5 -5
- package/dist/{chunk-M7LAFZJC.cjs → chunk-2HFMIZYO.cjs} +8 -8
- package/dist/{chunk-EODIWGJH.cjs → chunk-2WZTZIPL.cjs} +4 -4
- package/dist/{chunk-OE4YQRV3.js → chunk-4HA6WES7.js} +33 -32
- package/dist/{chunk-PCCYWWFV.cjs → chunk-4YWVR54C.cjs} +33 -32
- package/dist/{chunk-P5GGDZUL.cjs → chunk-4ZXJF3CL.cjs} +4 -4
- package/dist/{chunk-56HZJA6Y.js → chunk-5DH4T6HI.js} +3 -3
- package/dist/chunk-6FA3IOW2.cjs +12 -0
- package/dist/{chunk-LRMTFNMK.js → chunk-6XFFNJCS.js} +3 -3
- package/dist/{chunk-FPX2EVBU.cjs → chunk-A3H5EZ5M.cjs} +4 -4
- package/dist/{chunk-WZEUHWMP.js → chunk-AM4EJ45G.js} +3 -3
- package/dist/{chunk-JNJHD7IF.js → chunk-AWFN3GRI.js} +3 -3
- package/dist/{chunk-ICOR66M4.js → chunk-B4LIFIMY.js} +4 -4
- package/dist/chunk-EU27ZVAT.cjs +12 -0
- package/dist/{chunk-TNAS7QOH.cjs → chunk-FO3BCZ7I.cjs} +2 -2
- package/dist/{chunk-PYZBMYP5.cjs → chunk-G22O7YG6.cjs} +2 -2
- package/dist/{chunk-AWSOFXSZ.js → chunk-H6Q4VIN2.js} +3 -3
- package/dist/{chunk-3T4PHMIA.cjs → chunk-IG5EBLIY.cjs} +4 -4
- package/dist/{chunk-OL7A3UTX.js → chunk-K3M64YD3.js} +3 -3
- package/dist/chunk-KWL6GUEE.cjs +12 -0
- package/dist/{chunk-MCLMQP6E.cjs → chunk-LWR6R534.cjs} +4 -4
- package/dist/chunk-NLBJDVPY.js +31 -0
- package/dist/{chunk-V7LHKVYM.js → chunk-NX4KYNFX.js} +3 -3
- package/dist/chunk-O7I3HSK7.cjs +24 -0
- package/dist/chunk-OP7ENM3G.cjs +12 -0
- package/dist/{chunk-M5KSW26K.js → chunk-P44S6KC7.js} +2 -2
- package/dist/{chunk-QU4WXUK2.js → chunk-QIFYDXQR.js} +3 -3
- package/dist/chunk-QS4DORVI.cjs +34 -0
- package/dist/{chunk-X2ZKTEPA.js → chunk-SXQLYT2H.js} +2 -2
- package/dist/{chunk-TCSH3FQA.js → chunk-TBJ2VLKL.js} +3 -3
- package/dist/chunk-TIVHQTCA.cjs +12 -0
- package/dist/{chunk-VG7PGLU3.js → chunk-ZLDA32TD.js} +3 -3
- package/dist/{chunk-ICPUJUTG.js → chunk-ZU75LI5N.js} +3 -3
- package/dist/define-config.d.cts +2 -2
- package/dist/define-config.d.ts +2 -2
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +2 -2
- package/dist/farm.d.ts +2 -2
- package/dist/farm.js +3 -3
- package/dist/index.cjs +21 -21
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -17
- package/dist/internal/api.cjs +3 -3
- package/dist/internal/api.d.cts +2 -2
- package/dist/internal/api.d.ts +2 -2
- package/dist/internal/api.js +2 -2
- package/dist/lib/{chunk-WV4DZRNU.cjs → chunk-PTSKT4XY.cjs} +31 -30
- package/dist/lib/chunk-PTSKT4XY.cjs.map +1 -0
- package/dist/lib/{chunk-JZT4ZOXK.js → chunk-VGGQJDIU.js} +32 -31
- package/dist/lib/chunk-VGGQJDIU.js.map +1 -0
- package/dist/lib/{config-BH42eQeu.d.cts → config-COmv2gYP.d.cts} +14 -18
- package/dist/lib/{config-DwaKbb1W.d.ts → config-Du9blYJM.d.ts} +14 -18
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/deepkit/index.d.cts +2 -2
- package/dist/lib/deepkit/index.d.ts +2 -2
- package/dist/lib/deepkit/reflect-type.d.cts +2 -2
- package/dist/lib/deepkit/reflect-type.d.ts +2 -2
- package/dist/lib/deepkit/resolve-reflections.d.cts +2 -2
- package/dist/lib/deepkit/resolve-reflections.d.ts +2 -2
- package/dist/lib/deepkit/transformer.d.cts +2 -2
- package/dist/lib/deepkit/transformer.d.ts +2 -2
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +1 -1
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/compiler-host.d.cts +2 -2
- package/dist/lib/typescript/compiler-host.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.ts +2 -2
- package/dist/lib/typescript/program.d.cts +2 -2
- package/dist/lib/typescript/program.d.ts +2 -2
- package/dist/lib/typescript/transpile.d.cts +2 -2
- package/dist/lib/typescript/transpile.d.ts +2 -2
- package/dist/lib/unplugin/factory.cjs +2 -2
- package/dist/lib/unplugin/factory.d.cts +2 -2
- package/dist/lib/unplugin/factory.d.ts +2 -2
- package/dist/lib/unplugin/factory.js +1 -1
- package/dist/lib/unplugin/index.cjs +2 -2
- package/dist/lib/unplugin/index.d.cts +2 -2
- package/dist/lib/unplugin/index.d.ts +2 -2
- package/dist/lib/unplugin/index.js +1 -1
- package/dist/lib/unplugin/plugin.d.cts +2 -2
- package/dist/lib/unplugin/plugin.d.ts +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +2 -2
- package/dist/lib/unplugin/resolve-id.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/plugin-helpers.d.cts +2 -2
- package/dist/lib/utilities/plugin-helpers.d.ts +2 -2
- package/dist/lib/utilities/resolve-path.d.cts +2 -2
- package/dist/lib/utilities/resolve-path.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/{resolved-CXRrX1o1.d.cts → resolved-Cbv90ASf.d.cts} +15 -21
- package/dist/{resolved-BGRXu5is.d.ts → resolved-yKa67XHB.d.ts} +15 -21
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.ts +2 -2
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- package/dist/types/babel.d.cts +2 -2
- package/dist/types/babel.d.ts +2 -2
- package/dist/types/commands.d.cts +2 -2
- package/dist/types/commands.d.ts +2 -2
- package/dist/types/compiler.d.cts +2 -2
- package/dist/types/compiler.d.ts +2 -2
- package/dist/types/config.d.cts +2 -2
- package/dist/types/config.d.ts +2 -2
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +2 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +2 -2
- package/dist/types/hooks.d.ts +2 -2
- package/dist/types/index.cjs +4 -4
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/dist/types/plugin.cjs +2 -2
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types/plugin.js +1 -1
- package/dist/types/resolved.d.cts +2 -2
- package/dist/types/resolved.d.ts +2 -2
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +2 -2
- package/dist/unloader.d.ts +2 -2
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +4 -4
- package/package.json +2 -2
- package/dist/chunk-5HUMTYPQ.cjs +0 -12
- package/dist/chunk-5KDXM73F.cjs +0 -12
- package/dist/chunk-7LMJKG7Q.cjs +0 -12
- package/dist/chunk-AKPS5IUC.cjs +0 -24
- package/dist/chunk-IRWJCRSN.cjs +0 -12
- package/dist/chunk-LBLKLGQF.cjs +0 -12
- package/dist/chunk-QW6XE4SD.cjs +0 -34
- package/dist/chunk-Y77AS64Z.js +0 -31
- package/dist/lib/chunk-JZT4ZOXK.js.map +0 -1
- package/dist/lib/chunk-WV4DZRNU.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './internal/api.cjs';
|
|
2
2
|
export { default as plugins } from './unplugin.cjs';
|
|
3
3
|
export { defineConfig } from './define-config.cjs';
|
|
4
|
-
export { bi as APIContext, ao as AnyUserConfig, B as BabelPluginPass,
|
|
4
|
+
export { bi as APIContext, ao as AnyUserConfig, B as BabelPluginPass, cx as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, U as BabelUserConfig, Z as BaseConfig, bK as BaseHookKeys, bJ as BaseHooks, bQ as BaseHooksList, bP as BaseHooksListItem, cb as BasePluginHookFunctions, aj as BuildInlineConfig, cc as BuildPlugin, bm as BuildPluginContext, ah as CleanInlineConfig, C as CommandType, u as Commands, a0 as CommonUserConfig, A as CompilerInterface, z as CompilerOptions, x as CompilerResult, an as ConfigEnv, bh as Context, be as ContextReflectionRecord, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, al as DocsInlineConfig, cG as ESBuildResolvedConfig, a7 as ESBuildUserConfig, V as ESLintConfig, $ as EnvironmentConfig, bk as EnvironmentContext, bj as EnvironmentContextPlugin, cy as EnvironmentResolvedConfig, bM as ExternalHookKeys, bL as ExternalHooks, bR as ExternalHooksListItem, ce as ExternalPluginHookFunctions, cd as ExternalPluginHookFunctionsVariant, cL as FarmResolvedConfig, aa as FarmUserConfig, bO as HookKeys, bN as Hooks, bS as HooksList, I as ImportDefinition, h as ImportSpecifier, bT as InferHookHandler, bV as InferHookParameters, bU as InferHookReturnType, bW as InferHookThisType, cM as InferResolvedConfig, ab as InferUserConfig, bg as InitContextOptions, ac as InitialUserConfig, af as InlineConfig, bo as Internal_PluginContext, bn as Internal_PluginContextInternal, X as LintConfig, ak as LintInlineConfig, cz as LintResolvedConfig, L as LogFn, b7 as LogLevel, b9 as MetaInfo, N as NamedImportDefinition, ag as NewInlineConfig, Y as OutputConfig, cB as OutputResolvedConfig, cj as PLUGIN_NON_HOOK_FIELDS, ad as ParsedUserConfig, ci as Plugin, ch as PluginBuildPlugins, O as PluginConfig, M as PluginConfigObject, K as PluginConfigTuple, bl as PluginContext, P as PluginFactory, ca as PluginHook, cf as PluginHookFunctions, c9 as PluginHookObject, cg as PluginHooks, ck as PluginNonHookFields, ae as PowerlinesCommand, ai as PrepareInlineConfig, Q as ProjectType, bc as Reflection, bd as ReflectionRecord, am as ReleaseInlineConfig, cA as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cC as ResolvedConfig, cw as ResolvedEntryTypeDefinition, ba as Resolver, cI as RolldownResolvedConfig, a5 as RolldownUserConfig, cH as RollupResolvedConfig, a4 as RollupUserConfig, cF as RspackResolvedConfig, a3 as RspackUserConfig, S as SUPPORTED_COMMANDS, bf as SelectHooksOptions, bp as SerializedVirtualFileSystem, y as SourceFile, T as TranspilerOptions, cJ as TsupResolvedConfig, a9 as TsupUserConfig, cK as UnbuildResolvedConfig, a8 as UnbuildUserConfig, bb as UnimportContext, a1 as UserConfig, as as UserConfigExport, ar as UserConfigFn, ap as UserConfigFnObject, aq as UserConfigFnPromise, cD as ViteResolvedConfig, a6 as ViteUserConfig, cE as WebpackResolvedConfig, a2 as WebpackUserConfig, b8 as WorkerProcess, W as WorkspaceConfig, bB as __ΩAPIContext, b2 as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cO as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, aA as __ΩBabelUserConfig, aE as __ΩBaseConfig, bY as __ΩBaseHookKeys, bX as __ΩBaseHooks, c2 as __ΩBaseHooksList, c1 as __ΩBaseHooksListItem, cn as __ΩBasePluginHookFunctions, aZ as __ΩBuildInlineConfig, co as __ΩBuildPlugin, bF as __ΩBuildPluginContext, aX as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, aG as __ΩCommonUserConfig, J as __ΩCompilerInterface, H as __ΩCompilerOptions, E as __ΩCompilerResult, b1 as __ΩConfigEnv, bA as __ΩContext, bx as __ΩContextReflectionRecord, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, a$ as __ΩDocsInlineConfig, cX as __ΩESBuildResolvedConfig, aN as __ΩESBuildUserConfig, aB as __ΩESLintConfig, aF as __ΩEnvironmentConfig, bD as __ΩEnvironmentContext, bC as __ΩEnvironmentContextPlugin, cP as __ΩEnvironmentResolvedConfig, b_ as __ΩExternalHookKeys, bZ as __ΩExternalHooks, c3 as __ΩExternalHooksListItem, cq as __ΩExternalPluginHookFunctions, cp as __ΩExternalPluginHookFunctionsVariant, d0 as __ΩFarmResolvedConfig, aQ as __ΩFarmUserConfig, c0 as __ΩHookKeys, b$ as __ΩHooks, c4 as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, c5 as __ΩInferHookHandler, c7 as __ΩInferHookParameters, c6 as __ΩInferHookReturnType, c8 as __ΩInferHookThisType, d1 as __ΩInferResolvedConfig, aR as __ΩInferUserConfig, bz as __ΩInitContextOptions, aS as __ΩInitialUserConfig, aV as __ΩInlineConfig, bH as __ΩInternal_PluginContext, bG as __ΩInternal_PluginContextInternal, aC as __ΩLintConfig, a_ as __ΩLintInlineConfig, cQ as __ΩLintResolvedConfig, at as __ΩLogFn, bq as __ΩLogLevel, bs as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aW as __ΩNewInlineConfig, aD as __ΩOutputConfig, cS as __ΩOutputResolvedConfig, aT as __ΩParsedUserConfig, cu as __ΩPlugin, ct as __ΩPluginBuildPlugins, ay as __ΩPluginConfig, ax as __ΩPluginConfigObject, aw as __ΩPluginConfigTuple, bE as __ΩPluginContext, av as __ΩPluginFactory, cm as __ΩPluginHook, cr as __ΩPluginHookFunctions, cl as __ΩPluginHookObject, cs as __ΩPluginHooks, cv as __ΩPluginNonHookFields, aU as __ΩPowerlinesCommand, aY as __ΩPrepareInlineConfig, az as __ΩProjectType, bv as __ΩReflection, bw as __ΩReflectionRecord, b0 as __ΩReleaseInlineConfig, cR as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cT as __ΩResolvedConfig, cN as __ΩResolvedEntryTypeDefinition, bt as __ΩResolver, cZ as __ΩRolldownResolvedConfig, aL as __ΩRolldownUserConfig, cY as __ΩRollupResolvedConfig, aK as __ΩRollupUserConfig, cW as __ΩRspackResolvedConfig, aJ as __ΩRspackUserConfig, by as __ΩSelectHooksOptions, bI as __ΩSerializedVirtualFileSystem, F as __ΩSourceFile, G as __ΩTranspilerOptions, c_ as __ΩTsupResolvedConfig, aP as __ΩTsupUserConfig, c$ as __ΩUnbuildResolvedConfig, aO as __ΩUnbuildUserConfig, bu as __ΩUnimportContext, aH as __ΩUserConfig, b6 as __ΩUserConfigExport, b5 as __ΩUserConfigFn, b3 as __ΩUserConfigFnObject, b4 as __ΩUserConfigFnPromise, cU as __ΩViteResolvedConfig, aM as __ΩViteUserConfig, cV as __ΩWebpackResolvedConfig, aI as __ΩWebpackUserConfig, br as __ΩWorkerProcess, au as __ΩWorkspaceConfig } from './resolved-Cbv90ASf.cjs';
|
|
5
5
|
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './types/build.cjs';
|
|
6
6
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './types/tsconfig.cjs';
|
|
7
7
|
export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './types/typedoc.cjs';
|
|
@@ -35,11 +35,11 @@ import 'jest-worker';
|
|
|
35
35
|
import 'jiti';
|
|
36
36
|
import 'memfs';
|
|
37
37
|
import 'powerlines/deepkit/type';
|
|
38
|
+
import 'semver';
|
|
38
39
|
import 'unimport';
|
|
39
40
|
import '@stryke/capnp';
|
|
40
41
|
import 'magic-string';
|
|
41
42
|
import '@stryke/types/array';
|
|
42
|
-
import 'semver';
|
|
43
43
|
import '@farmfe/core';
|
|
44
44
|
import '@rspack/core';
|
|
45
45
|
import '@storm-software/esbuild/types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './internal/api.js';
|
|
2
2
|
export { default as plugins } from './unplugin.js';
|
|
3
3
|
export { defineConfig } from './define-config.js';
|
|
4
|
-
export { bi as APIContext, ao as AnyUserConfig, B as BabelPluginPass,
|
|
4
|
+
export { bi as APIContext, ao as AnyUserConfig, B as BabelPluginPass, cx as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, U as BabelUserConfig, Z as BaseConfig, bK as BaseHookKeys, bJ as BaseHooks, bQ as BaseHooksList, bP as BaseHooksListItem, cb as BasePluginHookFunctions, aj as BuildInlineConfig, cc as BuildPlugin, bm as BuildPluginContext, ah as CleanInlineConfig, C as CommandType, u as Commands, a0 as CommonUserConfig, A as CompilerInterface, z as CompilerOptions, x as CompilerResult, an as ConfigEnv, bh as Context, be as ContextReflectionRecord, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, al as DocsInlineConfig, cG as ESBuildResolvedConfig, a7 as ESBuildUserConfig, V as ESLintConfig, $ as EnvironmentConfig, bk as EnvironmentContext, bj as EnvironmentContextPlugin, cy as EnvironmentResolvedConfig, bM as ExternalHookKeys, bL as ExternalHooks, bR as ExternalHooksListItem, ce as ExternalPluginHookFunctions, cd as ExternalPluginHookFunctionsVariant, cL as FarmResolvedConfig, aa as FarmUserConfig, bO as HookKeys, bN as Hooks, bS as HooksList, I as ImportDefinition, h as ImportSpecifier, bT as InferHookHandler, bV as InferHookParameters, bU as InferHookReturnType, bW as InferHookThisType, cM as InferResolvedConfig, ab as InferUserConfig, bg as InitContextOptions, ac as InitialUserConfig, af as InlineConfig, bo as Internal_PluginContext, bn as Internal_PluginContextInternal, X as LintConfig, ak as LintInlineConfig, cz as LintResolvedConfig, L as LogFn, b7 as LogLevel, b9 as MetaInfo, N as NamedImportDefinition, ag as NewInlineConfig, Y as OutputConfig, cB as OutputResolvedConfig, cj as PLUGIN_NON_HOOK_FIELDS, ad as ParsedUserConfig, ci as Plugin, ch as PluginBuildPlugins, O as PluginConfig, M as PluginConfigObject, K as PluginConfigTuple, bl as PluginContext, P as PluginFactory, ca as PluginHook, cf as PluginHookFunctions, c9 as PluginHookObject, cg as PluginHooks, ck as PluginNonHookFields, ae as PowerlinesCommand, ai as PrepareInlineConfig, Q as ProjectType, bc as Reflection, bd as ReflectionRecord, am as ReleaseInlineConfig, cA as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cC as ResolvedConfig, cw as ResolvedEntryTypeDefinition, ba as Resolver, cI as RolldownResolvedConfig, a5 as RolldownUserConfig, cH as RollupResolvedConfig, a4 as RollupUserConfig, cF as RspackResolvedConfig, a3 as RspackUserConfig, S as SUPPORTED_COMMANDS, bf as SelectHooksOptions, bp as SerializedVirtualFileSystem, y as SourceFile, T as TranspilerOptions, cJ as TsupResolvedConfig, a9 as TsupUserConfig, cK as UnbuildResolvedConfig, a8 as UnbuildUserConfig, bb as UnimportContext, a1 as UserConfig, as as UserConfigExport, ar as UserConfigFn, ap as UserConfigFnObject, aq as UserConfigFnPromise, cD as ViteResolvedConfig, a6 as ViteUserConfig, cE as WebpackResolvedConfig, a2 as WebpackUserConfig, b8 as WorkerProcess, W as WorkspaceConfig, bB as __ΩAPIContext, b2 as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cO as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, aA as __ΩBabelUserConfig, aE as __ΩBaseConfig, bY as __ΩBaseHookKeys, bX as __ΩBaseHooks, c2 as __ΩBaseHooksList, c1 as __ΩBaseHooksListItem, cn as __ΩBasePluginHookFunctions, aZ as __ΩBuildInlineConfig, co as __ΩBuildPlugin, bF as __ΩBuildPluginContext, aX as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, aG as __ΩCommonUserConfig, J as __ΩCompilerInterface, H as __ΩCompilerOptions, E as __ΩCompilerResult, b1 as __ΩConfigEnv, bA as __ΩContext, bx as __ΩContextReflectionRecord, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, a$ as __ΩDocsInlineConfig, cX as __ΩESBuildResolvedConfig, aN as __ΩESBuildUserConfig, aB as __ΩESLintConfig, aF as __ΩEnvironmentConfig, bD as __ΩEnvironmentContext, bC as __ΩEnvironmentContextPlugin, cP as __ΩEnvironmentResolvedConfig, b_ as __ΩExternalHookKeys, bZ as __ΩExternalHooks, c3 as __ΩExternalHooksListItem, cq as __ΩExternalPluginHookFunctions, cp as __ΩExternalPluginHookFunctionsVariant, d0 as __ΩFarmResolvedConfig, aQ as __ΩFarmUserConfig, c0 as __ΩHookKeys, b$ as __ΩHooks, c4 as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, c5 as __ΩInferHookHandler, c7 as __ΩInferHookParameters, c6 as __ΩInferHookReturnType, c8 as __ΩInferHookThisType, d1 as __ΩInferResolvedConfig, aR as __ΩInferUserConfig, bz as __ΩInitContextOptions, aS as __ΩInitialUserConfig, aV as __ΩInlineConfig, bH as __ΩInternal_PluginContext, bG as __ΩInternal_PluginContextInternal, aC as __ΩLintConfig, a_ as __ΩLintInlineConfig, cQ as __ΩLintResolvedConfig, at as __ΩLogFn, bq as __ΩLogLevel, bs as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aW as __ΩNewInlineConfig, aD as __ΩOutputConfig, cS as __ΩOutputResolvedConfig, aT as __ΩParsedUserConfig, cu as __ΩPlugin, ct as __ΩPluginBuildPlugins, ay as __ΩPluginConfig, ax as __ΩPluginConfigObject, aw as __ΩPluginConfigTuple, bE as __ΩPluginContext, av as __ΩPluginFactory, cm as __ΩPluginHook, cr as __ΩPluginHookFunctions, cl as __ΩPluginHookObject, cs as __ΩPluginHooks, cv as __ΩPluginNonHookFields, aU as __ΩPowerlinesCommand, aY as __ΩPrepareInlineConfig, az as __ΩProjectType, bv as __ΩReflection, bw as __ΩReflectionRecord, b0 as __ΩReleaseInlineConfig, cR as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cT as __ΩResolvedConfig, cN as __ΩResolvedEntryTypeDefinition, bt as __ΩResolver, cZ as __ΩRolldownResolvedConfig, aL as __ΩRolldownUserConfig, cY as __ΩRollupResolvedConfig, aK as __ΩRollupUserConfig, cW as __ΩRspackResolvedConfig, aJ as __ΩRspackUserConfig, by as __ΩSelectHooksOptions, bI as __ΩSerializedVirtualFileSystem, F as __ΩSourceFile, G as __ΩTranspilerOptions, c_ as __ΩTsupResolvedConfig, aP as __ΩTsupUserConfig, c$ as __ΩUnbuildResolvedConfig, aO as __ΩUnbuildUserConfig, bu as __ΩUnimportContext, aH as __ΩUserConfig, b6 as __ΩUserConfigExport, b5 as __ΩUserConfigFn, b3 as __ΩUserConfigFnObject, b4 as __ΩUserConfigFnPromise, cU as __ΩViteResolvedConfig, aM as __ΩViteUserConfig, cV as __ΩWebpackResolvedConfig, aI as __ΩWebpackUserConfig, br as __ΩWorkerProcess, au as __ΩWorkspaceConfig } from './resolved-yKa67XHB.js';
|
|
5
5
|
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './types/build.js';
|
|
6
6
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './types/tsconfig.js';
|
|
7
7
|
export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './types/typedoc.js';
|
|
@@ -35,11 +35,11 @@ import 'jest-worker';
|
|
|
35
35
|
import 'jiti';
|
|
36
36
|
import 'memfs';
|
|
37
37
|
import 'powerlines/deepkit/type';
|
|
38
|
+
import 'semver';
|
|
38
39
|
import 'unimport';
|
|
39
40
|
import '@stryke/capnp';
|
|
40
41
|
import 'magic-string';
|
|
41
42
|
import '@stryke/types/array';
|
|
42
|
-
import 'semver';
|
|
43
43
|
import '@farmfe/core';
|
|
44
44
|
import '@rspack/core';
|
|
45
45
|
import '@storm-software/esbuild/types';
|
package/dist/index.js
CHANGED
|
@@ -7,26 +7,26 @@ import './chunk-GIE6OE3X.js';
|
|
|
7
7
|
import './chunk-AXIRZAL7.js';
|
|
8
8
|
import './chunk-DURCSSLV.js';
|
|
9
9
|
import './chunk-OYASPHNL.js';
|
|
10
|
-
export { LogLevel } from './chunk-
|
|
10
|
+
export { LogLevel } from './chunk-P44S6KC7.js';
|
|
11
11
|
import './chunk-HJW7OH6E.js';
|
|
12
|
-
export { plugins } from './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
12
|
+
export { plugins } from './chunk-NLBJDVPY.js';
|
|
13
|
+
import './chunk-TBJ2VLKL.js';
|
|
14
|
+
import './chunk-NX4KYNFX.js';
|
|
15
|
+
import './chunk-5DH4T6HI.js';
|
|
16
|
+
import './chunk-AWFN3GRI.js';
|
|
17
|
+
import './chunk-QIFYDXQR.js';
|
|
18
18
|
export { defineConfig } from './chunk-YZCTXGFH.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
19
|
+
import './chunk-K3M64YD3.js';
|
|
20
|
+
import './chunk-ZLDA32TD.js';
|
|
21
|
+
import './chunk-B4LIFIMY.js';
|
|
22
|
+
import './chunk-6XFFNJCS.js';
|
|
23
23
|
import './chunk-VOB62ELC.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
import { PowerlinesAPI } from './chunk-
|
|
28
|
-
export { PowerlinesAPI as StormAPI } from './chunk-
|
|
29
|
-
export { PLUGIN_NON_HOOK_FIELDS } from './chunk-
|
|
24
|
+
import './chunk-AM4EJ45G.js';
|
|
25
|
+
import './chunk-ZU75LI5N.js';
|
|
26
|
+
import './chunk-H6Q4VIN2.js';
|
|
27
|
+
import { PowerlinesAPI } from './chunk-4HA6WES7.js';
|
|
28
|
+
export { PowerlinesAPI as StormAPI } from './chunk-4HA6WES7.js';
|
|
29
|
+
export { PLUGIN_NON_HOOK_FIELDS } from './chunk-SXQLYT2H.js';
|
|
30
30
|
export { __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './chunk-ILVCZATT.js';
|
|
31
31
|
export { SUPPORTED_COMMANDS } from './chunk-LO77RPRV.js';
|
|
32
32
|
import './chunk-7QVYU63E.js';
|
package/dist/internal/api.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk4YWVR54C_cjs = require('../chunk-4YWVR54C.cjs');
|
|
4
|
+
require('../chunk-FO3BCZ7I.cjs');
|
|
5
5
|
require('../chunk-YE56I7CZ.cjs');
|
|
6
6
|
require('../chunk-5VPVJHJO.cjs');
|
|
7
7
|
require('../chunk-PK6SKIKE.cjs');
|
|
@@ -10,7 +10,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4YWVR54C_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/internal/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cC as ResolvedConfig, bi as APIContext, ac as InitialUserConfig, ai as PrepareInlineConfig, ag as NewInlineConfig, ah as CleanInlineConfig, aj as BuildInlineConfig, ak as LintInlineConfig, al as DocsInlineConfig, am as ReleaseInlineConfig, bO as HookKeys, bl as PluginContext, d2 as CallHookOptions, bk as EnvironmentContext, bV as InferHookParameters } from '../resolved-Cbv90ASf.cjs';
|
|
2
2
|
import '@storm-software/config-tools/types';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
@@ -24,6 +24,7 @@ import 'jest-worker';
|
|
|
24
24
|
import 'jiti';
|
|
25
25
|
import 'memfs';
|
|
26
26
|
import 'powerlines/deepkit/type';
|
|
27
|
+
import 'semver';
|
|
27
28
|
import 'unimport';
|
|
28
29
|
import 'unplugin';
|
|
29
30
|
import '@stryke/capnp';
|
|
@@ -32,7 +33,6 @@ import '../types/tsconfig.cjs';
|
|
|
32
33
|
import '@stryke/types/tsconfig';
|
|
33
34
|
import 'typescript';
|
|
34
35
|
import '@stryke/types/array';
|
|
35
|
-
import 'semver';
|
|
36
36
|
import '../types/vfs.cjs';
|
|
37
37
|
import 'node:fs';
|
|
38
38
|
import 'unionfs';
|
package/dist/internal/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cC as ResolvedConfig, bi as APIContext, ac as InitialUserConfig, ai as PrepareInlineConfig, ag as NewInlineConfig, ah as CleanInlineConfig, aj as BuildInlineConfig, ak as LintInlineConfig, al as DocsInlineConfig, am as ReleaseInlineConfig, bO as HookKeys, bl as PluginContext, d2 as CallHookOptions, bk as EnvironmentContext, bV as InferHookParameters } from '../resolved-yKa67XHB.js';
|
|
2
2
|
import '@storm-software/config-tools/types';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
@@ -24,6 +24,7 @@ import 'jest-worker';
|
|
|
24
24
|
import 'jiti';
|
|
25
25
|
import 'memfs';
|
|
26
26
|
import 'powerlines/deepkit/type';
|
|
27
|
+
import 'semver';
|
|
27
28
|
import 'unimport';
|
|
28
29
|
import 'unplugin';
|
|
29
30
|
import '@stryke/capnp';
|
|
@@ -32,7 +33,6 @@ import '../types/tsconfig.js';
|
|
|
32
33
|
import '@stryke/types/tsconfig';
|
|
33
34
|
import 'typescript';
|
|
34
35
|
import '@stryke/types/array';
|
|
35
|
-
import 'semver';
|
|
36
36
|
import '../types/vfs.js';
|
|
37
37
|
import 'node:fs';
|
|
38
38
|
import 'unionfs';
|
package/dist/internal/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PowerlinesAPI } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPI } from '../chunk-4HA6WES7.js';
|
|
2
|
+
import '../chunk-SXQLYT2H.js';
|
|
3
3
|
import '../chunk-ILVCZATT.js';
|
|
4
4
|
import '../chunk-LO77RPRV.js';
|
|
5
5
|
import '../chunk-7QVYU63E.js';
|
|
@@ -1319,16 +1319,23 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1319
1319
|
static async from(workspaceRoot, config) {
|
|
1320
1320
|
const context = new _PowerlinesContext(await chunkUAAFV5XK_cjs.loadWorkspaceConfig(workspaceRoot, config.root));
|
|
1321
1321
|
await context.withUserConfig(config);
|
|
1322
|
-
context.
|
|
1323
|
-
if (!context.
|
|
1324
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
1322
|
+
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
1323
|
+
if (!context.powerlinesPath) {
|
|
1324
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
1325
1325
|
}
|
|
1326
1326
|
return context;
|
|
1327
1327
|
}
|
|
1328
|
+
/**
|
|
1329
|
+
* An object containing the dependencies that should be installed for the project
|
|
1330
|
+
*/
|
|
1328
1331
|
dependencies = {};
|
|
1332
|
+
/**
|
|
1333
|
+
* An object containing the development dependencies that should be installed for the project
|
|
1334
|
+
*/
|
|
1335
|
+
devDependencies = {};
|
|
1329
1336
|
reflections = {};
|
|
1330
1337
|
persistedMeta = void 0;
|
|
1331
|
-
|
|
1338
|
+
powerlinesPath;
|
|
1332
1339
|
packageJson;
|
|
1333
1340
|
projectJson = void 0;
|
|
1334
1341
|
resolver;
|
|
@@ -1418,7 +1425,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1418
1425
|
* Get the path to the artifacts directory for the project
|
|
1419
1426
|
*/
|
|
1420
1427
|
get artifactsPath() {
|
|
1421
|
-
return join.joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot,
|
|
1428
|
+
return join.joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, this.config.output.artifactsFolder);
|
|
1422
1429
|
}
|
|
1423
1430
|
/**
|
|
1424
1431
|
* Get the path to the builtin modules used by the project
|
|
@@ -1604,7 +1611,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1604
1611
|
mode: "virtual",
|
|
1605
1612
|
dts: join.joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
|
|
1606
1613
|
builtinPrefix: config.framework ?? "powerlines",
|
|
1607
|
-
|
|
1614
|
+
artifactsFolder: join.joinPaths(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
|
|
1608
1615
|
assets: [
|
|
1609
1616
|
{
|
|
1610
1617
|
glob: "LICENSE"
|
|
@@ -1818,9 +1825,9 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
|
|
|
1818
1825
|
static async fromConfig(workspaceConfig, config) {
|
|
1819
1826
|
const context = new _PowerlinesEnvironmentContext(config, workspaceConfig);
|
|
1820
1827
|
await context.init();
|
|
1821
|
-
context.
|
|
1822
|
-
if (!context.
|
|
1823
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
1828
|
+
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
1829
|
+
if (!context.powerlinesPath) {
|
|
1830
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
1824
1831
|
}
|
|
1825
1832
|
return context;
|
|
1826
1833
|
}
|
|
@@ -1938,9 +1945,9 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
1938
1945
|
static async from(workspaceRoot, config) {
|
|
1939
1946
|
const context = new _PowerlinesAPIContext(await chunkUAAFV5XK_cjs.loadWorkspaceConfig(workspaceRoot, config.root));
|
|
1940
1947
|
await context.withUserConfig(config);
|
|
1941
|
-
context.
|
|
1942
|
-
if (!context.
|
|
1943
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
1948
|
+
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
1949
|
+
if (!context.powerlinesPath) {
|
|
1950
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
1944
1951
|
}
|
|
1945
1952
|
return context;
|
|
1946
1953
|
}
|
|
@@ -2046,7 +2053,7 @@ async function installPackage(context, packageName, dev = false) {
|
|
|
2046
2053
|
} else {
|
|
2047
2054
|
context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
|
|
2048
2055
|
}
|
|
2049
|
-
} else if (_package.hasPackageVersion(packageName) && !process.env.
|
|
2056
|
+
} else if (_package.hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
|
|
2050
2057
|
const isMatching = await packageFns.doesPackageMatch(_package.getPackageName(packageName), _package.getPackageVersion(packageName), context.config.projectRoot);
|
|
2051
2058
|
if (!isMatching) {
|
|
2052
2059
|
const packageListing = await packageFns.getPackageListing(_package.getPackageName(packageName), {
|
|
@@ -2627,20 +2634,14 @@ chunkIVLD7PCJ_cjs.__name(generateTypes, "generateTypes");
|
|
|
2627
2634
|
async function installDependencies(context) {
|
|
2628
2635
|
context.log(types.LogLevelLabel.TRACE, `Checking and installing missing project dependencies.`);
|
|
2629
2636
|
context.dependencies ??= {};
|
|
2630
|
-
context.dependencies
|
|
2631
|
-
type: "dependency"
|
|
2632
|
-
};
|
|
2637
|
+
context.dependencies.powerlines = "latest";
|
|
2633
2638
|
if (context.config.projectType === "application") {
|
|
2634
|
-
context.dependencies.unstorage =
|
|
2635
|
-
type: "dependency"
|
|
2636
|
-
};
|
|
2637
|
-
}
|
|
2638
|
-
context.log(types.LogLevelLabel.TRACE, `The following packages must be installed as dependencies:
|
|
2639
|
-
${Object.keys(context.dependencies).map((key) => ` - ${_package.getPackageName(key)}${_package.hasPackageVersion(key) || isSetObject.isSetObject(context.dependencies[key]) && isSetString.isSetString(context.dependencies[key].version) ? ` v${isSetObject.isSetObject(context.dependencies[key]) && isSetString.isSetString(context.dependencies[key].version) ? context.dependencies[key].version : _package.getPackageVersion(key)}` : ""} (${(isString.isString(context.dependencies[key]) ? context.dependencies[key] : context.dependencies[key]?.type) || "dependency"})`).join("\n")}`);
|
|
2640
|
-
for (const [key, value] of Object.entries(context.dependencies)) {
|
|
2641
|
-
const version = isSetObject.isSetObject(value) && semverFns.isValidRange(value.version) && value.version || _package.getPackageVersion(key);
|
|
2642
|
-
await installPackage(context, version ? `${_package.getPackageName(key)}@${String(version)}` : _package.getPackageName(key), (isSetString.isSetString(value) ? value : value.type) === "devDependency");
|
|
2639
|
+
context.dependencies.unstorage = "latest";
|
|
2643
2640
|
}
|
|
2641
|
+
await Promise.all([
|
|
2642
|
+
Promise.all(Object.entries(context.dependencies).map(async ([name, version]) => installPackage(context, `${_package.getPackageName(name)}@${String(version)}`, false))),
|
|
2643
|
+
Promise.all(Object.entries(context.devDependencies).map(async ([name, version]) => installPackage(context, `${_package.getPackageName(name)}@${String(version)}`, true)))
|
|
2644
|
+
]);
|
|
2644
2645
|
}
|
|
2645
2646
|
chunkIVLD7PCJ_cjs.__name(installDependencies, "installDependencies");
|
|
2646
2647
|
async function resolveTsconfigChanges(context) {
|
|
@@ -2952,7 +2953,7 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
2952
2953
|
await this.#executeEnvironments(async (context) => {
|
|
2953
2954
|
context.log(types.LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
|
|
2954
2955
|
await this.callPreHook(context, "new");
|
|
2955
|
-
const files = await listFiles.listFiles(joinPaths.joinPaths(context.
|
|
2956
|
+
const files = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
|
|
2956
2957
|
for (const file of files) {
|
|
2957
2958
|
context.log(types.LogLevelLabel.TRACE, `Adding template file: ${file}`);
|
|
2958
2959
|
const template = Handlebars__default.default.compile(file);
|
|
@@ -2960,14 +2961,14 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
2960
2961
|
}
|
|
2961
2962
|
await this.callNormalHook(context, "new");
|
|
2962
2963
|
if (context.config.projectType === "application") {
|
|
2963
|
-
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.
|
|
2964
|
+
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
|
|
2964
2965
|
for (const file of files2) {
|
|
2965
2966
|
context.log(types.LogLevelLabel.TRACE, `Adding application template file: ${file}`);
|
|
2966
2967
|
const template = Handlebars__default.default.compile(file);
|
|
2967
2968
|
await chunkN72CP5AR_cjs.writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
|
|
2968
2969
|
}
|
|
2969
2970
|
} else {
|
|
2970
|
-
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.
|
|
2971
|
+
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/library/**/*.hbs"));
|
|
2971
2972
|
for (const file of files2) {
|
|
2972
2973
|
context.log(types.LogLevelLabel.TRACE, `Adding library template file: ${file}`);
|
|
2973
2974
|
const template = Handlebars__default.default.compile(file);
|
|
@@ -3474,5 +3475,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
3474
3475
|
chunkIVLD7PCJ_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
3475
3476
|
|
|
3476
3477
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
3477
|
-
//# sourceMappingURL=chunk-
|
|
3478
|
-
//# sourceMappingURL=chunk-
|
|
3478
|
+
//# sourceMappingURL=chunk-PTSKT4XY.cjs.map
|
|
3479
|
+
//# sourceMappingURL=chunk-PTSKT4XY.cjs.map
|