powerlines 0.30.13 → 0.31.1
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-jxhfIQp9.d.cts → api-B0ptP6qb.d.cts} +1 -1
- package/dist/{api-CXv3AaZq.d.ts → api-T2Rpxoy_.d.ts} +1 -1
- package/dist/api.cjs +3 -3
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/astro.cjs +5 -5
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +4 -4
- package/dist/chunk-2TPZV3VK.cjs +12 -0
- package/dist/chunk-45YZCBHR.cjs +12 -0
- package/dist/{chunk-ZFMDBIE2.js → chunk-D5WIJFI4.js} +2 -2
- package/dist/{chunk-753CT77J.js → chunk-DZY3LNTY.js} +3 -3
- package/dist/{chunk-VLTSN4BC.js → chunk-EMIKBRCT.js} +61 -29
- package/dist/{chunk-LMASEANM.js → chunk-FJ5JKE4N.js} +18 -5
- package/dist/{chunk-YFKHICPO.cjs → chunk-GHDZ3BE6.cjs} +2 -2
- package/dist/{chunk-ZYU7E7JL.js → chunk-JGSCIWFQ.js} +2 -2
- package/dist/{chunk-6S6OZJYJ.js → chunk-NGRCYHUU.js} +3 -3
- package/dist/{chunk-XUT7OSUL.cjs → chunk-OENQ5VVB.cjs} +62 -30
- package/dist/{chunk-BLQAOMJB.js → chunk-RPBIX6JI.js} +3 -3
- package/dist/{chunk-R4HDRLOF.cjs → chunk-UDPMUFXM.cjs} +19 -6
- package/dist/{chunk-3YOLTBW7.cjs → chunk-VFXZVCGG.cjs} +2 -2
- package/dist/{chunk-4PIQOC7T.cjs → chunk-XTSKPL6I.cjs} +5 -5
- package/dist/{chunk-E2IMELHG.js → chunk-Z5MNSDM4.js} +3 -3
- package/dist/{chunk-73HMVW7B.cjs → chunk-ZLLAZ5LF.cjs} +4 -4
- package/dist/{context-Bzahbvre.d.cts → context-BGFgv6JB.d.cts} +19 -1
- package/dist/{context-DIXLOQWy.d.ts → context-Bv1Saa4e.d.ts} +19 -1
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +3 -3
- package/dist/index.cjs +13 -13
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/lib/{api-JesRJRuE.d.cts → api-Cpbei2p8.d.cts} +1 -1
- package/dist/lib/{api-D1XGInIf.d.ts → api-Xq9Nk4VC.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.cjs +3 -3
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/index.js +1 -1
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsdown.d.cts +1 -1
- package/dist/lib/build/tsdown.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.cjs +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/vite.js +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-NRH2VGE4.js → chunk-72NPPPRF.js} +29 -4
- package/dist/lib/chunk-72NPPPRF.js.map +1 -0
- package/dist/lib/{chunk-YV2TNMIL.cjs → chunk-ACVINY5F.cjs} +30 -5
- package/dist/lib/chunk-ACVINY5F.cjs.map +1 -0
- package/dist/lib/{chunk-TMQFJ5FK.js → chunk-AEUGNAWZ.js} +35 -28
- package/dist/lib/chunk-AEUGNAWZ.js.map +1 -0
- package/dist/lib/{chunk-YFB6OGXJ.js → chunk-CRH3UFPJ.js} +17 -4
- package/dist/lib/chunk-CRH3UFPJ.js.map +1 -0
- package/dist/lib/{chunk-7OO4SKFN.cjs → chunk-DJR7QB4T.cjs} +17 -4
- package/dist/lib/chunk-DJR7QB4T.cjs.map +1 -0
- package/dist/lib/{chunk-DMQ7IY4L.js → chunk-FR2ZVFLT.js} +2 -2
- package/dist/lib/{chunk-DMQ7IY4L.js.map → chunk-FR2ZVFLT.js.map} +1 -1
- package/dist/lib/{chunk-VXSQ52OZ.cjs → chunk-O6E2NAHX.cjs} +36 -29
- package/dist/lib/chunk-O6E2NAHX.cjs.map +1 -0
- package/dist/lib/{chunk-OSLTVUMN.cjs → chunk-UHQU5ASL.cjs} +2 -2
- package/dist/lib/{chunk-OSLTVUMN.cjs.map → chunk-UHQU5ASL.cjs.map} +1 -1
- package/dist/lib/{config-jmSBo5Uf.d.ts → config-BR0ecb9N.d.ts} +32 -3
- package/dist/lib/{config-DQwfksQx.d.cts → config-CvJCttn8.d.cts} +32 -3
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/contexts/api-context.cjs +3 -3
- package/dist/lib/contexts/api-context.d.cts +18 -3
- package/dist/lib/contexts/api-context.d.ts +18 -3
- package/dist/lib/contexts/api-context.js +2 -2
- package/dist/lib/contexts/context.d.cts +3 -3
- package/dist/lib/contexts/context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.cjs +2 -2
- package/dist/lib/contexts/environment-context.d.cts +3 -3
- package/dist/lib/contexts/environment-context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.js +1 -1
- package/dist/lib/contexts/index.cjs +4 -4
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +2 -2
- package/dist/lib/contexts/plugin-context.d.cts +3 -3
- package/dist/lib/contexts/plugin-context.d.ts +3 -3
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/fs/index.d.cts +1 -1
- package/dist/lib/fs/index.d.ts +1 -1
- package/dist/lib/fs/vfs.d.cts +1 -1
- package/dist/lib/fs/vfs.d.ts +1 -1
- package/dist/lib/index.cjs +6 -6
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +3 -3
- package/dist/lib/{internal-BVDm0kBL.d.cts → internal-CgKAUH2G.d.cts} +2 -2
- package/dist/lib/{internal-BM4-dK4g.d.ts → internal-Dae64cVF.d.ts} +2 -2
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +4 -4
- package/dist/lib/unplugin/factory.d.cts +3 -3
- package/dist/lib/unplugin/factory.d.ts +3 -3
- package/dist/lib/unplugin/factory.js +3 -3
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +4 -4
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +3 -3
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/{unplugin-BZkVo2w3.d.cts → unplugin-DiXnp3FJ.d.cts} +2 -2
- package/dist/lib/{unplugin-DZeOgtvW.d.ts → unplugin-sk-4XDIu.d.ts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +5 -5
- package/dist/next.js +4 -4
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +6 -6
- package/dist/plugin-utils/{context-BusdtMHI.d.cts → context-BKItR0Gj.d.cts} +19 -1
- package/dist/plugin-utils/{context-BusdtMHI.d.ts → context-BKItR0Gj.d.ts} +19 -1
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +4 -4
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -3
- package/dist/tsdown.cjs +5 -5
- package/dist/tsdown.js +4 -4
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types/api.d.cts +2 -2
- package/dist/types/api.d.ts +2 -2
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/build.d.cts +13 -2
- package/dist/types/build.d.ts +13 -2
- 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 +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/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.cjs +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/plugin.js +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +4 -4
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +3 -3
- package/dist/unplugin.cjs +6 -6
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +4 -4
- package/package.json +13 -13
- package/dist/chunk-3QPWBUQF.cjs +0 -12
- package/dist/chunk-CA4T7HLA.cjs +0 -12
- package/dist/lib/chunk-7OO4SKFN.cjs.map +0 -1
- package/dist/lib/chunk-NRH2VGE4.js.map +0 -1
- package/dist/lib/chunk-TMQFJ5FK.js.map +0 -1
- package/dist/lib/chunk-VXSQ52OZ.cjs.map +0 -1
- package/dist/lib/chunk-YFB6OGXJ.js.map +0 -1
- package/dist/lib/chunk-YV2TNMIL.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-BGFgv6JB.cjs';
|
|
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, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-Bv1Saa4e.js';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
package/dist/api.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkOENQ5VVB_cjs = require('./chunk-OENQ5VVB.cjs');
|
|
4
|
+
require('./chunk-VFXZVCGG.cjs');
|
|
5
5
|
require('./chunk-Z6ARQDHR.cjs');
|
|
6
6
|
require('./chunk-PK6SKIKE.cjs');
|
|
7
7
|
|
|
@@ -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 chunkOENQ5VVB_cjs.PowerlinesAPI; }
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=api.cjs.map
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-B0ptP6qb.cjs';
|
|
2
|
+
import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-BGFgv6JB.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-T2Rpxoy_.js';
|
|
2
|
+
import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-Bv1Saa4e.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PowerlinesAPI } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PowerlinesAPI } from './chunk-EMIKBRCT.js';
|
|
2
|
+
import './chunk-JGSCIWFQ.js';
|
|
3
3
|
import './chunk-2MYPFASJ.js';
|
|
4
4
|
import './chunk-7QVYU63E.js';
|
|
5
5
|
//# sourceMappingURL=api.js.map
|
package/dist/astro.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkUDPMUFXM_cjs = require('./chunk-UDPMUFXM.cjs');
|
|
6
6
|
require('./chunk-AATT73UY.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-XTSKPL6I.cjs');
|
|
8
|
+
require('./chunk-OENQ5VVB.cjs');
|
|
9
|
+
require('./chunk-VFXZVCGG.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
12
12
|
|
|
@@ -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
|
+
chunkUDPMUFXM_cjs.vite_default(config)
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cs as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cs as ViteResolvedConfig } from './context-BGFgv6JB.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cs as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cs as ViteResolvedConfig } from './context-Bv1Saa4e.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/astro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-FJ5JKE4N.js';
|
|
2
2
|
import './chunk-A7PVG2HH.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import './chunk-RPBIX6JI.js';
|
|
4
|
+
import './chunk-EMIKBRCT.js';
|
|
5
|
+
import './chunk-JGSCIWFQ.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
|
7
7
|
import { __name } from './chunk-7QVYU63E.js';
|
|
8
8
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXTSKPL6I_cjs = require('./chunk-XTSKPL6I.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkXTSKPL6I_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-2TPZV3VK.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-2TPZV3VK.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXTSKPL6I_cjs = require('./chunk-XTSKPL6I.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkXTSKPL6I_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-45YZCBHR.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-45YZCBHR.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-RPBIX6JI.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-DZY3LNTY.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-DZY3LNTY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PLUGIN_NON_HOOK_FIELDS } from './chunk-
|
|
1
|
+
import { PLUGIN_NON_HOOK_FIELDS } from './chunk-JGSCIWFQ.js';
|
|
2
2
|
import { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { transformAsync } from '@babel/core';
|
|
@@ -677,7 +677,8 @@ async function resolveTsconfig(context) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
__name(resolveTsconfig, "resolveTsconfig");
|
|
680
|
-
var DEFAULT_ENVIRONMENT = "
|
|
680
|
+
var DEFAULT_ENVIRONMENT = "__DEFAULT__";
|
|
681
|
+
var GLOBAL_ENVIRONMENT = "__GLOBAL__";
|
|
681
682
|
function createEnvironment(name, userConfig) {
|
|
682
683
|
return defu7(userConfig.environments?.[name] ?? {}, {
|
|
683
684
|
name,
|
|
@@ -3851,6 +3852,12 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
3851
3852
|
}
|
|
3852
3853
|
return environment;
|
|
3853
3854
|
}
|
|
3855
|
+
/**
|
|
3856
|
+
* A safe version of `getEnvironment` that returns `undefined` if the environment is not found
|
|
3857
|
+
*
|
|
3858
|
+
* @param name - The name of the environment to retrieve.
|
|
3859
|
+
* @returns The requested environment context or `undefined` if not found.
|
|
3860
|
+
*/
|
|
3854
3861
|
async getEnvironmentSafe(name) {
|
|
3855
3862
|
try {
|
|
3856
3863
|
return await this.getEnvironment(name);
|
|
@@ -3858,6 +3865,24 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
3858
3865
|
return void 0;
|
|
3859
3866
|
}
|
|
3860
3867
|
}
|
|
3868
|
+
/**
|
|
3869
|
+
* A function to merge all configured environments into a single context.
|
|
3870
|
+
*
|
|
3871
|
+
* @remarks
|
|
3872
|
+
* If only one environment is configured, that environment will be returned directly.
|
|
3873
|
+
*
|
|
3874
|
+
* @returns A promise that resolves to a merged/global environment context.
|
|
3875
|
+
*/
|
|
3876
|
+
async toEnvironment() {
|
|
3877
|
+
let environment;
|
|
3878
|
+
if (Object.keys(this.environments).length > 1) {
|
|
3879
|
+
environment = await this.in(createEnvironment(GLOBAL_ENVIRONMENT, this.config.userConfig));
|
|
3880
|
+
this.log(LogLevelLabel.DEBUG, `Combined all ${Object.keys(this.environments).length} environments into a single global context.`);
|
|
3881
|
+
} else {
|
|
3882
|
+
environment = await this.getEnvironment();
|
|
3883
|
+
}
|
|
3884
|
+
return environment;
|
|
3885
|
+
}
|
|
3861
3886
|
};
|
|
3862
3887
|
function getBaseFileHeader(context) {
|
|
3863
3888
|
return `
|
|
@@ -4233,32 +4258,13 @@ ${formatTypes(types)}
|
|
|
4233
4258
|
}) {
|
|
4234
4259
|
this.context.log(LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
|
|
4235
4260
|
await this.prepare(inlineConfig);
|
|
4236
|
-
|
|
4237
|
-
await this.
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
await this.callHook("build", {
|
|
4242
|
-
environment: context,
|
|
4243
|
-
order: "normal"
|
|
4244
|
-
});
|
|
4245
|
-
if (context.config.output.buildPath !== context.config.output.outputPath) {
|
|
4246
|
-
const sourcePath = appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
|
|
4247
|
-
const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
4248
|
-
if (sourcePath !== destinationPath) {
|
|
4249
|
-
context.log(LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
|
|
4250
|
-
await context.fs.copy(sourcePath, destinationPath);
|
|
4251
|
-
}
|
|
4252
|
-
}
|
|
4253
|
-
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
4254
|
-
context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
|
|
4255
|
-
await context.fs.copy(asset, asset.output);
|
|
4256
|
-
}));
|
|
4257
|
-
await this.callHook("build", {
|
|
4258
|
-
environment: context,
|
|
4259
|
-
order: "post"
|
|
4261
|
+
if (this.context.config.singleBuild) {
|
|
4262
|
+
await this.#handleBuild(await this.#context.toEnvironment());
|
|
4263
|
+
} else {
|
|
4264
|
+
await this.#executeEnvironments(async (context) => {
|
|
4265
|
+
await this.#handleBuild(context);
|
|
4260
4266
|
});
|
|
4261
|
-
}
|
|
4267
|
+
}
|
|
4262
4268
|
this.context.log(LogLevelLabel.TRACE, "Powerlines build completed");
|
|
4263
4269
|
}
|
|
4264
4270
|
/**
|
|
@@ -4347,6 +4353,32 @@ ${formatTypes(types)}
|
|
|
4347
4353
|
async [Symbol.asyncDispose]() {
|
|
4348
4354
|
await this.finalize();
|
|
4349
4355
|
}
|
|
4356
|
+
async #handleBuild(context) {
|
|
4357
|
+
await this.callHook("build", {
|
|
4358
|
+
environment: context,
|
|
4359
|
+
order: "pre"
|
|
4360
|
+
});
|
|
4361
|
+
await this.callHook("build", {
|
|
4362
|
+
environment: context,
|
|
4363
|
+
order: "normal"
|
|
4364
|
+
});
|
|
4365
|
+
if (context.config.output.buildPath !== context.config.output.outputPath) {
|
|
4366
|
+
const sourcePath = appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
|
|
4367
|
+
const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
4368
|
+
if (sourcePath !== destinationPath) {
|
|
4369
|
+
context.log(LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
|
|
4370
|
+
await context.fs.copy(sourcePath, destinationPath);
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4373
|
+
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
4374
|
+
context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
|
|
4375
|
+
await context.fs.copy(asset, asset.output);
|
|
4376
|
+
}));
|
|
4377
|
+
await this.callHook("build", {
|
|
4378
|
+
environment: context,
|
|
4379
|
+
order: "post"
|
|
4380
|
+
});
|
|
4381
|
+
}
|
|
4350
4382
|
/**
|
|
4351
4383
|
* Get the configured environments
|
|
4352
4384
|
*
|
|
@@ -4517,5 +4549,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4517
4549
|
};
|
|
4518
4550
|
|
|
4519
4551
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createLog, extendLog };
|
|
4520
|
-
//# sourceMappingURL=chunk-
|
|
4521
|
-
//# sourceMappingURL=chunk-
|
|
4552
|
+
//# sourceMappingURL=chunk-EMIKBRCT.js.map
|
|
4553
|
+
//# sourceMappingURL=chunk-EMIKBRCT.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-RPBIX6JI.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';
|
|
@@ -53,10 +53,23 @@ function extractViteConfig(context) {
|
|
|
53
53
|
conditions: context.config.build.conditions,
|
|
54
54
|
extensions: context.config.build.extensions
|
|
55
55
|
}
|
|
56
|
-
}, context.config.build.variant === "vite" ? context.config.build.override
|
|
56
|
+
}, context.config.build.variant === "vite" ? defu(context.config.build.override ?? {}, {
|
|
57
|
+
optimizeDeps: context.config.build.override?.optimizeDeps ?? {}
|
|
58
|
+
}, {
|
|
59
|
+
optimizeDeps: {
|
|
60
|
+
extensions: context.config.build.override?.extensions
|
|
61
|
+
}
|
|
62
|
+
}) : {}, context.config.build.variant === "vite" ? defu(omit(context.config.build, [
|
|
57
63
|
"override",
|
|
58
64
|
"variant"
|
|
59
|
-
])
|
|
65
|
+
]), {
|
|
66
|
+
optimizeDeps: context.config.build?.optimizeDeps ?? {}
|
|
67
|
+
}, {
|
|
68
|
+
optimizeDeps: {
|
|
69
|
+
extensions: context.config.build.extensions
|
|
70
|
+
}
|
|
71
|
+
}) : {}, {
|
|
72
|
+
keepProcessEnv: context.config.build.keepProcessEnv,
|
|
60
73
|
define: context.config.build.define,
|
|
61
74
|
rootDir: context.config.sourceRoot,
|
|
62
75
|
platform: context.config.build.platform,
|
|
@@ -138,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
138
151
|
var vite_default = vite;
|
|
139
152
|
|
|
140
153
|
export { vite, vite_default };
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-FJ5JKE4N.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-FJ5JKE4N.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-RPBIX6JI.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-NGRCYHUU.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-NGRCYHUU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVFXZVCGG_cjs = require('./chunk-VFXZVCGG.cjs');
|
|
4
4
|
var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var core = require('@babel/core');
|
|
@@ -706,7 +706,8 @@ async function resolveTsconfig(context) {
|
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
chunkPK6SKIKE_cjs.__name(resolveTsconfig, "resolveTsconfig");
|
|
709
|
-
var DEFAULT_ENVIRONMENT = "
|
|
709
|
+
var DEFAULT_ENVIRONMENT = "__DEFAULT__";
|
|
710
|
+
var GLOBAL_ENVIRONMENT = "__GLOBAL__";
|
|
710
711
|
function createEnvironment(name, userConfig) {
|
|
711
712
|
return defu7__default.default(userConfig.environments?.[name] ?? {}, {
|
|
712
713
|
name,
|
|
@@ -3592,7 +3593,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
|
|
|
3592
3593
|
plugin: resolvedPlugin,
|
|
3593
3594
|
context
|
|
3594
3595
|
});
|
|
3595
|
-
this.#hooks = Object.keys(resolvedPlugin).filter((key) => !
|
|
3596
|
+
this.#hooks = Object.keys(resolvedPlugin).filter((key) => !chunkVFXZVCGG_cjs.PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
|
|
3596
3597
|
const hook = key;
|
|
3597
3598
|
const pluginHook = resolvedPlugin[hook];
|
|
3598
3599
|
if (!isPluginHook(pluginHook)) {
|
|
@@ -3880,6 +3881,12 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
3880
3881
|
}
|
|
3881
3882
|
return environment;
|
|
3882
3883
|
}
|
|
3884
|
+
/**
|
|
3885
|
+
* A safe version of `getEnvironment` that returns `undefined` if the environment is not found
|
|
3886
|
+
*
|
|
3887
|
+
* @param name - The name of the environment to retrieve.
|
|
3888
|
+
* @returns The requested environment context or `undefined` if not found.
|
|
3889
|
+
*/
|
|
3883
3890
|
async getEnvironmentSafe(name) {
|
|
3884
3891
|
try {
|
|
3885
3892
|
return await this.getEnvironment(name);
|
|
@@ -3887,6 +3894,24 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
3887
3894
|
return void 0;
|
|
3888
3895
|
}
|
|
3889
3896
|
}
|
|
3897
|
+
/**
|
|
3898
|
+
* A function to merge all configured environments into a single context.
|
|
3899
|
+
*
|
|
3900
|
+
* @remarks
|
|
3901
|
+
* If only one environment is configured, that environment will be returned directly.
|
|
3902
|
+
*
|
|
3903
|
+
* @returns A promise that resolves to a merged/global environment context.
|
|
3904
|
+
*/
|
|
3905
|
+
async toEnvironment() {
|
|
3906
|
+
let environment;
|
|
3907
|
+
if (Object.keys(this.environments).length > 1) {
|
|
3908
|
+
environment = await this.in(createEnvironment(GLOBAL_ENVIRONMENT, this.config.userConfig));
|
|
3909
|
+
this.log(types.LogLevelLabel.DEBUG, `Combined all ${Object.keys(this.environments).length} environments into a single global context.`);
|
|
3910
|
+
} else {
|
|
3911
|
+
environment = await this.getEnvironment();
|
|
3912
|
+
}
|
|
3913
|
+
return environment;
|
|
3914
|
+
}
|
|
3890
3915
|
};
|
|
3891
3916
|
function getBaseFileHeader(context) {
|
|
3892
3917
|
return `
|
|
@@ -4262,32 +4287,13 @@ ${formatTypes(types$1)}
|
|
|
4262
4287
|
}) {
|
|
4263
4288
|
this.context.log(types.LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
|
|
4264
4289
|
await this.prepare(inlineConfig);
|
|
4265
|
-
|
|
4266
|
-
await this.
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
await this.callHook("build", {
|
|
4271
|
-
environment: context,
|
|
4272
|
-
order: "normal"
|
|
4273
|
-
});
|
|
4274
|
-
if (context.config.output.buildPath !== context.config.output.outputPath) {
|
|
4275
|
-
const sourcePath = append.appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
|
|
4276
|
-
const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
4277
|
-
if (sourcePath !== destinationPath) {
|
|
4278
|
-
context.log(types.LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
|
|
4279
|
-
await context.fs.copy(sourcePath, destinationPath);
|
|
4280
|
-
}
|
|
4281
|
-
}
|
|
4282
|
-
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
4283
|
-
context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
|
|
4284
|
-
await context.fs.copy(asset, asset.output);
|
|
4285
|
-
}));
|
|
4286
|
-
await this.callHook("build", {
|
|
4287
|
-
environment: context,
|
|
4288
|
-
order: "post"
|
|
4290
|
+
if (this.context.config.singleBuild) {
|
|
4291
|
+
await this.#handleBuild(await this.#context.toEnvironment());
|
|
4292
|
+
} else {
|
|
4293
|
+
await this.#executeEnvironments(async (context) => {
|
|
4294
|
+
await this.#handleBuild(context);
|
|
4289
4295
|
});
|
|
4290
|
-
}
|
|
4296
|
+
}
|
|
4291
4297
|
this.context.log(types.LogLevelLabel.TRACE, "Powerlines build completed");
|
|
4292
4298
|
}
|
|
4293
4299
|
/**
|
|
@@ -4376,6 +4382,32 @@ ${formatTypes(types$1)}
|
|
|
4376
4382
|
async [Symbol.asyncDispose]() {
|
|
4377
4383
|
await this.finalize();
|
|
4378
4384
|
}
|
|
4385
|
+
async #handleBuild(context) {
|
|
4386
|
+
await this.callHook("build", {
|
|
4387
|
+
environment: context,
|
|
4388
|
+
order: "pre"
|
|
4389
|
+
});
|
|
4390
|
+
await this.callHook("build", {
|
|
4391
|
+
environment: context,
|
|
4392
|
+
order: "normal"
|
|
4393
|
+
});
|
|
4394
|
+
if (context.config.output.buildPath !== context.config.output.outputPath) {
|
|
4395
|
+
const sourcePath = append.appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
|
|
4396
|
+
const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
4397
|
+
if (sourcePath !== destinationPath) {
|
|
4398
|
+
context.log(types.LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
|
|
4399
|
+
await context.fs.copy(sourcePath, destinationPath);
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
4403
|
+
context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
|
|
4404
|
+
await context.fs.copy(asset, asset.output);
|
|
4405
|
+
}));
|
|
4406
|
+
await this.callHook("build", {
|
|
4407
|
+
environment: context,
|
|
4408
|
+
order: "post"
|
|
4409
|
+
});
|
|
4410
|
+
}
|
|
4379
4411
|
/**
|
|
4380
4412
|
* Get the configured environments
|
|
4381
4413
|
*
|
|
@@ -4554,5 +4586,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
|
|
|
4554
4586
|
exports._capnpFileId = _capnpFileId;
|
|
4555
4587
|
exports.createLog = createLog;
|
|
4556
4588
|
exports.extendLog = extendLog;
|
|
4557
|
-
//# sourceMappingURL=chunk-
|
|
4558
|
-
//# sourceMappingURL=chunk-
|
|
4589
|
+
//# sourceMappingURL=chunk-OENQ5VVB.cjs.map
|
|
4590
|
+
//# sourceMappingURL=chunk-OENQ5VVB.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-EMIKBRCT.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-RPBIX6JI.js.map
|
|
133
|
+
//# sourceMappingURL=chunk-RPBIX6JI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAATT73UY_cjs = require('./chunk-AATT73UY.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkXTSKPL6I_cjs = require('./chunk-XTSKPL6I.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');
|
|
@@ -59,10 +59,23 @@ function extractViteConfig(context) {
|
|
|
59
59
|
conditions: context.config.build.conditions,
|
|
60
60
|
extensions: context.config.build.extensions
|
|
61
61
|
}
|
|
62
|
-
}, context.config.build.variant === "vite" ? context.config.build.override
|
|
62
|
+
}, context.config.build.variant === "vite" ? defu__default.default(context.config.build.override ?? {}, {
|
|
63
|
+
optimizeDeps: context.config.build.override?.optimizeDeps ?? {}
|
|
64
|
+
}, {
|
|
65
|
+
optimizeDeps: {
|
|
66
|
+
extensions: context.config.build.override?.extensions
|
|
67
|
+
}
|
|
68
|
+
}) : {}, context.config.build.variant === "vite" ? defu__default.default(omit.omit(context.config.build, [
|
|
63
69
|
"override",
|
|
64
70
|
"variant"
|
|
65
|
-
])
|
|
71
|
+
]), {
|
|
72
|
+
optimizeDeps: context.config.build?.optimizeDeps ?? {}
|
|
73
|
+
}, {
|
|
74
|
+
optimizeDeps: {
|
|
75
|
+
extensions: context.config.build.extensions
|
|
76
|
+
}
|
|
77
|
+
}) : {}, {
|
|
78
|
+
keepProcessEnv: context.config.build.keepProcessEnv,
|
|
66
79
|
define: context.config.build.define,
|
|
67
80
|
rootDir: context.config.sourceRoot,
|
|
68
81
|
platform: context.config.build.platform,
|
|
@@ -84,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
84
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
85
98
|
|
|
86
99
|
// src/vite.ts
|
|
87
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunkXTSKPL6I_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
88
101
|
return {
|
|
89
102
|
...plugin,
|
|
90
103
|
vite: {
|
|
@@ -145,5 +158,5 @@ var vite_default = vite;
|
|
|
145
158
|
|
|
146
159
|
exports.vite = vite;
|
|
147
160
|
exports.vite_default = vite_default;
|
|
148
|
-
//# sourceMappingURL=chunk-
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-UDPMUFXM.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-UDPMUFXM.cjs.map
|
|
@@ -11,5 +11,5 @@ var PLUGIN_NON_HOOK_FIELDS = [
|
|
|
11
11
|
];
|
|
12
12
|
|
|
13
13
|
exports.PLUGIN_NON_HOOK_FIELDS = PLUGIN_NON_HOOK_FIELDS;
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-VFXZVCGG.cjs.map
|
|
15
|
+
//# sourceMappingURL=chunk-VFXZVCGG.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOENQ5VVB_cjs = require('./chunk-OENQ5VVB.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 = chunkOENQ5VVB_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 chunkOENQ5VVB_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-XTSKPL6I.cjs.map
|
|
136
|
+
//# sourceMappingURL=chunk-XTSKPL6I.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-RPBIX6JI.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-Z5MNSDM4.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-Z5MNSDM4.js.map
|