powerlines 0.34.9 → 0.35.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/{api-C8dgNF9j.d.ts → api-COIRY1ax.d.ts} +1 -1
- package/dist/{api-64F6GdFq.d.cts → api-CxyJd-92.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +2 -2
- package/dist/astro.d.ts +2 -2
- package/dist/astro.js +3 -3
- package/dist/{chunk-BY2N3ZJV.js → chunk-47E5QNQ4.js} +31 -6
- package/dist/chunk-4REMPO7H.cjs +12 -0
- package/dist/{chunk-O5QCLZXU.cjs → chunk-4UKEJFEK.cjs} +4 -4
- package/dist/{chunk-V64P3LPH.cjs → chunk-646ME4ZX.cjs} +31 -6
- package/dist/{chunk-MLAI362G.js → chunk-DIST6JFP.js} +3 -3
- package/dist/{chunk-MBPLCGMU.js → chunk-EDGXDGV6.js} +3 -3
- package/dist/{chunk-IWD7XNVY.js → chunk-EJZVAP3T.js} +2 -2
- package/dist/{chunk-RFPNTMLX.js → chunk-GIOACISS.js} +2 -2
- package/dist/{chunk-3HMEVUF3.js → chunk-GZASNGQB.js} +3 -3
- package/dist/{chunk-NJRZDDTZ.cjs → chunk-IJXEMXLH.cjs} +2 -2
- package/dist/{chunk-IMRQNWR4.cjs → chunk-J7JYKBFM.cjs} +4 -4
- package/dist/chunk-RYZW2JZK.cjs +12 -0
- package/dist/{chunk-WLBT35SV.cjs → chunk-SR3WDRRW.cjs} +5 -5
- package/dist/{chunk-BCF2FSIU.cjs → chunk-UMU2MF3G.cjs} +2 -2
- package/dist/{chunk-JZA7N2M4.js → chunk-W7OFOUPX.js} +3 -3
- package/dist/{chunk-AMPAP7VJ.js → chunk-YJKLJ3GQ.js} +3 -3
- package/dist/{context-CD3z3bug.d.ts → context-7a7T6hnU.d.ts} +15 -11
- package/dist/{context-CybU4gzB.d.cts → context-BUX8x49H.d.cts} +15 -11
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +2 -2
- package/dist/farm.d.ts +2 -2
- package/dist/farm.js +2 -2
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/lib/{api-WGXMngpt.d.ts → api-Cb-YJbti.d.ts} +1 -1
- package/dist/lib/{api-C-muqDwC.d.cts → api-o283pq2_.d.cts} +1 -1
- package/dist/lib/build/esbuild.d.cts +2 -2
- package/dist/lib/build/esbuild.d.ts +2 -2
- package/dist/lib/build/index.d.cts +4 -4
- package/dist/lib/build/index.d.ts +4 -4
- package/dist/lib/build/rolldown.d.cts +2 -2
- package/dist/lib/build/rolldown.d.ts +2 -2
- package/dist/lib/build/rollup.d.cts +2 -2
- package/dist/lib/build/rollup.d.ts +2 -2
- package/dist/lib/build/rspack.d.cts +2 -2
- package/dist/lib/build/rspack.d.ts +2 -2
- package/dist/lib/build/tsdown.d.cts +2 -2
- package/dist/lib/build/tsdown.d.ts +2 -2
- package/dist/lib/build/tsup.d.cts +2 -2
- package/dist/lib/build/tsup.d.ts +2 -2
- package/dist/lib/build/unbuild.d.cts +4 -4
- package/dist/lib/build/unbuild.d.ts +4 -4
- package/dist/lib/build/vite.d.cts +2 -2
- package/dist/lib/build/vite.d.ts +2 -2
- package/dist/lib/build/webpack.d.cts +2 -2
- package/dist/lib/build/webpack.d.ts +2 -2
- package/dist/lib/{chunk-VM6LBJ3L.cjs → chunk-4BKSY5J3.cjs} +13 -13
- package/dist/lib/chunk-4BKSY5J3.cjs.map +1 -0
- package/dist/lib/{chunk-UWOD2XLX.cjs → chunk-53LK7IG5.cjs} +17 -3
- package/dist/lib/chunk-53LK7IG5.cjs.map +1 -0
- package/dist/lib/{chunk-UZSTEOLF.cjs → chunk-AB7WAQKQ.cjs} +18 -7
- package/dist/lib/chunk-AB7WAQKQ.cjs.map +1 -0
- package/dist/lib/{chunk-2KYZLGIZ.js → chunk-B4LJXEQJ.js} +4 -4
- package/dist/lib/{chunk-2KYZLGIZ.js.map → chunk-B4LJXEQJ.js.map} +1 -1
- package/dist/lib/{chunk-MBGLVIJD.js → chunk-KGDZEBEG.js} +3 -3
- package/dist/lib/{chunk-MBGLVIJD.js.map → chunk-KGDZEBEG.js.map} +1 -1
- package/dist/lib/{chunk-HVL3SPVN.js → chunk-NPNGVDKT.js} +5 -5
- package/dist/lib/chunk-NPNGVDKT.js.map +1 -0
- package/dist/lib/{chunk-VPZU5BTK.js → chunk-O4C6TIYD.js} +16 -5
- package/dist/lib/chunk-O4C6TIYD.js.map +1 -0
- package/dist/lib/{chunk-RRPFZDGI.cjs → chunk-QD4XCQEJ.cjs} +6 -6
- package/dist/lib/{chunk-RRPFZDGI.cjs.map → chunk-QD4XCQEJ.cjs.map} +1 -1
- package/dist/lib/{chunk-NXUMUI2Z.js → chunk-TB2ZWKZN.js} +17 -3
- package/dist/lib/chunk-TB2ZWKZN.js.map +1 -0
- package/dist/lib/{chunk-XXQREHLK.cjs → chunk-WNRJMFOH.cjs} +13 -13
- package/dist/lib/{chunk-XXQREHLK.cjs.map → chunk-WNRJMFOH.cjs.map} +1 -1
- package/dist/lib/{config-ba1qwxTg.d.ts → config-B0dZ9FXz.d.ts} +15 -11
- package/dist/lib/{config-Lr7p1CKw.d.cts → config-Dx1Tjwb_.d.cts} +15 -11
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +4 -4
- package/dist/lib/contexts/api-context.d.ts +4 -4
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +4 -4
- package/dist/lib/contexts/context.d.ts +4 -4
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +4 -4
- package/dist/lib/contexts/environment-context.d.ts +4 -4
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +4 -4
- package/dist/lib/contexts/plugin-context.d.ts +4 -4
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.d.cts +2 -2
- package/dist/lib/fs/index.d.ts +2 -2
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/storage/base.d.cts +1 -1
- package/dist/lib/fs/storage/base.d.ts +1 -1
- package/dist/lib/fs/storage/file-system.d.cts +1 -1
- package/dist/lib/fs/storage/file-system.d.ts +1 -1
- package/dist/lib/fs/storage/index.d.cts +1 -1
- package/dist/lib/fs/storage/index.d.ts +1 -1
- package/dist/lib/fs/storage/virtual.d.cts +1 -1
- package/dist/lib/fs/storage/virtual.d.ts +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/{fs-BkpNEsxT.d.ts → fs-Mx46r7JY.d.cts} +2 -2
- package/dist/lib/{fs-BkpNEsxT.d.cts → fs-Mx46r7JY.d.ts} +2 -2
- package/dist/lib/index.cjs +10 -10
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-CSgMKSqU.d.cts → internal-Dh1B57sD.d.cts} +2 -2
- package/dist/lib/{internal-Cy15nTJD.d.ts → internal-OHcbatLn.d.ts} +2 -2
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.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/ts-morph.d.cts +2 -2
- package/dist/lib/typescript/ts-morph.d.ts +2 -2
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/{unplugin-C1FUzEE1.d.ts → unplugin-CIERKIKa.d.ts} +2 -2
- package/dist/lib/{unplugin-DQ_UxGcQ.d.cts → unplugin-N6xGaF9e.d.cts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/cache.d.cts +2 -2
- package/dist/lib/utilities/cache.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/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/source-file.d.cts +2 -2
- package/dist/lib/utilities/source-file.d.ts +2 -2
- package/dist/lib/utilities/source-map.d.cts +2 -2
- package/dist/lib/utilities/source-map.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 +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{context-D7SEhuVP.d.ts → context-Cm0RgCUT.d.cts} +17 -13
- package/dist/plugin-utils/{context-D7SEhuVP.d.cts → context-Cm0RgCUT.d.ts} +17 -13
- package/dist/plugin-utils/context-helpers.d.cts +2 -2
- package/dist/plugin-utils/context-helpers.d.ts +2 -2
- package/dist/plugin-utils/enforce.d.cts +2 -2
- package/dist/plugin-utils/enforce.d.ts +2 -2
- package/dist/plugin-utils/extend.d.cts +2 -2
- package/dist/plugin-utils/extend.d.ts +2 -2
- package/dist/plugin-utils/get-config-path.d.cts +2 -2
- package/dist/plugin-utils/get-config-path.d.ts +2 -2
- package/dist/plugin-utils/helpers.d.cts +2 -2
- package/dist/plugin-utils/helpers.d.ts +2 -2
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.ts +2 -2
- package/dist/plugin-utils/merge.d.cts +2 -2
- package/dist/plugin-utils/merge.d.ts +2 -2
- package/dist/plugin-utils/paths.d.cts +2 -2
- package/dist/plugin-utils/paths.d.ts +2 -2
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.ts +2 -2
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +3 -3
- package/dist/types/api.d.ts +3 -3
- 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/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 +2 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/context.js +1 -1
- package/dist/types/fs.cjs +3 -3
- package/dist/types/fs.d.cts +2 -2
- package/dist/types/fs.d.ts +2 -2
- package/dist/types/fs.js +1 -1
- package/dist/types/hooks.d.cts +2 -2
- package/dist/types/hooks.d.ts +2 -2
- package/dist/types/index.cjs +5 -5
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +3 -3
- package/dist/types/internal.d.ts +3 -3
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +3 -3
- package/dist/types/unplugin.d.ts +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +2 -2
- package/dist/unloader.d.ts +2 -2
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +5 -5
- package/dist/unplugin.d.cts +3 -3
- package/dist/unplugin.d.ts +3 -3
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-2GKVCE3E.cjs +0 -12
- package/dist/chunk-JTZS2TSQ.cjs +0 -12
- package/dist/lib/chunk-HVL3SPVN.js.map +0 -1
- package/dist/lib/chunk-NXUMUI2Z.js.map +0 -1
- package/dist/lib/chunk-UWOD2XLX.cjs.map +0 -1
- package/dist/lib/chunk-UZSTEOLF.cjs.map +0 -1
- package/dist/lib/chunk-VM6LBJ3L.cjs.map +0 -1
- package/dist/lib/chunk-VPZU5BTK.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-7a7T6hnU.js';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BUX8x49H.cjs';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk646ME4ZX_cjs = require('./chunk-646ME4ZX.cjs');
|
|
4
4
|
require('./chunk-VFXZVCGG.cjs');
|
|
5
5
|
require('./chunk-Z6ARQDHR.cjs');
|
|
6
6
|
require('./chunk-PK6SKIKE.cjs');
|
|
@@ -9,7 +9,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk646ME4ZX_cjs.PowerlinesAPI; }
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=api.cjs.map
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-CxyJd-92.cjs';
|
|
2
|
+
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BUX8x49H.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-COIRY1ax.js';
|
|
2
|
+
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-7a7T6hnU.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunk4UKEJFEK_cjs = require('./chunk-4UKEJFEK.cjs');
|
|
6
6
|
require('./chunk-QHEKB7RW.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-SR3WDRRW.cjs');
|
|
8
|
+
require('./chunk-646ME4ZX.cjs');
|
|
9
9
|
require('./chunk-VFXZVCGG.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
@@ -14,7 +14,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
15
15
|
vite: {
|
|
16
16
|
plugins: [
|
|
17
|
-
|
|
17
|
+
chunk4UKEJFEK_cjs.vite_default(config)
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cu as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cu as ViteResolvedConfig } from './context-BUX8x49H.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cu as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cu as ViteResolvedConfig } from './context-7a7T6hnU.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-DIST6JFP.js';
|
|
2
2
|
import './chunk-YJWTNJQF.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-W7OFOUPX.js';
|
|
4
|
+
import './chunk-47E5QNQ4.js';
|
|
5
5
|
import './chunk-JGSCIWFQ.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
|
7
7
|
import { __name } from './chunk-7QVYU63E.js';
|
|
@@ -1873,6 +1873,20 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1873
1873
|
};
|
|
1874
1874
|
return ret;
|
|
1875
1875
|
}, {});
|
|
1876
|
+
if (context.config.skipCache !== true) {
|
|
1877
|
+
Object.entries(this.#metadata).filter(([, value]) => value.type === "entry").forEach(([id, value]) => {
|
|
1878
|
+
this.#context.entry ??= [];
|
|
1879
|
+
this.#context.entry.push({
|
|
1880
|
+
file: id,
|
|
1881
|
+
name: value.properties.name,
|
|
1882
|
+
output: value.properties.output,
|
|
1883
|
+
input: value.properties["input.file"] ? {
|
|
1884
|
+
file: value.properties["input.file"],
|
|
1885
|
+
name: value.properties["input.name"]
|
|
1886
|
+
} : void 0
|
|
1887
|
+
});
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1876
1890
|
}
|
|
1877
1891
|
this.#ids = {};
|
|
1878
1892
|
this.#paths = {};
|
|
@@ -2475,7 +2489,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2475
2489
|
fileMetadata.timestamp = value.timestamp ?? BigInt(Date.now());
|
|
2476
2490
|
if (value.properties) {
|
|
2477
2491
|
const props = fileMetadata._initProperties(Object.keys(value.properties).length);
|
|
2478
|
-
Object.entries(value.properties).forEach(([key, val], index2) => {
|
|
2492
|
+
Object.entries(value.properties).filter(([, val]) => isSetString(val)).forEach(([key, val], index2) => {
|
|
2479
2493
|
const prop = props.get(index2);
|
|
2480
2494
|
prop.key = key;
|
|
2481
2495
|
prop.value = val;
|
|
@@ -3087,13 +3101,24 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3087
3101
|
* @param options - Optional write file options
|
|
3088
3102
|
*/
|
|
3089
3103
|
async emitEntry(code, path, options = {}) {
|
|
3090
|
-
|
|
3104
|
+
const entryPath = isAbsolute(path) ? path : appendPath(path, this.entryPath);
|
|
3105
|
+
this.entry ??= [];
|
|
3106
|
+
this.entry.push({
|
|
3107
|
+
name: options.name,
|
|
3108
|
+
file: entryPath,
|
|
3109
|
+
input: options.input,
|
|
3110
|
+
output: options.output
|
|
3111
|
+
});
|
|
3112
|
+
return this.fs.write(entryPath, code, defu7(omit(options, [
|
|
3091
3113
|
"name"
|
|
3092
3114
|
]), {
|
|
3093
3115
|
meta: {
|
|
3094
3116
|
type: "entry",
|
|
3095
3117
|
properties: {
|
|
3096
|
-
name: options.name
|
|
3118
|
+
name: options.name,
|
|
3119
|
+
output: options.output,
|
|
3120
|
+
"input.file": options.input?.file,
|
|
3121
|
+
"input.name": options.input?.name
|
|
3097
3122
|
}
|
|
3098
3123
|
}
|
|
3099
3124
|
}));
|
|
@@ -4005,7 +4030,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4005
4030
|
order: "normal"
|
|
4006
4031
|
});
|
|
4007
4032
|
context.log(LogLevelLabel.DEBUG, `The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4008
|
-
${context.entry.map((entry) => `- ${entry.
|
|
4033
|
+
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
|
|
4009
4034
|
await resolveTsconfig(context);
|
|
4010
4035
|
await installDependencies(context);
|
|
4011
4036
|
await this.callHook("configResolved", {
|
|
@@ -4571,5 +4596,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4571
4596
|
};
|
|
4572
4597
|
|
|
4573
4598
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createLog, extendLog };
|
|
4574
|
-
//# sourceMappingURL=chunk-
|
|
4575
|
-
//# sourceMappingURL=chunk-
|
|
4599
|
+
//# sourceMappingURL=chunk-47E5QNQ4.js.map
|
|
4600
|
+
//# sourceMappingURL=chunk-47E5QNQ4.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSR3WDRRW_cjs = require('./chunk-SR3WDRRW.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkSR3WDRRW_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-4REMPO7H.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-4REMPO7H.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkSR3WDRRW_cjs = require('./chunk-SR3WDRRW.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
97
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
98
98
|
|
|
99
99
|
// src/vite.ts
|
|
100
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunkSR3WDRRW_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
101
101
|
return {
|
|
102
102
|
...plugin,
|
|
103
103
|
vite: {
|
|
@@ -158,5 +158,5 @@ var vite_default = vite;
|
|
|
158
158
|
|
|
159
159
|
exports.vite = vite;
|
|
160
160
|
exports.vite_default = vite_default;
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-4UKEJFEK.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-4UKEJFEK.cjs.map
|
|
@@ -1902,6 +1902,20 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
return ret;
|
|
1904
1904
|
}, {});
|
|
1905
|
+
if (context.config.skipCache !== true) {
|
|
1906
|
+
Object.entries(this.#metadata).filter(([, value]) => value.type === "entry").forEach(([id, value]) => {
|
|
1907
|
+
this.#context.entry ??= [];
|
|
1908
|
+
this.#context.entry.push({
|
|
1909
|
+
file: id,
|
|
1910
|
+
name: value.properties.name,
|
|
1911
|
+
output: value.properties.output,
|
|
1912
|
+
input: value.properties["input.file"] ? {
|
|
1913
|
+
file: value.properties["input.file"],
|
|
1914
|
+
name: value.properties["input.name"]
|
|
1915
|
+
} : void 0
|
|
1916
|
+
});
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1905
1919
|
}
|
|
1906
1920
|
this.#ids = {};
|
|
1907
1921
|
this.#paths = {};
|
|
@@ -2504,7 +2518,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2504
2518
|
fileMetadata.timestamp = value.timestamp ?? BigInt(Date.now());
|
|
2505
2519
|
if (value.properties) {
|
|
2506
2520
|
const props = fileMetadata._initProperties(Object.keys(value.properties).length);
|
|
2507
|
-
Object.entries(value.properties).forEach(([key, val], index2) => {
|
|
2521
|
+
Object.entries(value.properties).filter(([, val]) => isSetString.isSetString(val)).forEach(([key, val], index2) => {
|
|
2508
2522
|
const prop = props.get(index2);
|
|
2509
2523
|
prop.key = key;
|
|
2510
2524
|
prop.value = val;
|
|
@@ -3116,13 +3130,24 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3116
3130
|
* @param options - Optional write file options
|
|
3117
3131
|
*/
|
|
3118
3132
|
async emitEntry(code, path, options = {}) {
|
|
3119
|
-
|
|
3133
|
+
const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
|
|
3134
|
+
this.entry ??= [];
|
|
3135
|
+
this.entry.push({
|
|
3136
|
+
name: options.name,
|
|
3137
|
+
file: entryPath,
|
|
3138
|
+
input: options.input,
|
|
3139
|
+
output: options.output
|
|
3140
|
+
});
|
|
3141
|
+
return this.fs.write(entryPath, code, defu7__default.default(omit.omit(options, [
|
|
3120
3142
|
"name"
|
|
3121
3143
|
]), {
|
|
3122
3144
|
meta: {
|
|
3123
3145
|
type: "entry",
|
|
3124
3146
|
properties: {
|
|
3125
|
-
name: options.name
|
|
3147
|
+
name: options.name,
|
|
3148
|
+
output: options.output,
|
|
3149
|
+
"input.file": options.input?.file,
|
|
3150
|
+
"input.name": options.input?.name
|
|
3126
3151
|
}
|
|
3127
3152
|
}
|
|
3128
3153
|
}));
|
|
@@ -4034,7 +4059,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4034
4059
|
order: "normal"
|
|
4035
4060
|
});
|
|
4036
4061
|
context.log(types.LogLevelLabel.DEBUG, `The configuration provided ${toArray.toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4037
|
-
${context.entry.map((entry) => `- ${entry.
|
|
4062
|
+
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
|
|
4038
4063
|
await resolveTsconfig(context);
|
|
4039
4064
|
await installDependencies(context);
|
|
4040
4065
|
await this.callHook("configResolved", {
|
|
@@ -4608,5 +4633,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
|
|
|
4608
4633
|
exports._capnpFileId = _capnpFileId;
|
|
4609
4634
|
exports.createLog = createLog;
|
|
4610
4635
|
exports.extendLog = extendLog;
|
|
4611
|
-
//# sourceMappingURL=chunk-
|
|
4612
|
-
//# sourceMappingURL=chunk-
|
|
4636
|
+
//# sourceMappingURL=chunk-646ME4ZX.cjs.map
|
|
4637
|
+
//# sourceMappingURL=chunk-646ME4ZX.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-W7OFOUPX.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
151
151
|
var vite_default = vite;
|
|
152
152
|
|
|
153
153
|
export { vite, vite_default };
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-DIST6JFP.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-DIST6JFP.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-W7OFOUPX.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-EDGXDGV6.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-EDGXDGV6.js.map
|
|
@@ -3,5 +3,5 @@ var __VFS_PATCH__ = "__VFS_PATCH__";
|
|
|
3
3
|
var __VFS_REVERT__ = "__VFS_REVERT__";
|
|
4
4
|
|
|
5
5
|
export { __VFS_PATCH__, __VFS_REVERT__ };
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
//# sourceMappingURL=chunk-EJZVAP3T.js.map
|
|
7
|
+
//# sourceMappingURL=chunk-EJZVAP3T.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-W7OFOUPX.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-GZASNGQB.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-GZASNGQB.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkSR3WDRRW_cjs = require('./chunk-SR3WDRRW.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
7
7
|
var unplugin = require('unplugin');
|
|
8
8
|
|
|
9
|
-
var esbuild = unplugin.createEsbuildPlugin(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunkSR3WDRRW_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
|
|
|
32
32
|
|
|
33
33
|
exports.esbuild = esbuild;
|
|
34
34
|
exports.esbuild_default = esbuild_default;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-J7JYKBFM.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-J7JYKBFM.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSR3WDRRW_cjs = require('./chunk-SR3WDRRW.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkSR3WDRRW_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-RYZW2JZK.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-RYZW2JZK.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk646ME4ZX_cjs = require('./chunk-646ME4ZX.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
|
|
|
27
27
|
// src/lib/unplugin/factory.ts
|
|
28
28
|
function createUnpluginFactory(variant, decorate) {
|
|
29
29
|
return (config, meta) => {
|
|
30
|
-
const log =
|
|
30
|
+
const log = chunk646ME4ZX_cjs.createLog("unplugin", config);
|
|
31
31
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
32
32
|
try {
|
|
33
33
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
let api;
|
|
39
39
|
async function buildStart() {
|
|
40
40
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunk646ME4ZX_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
|
|
42
42
|
unplugin.setParseImpl(api.context.parse);
|
|
43
43
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
44
44
|
await api.prepare({
|
|
@@ -132,5 +132,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
132
132
|
|
|
133
133
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
134
134
|
exports.getString = getString;
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
135
|
+
//# sourceMappingURL=chunk-SR3WDRRW.cjs.map
|
|
136
|
+
//# sourceMappingURL=chunk-SR3WDRRW.cjs.map
|
|
@@ -6,5 +6,5 @@ var __VFS_REVERT__ = "__VFS_REVERT__";
|
|
|
6
6
|
|
|
7
7
|
exports.__VFS_PATCH__ = __VFS_PATCH__;
|
|
8
8
|
exports.__VFS_REVERT__ = __VFS_REVERT__;
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-UMU2MF3G.cjs.map
|
|
10
|
+
//# sourceMappingURL=chunk-UMU2MF3G.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-47E5QNQ4.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -129,5 +129,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
129
129
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
130
130
|
|
|
131
131
|
export { createUnpluginFactory, getString };
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
132
|
+
//# sourceMappingURL=chunk-W7OFOUPX.js.map
|
|
133
|
+
//# sourceMappingURL=chunk-W7OFOUPX.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-W7OFOUPX.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-YJKLJ3GQ.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-YJKLJ3GQ.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
2
|
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
3
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
4
|
-
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
5
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
6
5
|
import { Worker } from 'jest-worker';
|
|
7
6
|
import { Jiti } from 'jiti';
|
|
@@ -16,6 +15,7 @@ import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } f
|
|
|
16
15
|
import { Format } from '@storm-software/build-tools/types';
|
|
17
16
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
18
17
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
18
|
+
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
19
19
|
import { AssetGlob } from '@stryke/types/file';
|
|
20
20
|
import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
|
|
21
21
|
import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfig$2 } from 'vite';
|
|
@@ -109,7 +109,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
109
109
|
/**
|
|
110
110
|
* The user provided entry point in the source code
|
|
111
111
|
*/
|
|
112
|
-
input
|
|
112
|
+
input?: TypeDefinition;
|
|
113
113
|
/**
|
|
114
114
|
* An optional name to use in the package export during the build process
|
|
115
115
|
*/
|
|
@@ -1054,6 +1054,9 @@ type UnimportContext = Omit<Unimport, "injectImports"> & {
|
|
|
1054
1054
|
interface SelectHooksOptions {
|
|
1055
1055
|
order?: "pre" | "post" | "normal";
|
|
1056
1056
|
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Options for initializing or updating the context with new configuration values
|
|
1059
|
+
*/
|
|
1057
1060
|
interface InitContextOptions {
|
|
1058
1061
|
/**
|
|
1059
1062
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -1062,27 +1065,28 @@ interface InitContextOptions {
|
|
|
1062
1065
|
*/
|
|
1063
1066
|
isHighPriority: boolean;
|
|
1064
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
1070
|
+
*/
|
|
1065
1071
|
interface FetchOptions extends FetchRequestOptions {
|
|
1066
1072
|
/**
|
|
1067
1073
|
* An indicator specifying that the request should bypass any caching
|
|
1068
1074
|
*/
|
|
1069
1075
|
skipCache?: boolean;
|
|
1070
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
1079
|
+
*/
|
|
1071
1080
|
interface ParseOptions extends ParserOptions {
|
|
1072
1081
|
/**
|
|
1073
1082
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1074
1083
|
*/
|
|
1075
1084
|
allowReturnOutsideFunction?: boolean;
|
|
1076
1085
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
* @remarks
|
|
1082
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
1083
|
-
*/
|
|
1084
|
-
name?: TypeDefinition["name"];
|
|
1085
|
-
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Options for emitting entry virtual files
|
|
1088
|
+
*/
|
|
1089
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
1086
1090
|
/**
|
|
1087
1091
|
* The unresolved Powerlines context.
|
|
1088
1092
|
*
|