powerlines 0.23.7 → 0.23.10
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-DxPACGY4.d.ts → api-5H3zEedD.d.ts} +1 -1
- package/dist/{api--9pVSIbm.d.cts → api-B77aqxGC.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +8 -6
- package/dist/astro.d.ts +8 -6
- package/dist/astro.js +3 -3
- package/dist/{chunk-CSSV6ES3.js → chunk-3W5CN3M3.js} +1 -1
- package/dist/{chunk-V732KPW6.cjs → chunk-4EIGDACJ.cjs} +34 -20
- package/dist/{chunk-32NXGMLQ.cjs → chunk-4TBQYHPZ.cjs} +3 -3
- package/dist/{chunk-QXTSQTX5.js → chunk-7G7OFGGH.js} +1 -1
- package/dist/{chunk-NVNBOUXL.js → chunk-MUNYXQYT.js} +34 -20
- package/dist/{chunk-ZUQDWAUO.cjs → chunk-PR3JGGAL.cjs} +2 -2
- package/dist/{chunk-I7G24RUE.cjs → chunk-SNHUEYEP.cjs} +2 -2
- package/dist/{chunk-6CYDJ53Z.js → chunk-SS5AXCGJ.js} +1 -1
- package/dist/{chunk-4TAIQVJG.cjs → chunk-WBC2XOMT.cjs} +2 -2
- package/dist/{chunk-RQAKTG6M.js → chunk-ZIWN73GA.js} +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +5 -4
- package/dist/esbuild.d.ts +5 -4
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +9 -7
- package/dist/farm.d.ts +9 -7
- package/dist/farm.js +2 -2
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/{api-Bwwdt0YR.d.cts → api-Cm51oVbC.d.cts} +1 -1
- package/dist/lib/{api-BJ7F7DmT.d.ts → api-mja4jirh.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.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- 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/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.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-7XHBIYIN.cjs → chunk-7VJ42H2I.cjs} +0 -16
- package/dist/lib/{chunk-YH5GOJS3.js → chunk-FQLZZYYO.js} +1 -16
- package/dist/lib/{chunk-SZH2DJOG.js → chunk-HNOAMIRO.js} +3 -3
- package/dist/lib/{chunk-EJTGOYSI.cjs → chunk-I6TJUFA6.cjs} +10 -10
- package/dist/lib/chunk-K3NBD5LL.cjs +75 -0
- package/dist/lib/{chunk-EN4XP4D5.js → chunk-OJ5XFCZN.js} +1 -1
- package/dist/lib/{chunk-NVUXGMU5.cjs → chunk-QABAD5RE.cjs} +32 -9
- package/dist/lib/{chunk-CCGA6ZHZ.cjs → chunk-RBSNQFLF.cjs} +16 -16
- package/dist/lib/{chunk-NDKPSA3I.js → chunk-VDPCG3RR.js} +3 -3
- package/dist/lib/{chunk-27RAXIPT.cjs → chunk-VLOUSKRX.cjs} +6 -6
- package/dist/lib/chunk-XBM7FHNK.js +68 -0
- package/dist/lib/{chunk-764HUXP3.js → chunk-XG4CC73V.js} +27 -4
- package/dist/lib/{config-CFZYRPQj.d.ts → config-7Q2dBjJE.d.ts} +6 -0
- package/dist/lib/{config-CxONCKEx.d.cts → config-BnJpgcGr.d.cts} +6 -0
- package/dist/lib/config-file.cjs +3 -3
- package/dist/lib/config-file.d.cts +3 -2
- package/dist/lib/config-file.d.ts +3 -2
- package/dist/lib/config-file.js +1 -1
- package/dist/lib/contexts/api-context.cjs +6 -6
- package/dist/lib/contexts/api-context.d.cts +3 -3
- package/dist/lib/contexts/api-context.d.ts +3 -3
- package/dist/lib/contexts/api-context.js +5 -5
- package/dist/lib/contexts/context.cjs +4 -4
- package/dist/lib/contexts/context.d.cts +10 -3
- package/dist/lib/contexts/context.d.ts +10 -3
- package/dist/lib/contexts/context.js +3 -3
- package/dist/lib/contexts/environment-context.cjs +5 -5
- 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 +4 -4
- package/dist/lib/contexts/index.cjs +8 -8
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +5 -5
- 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/index.cjs +19 -23
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +6 -6
- package/dist/lib/{internal-kEzuoIrl.d.ts → internal-BEygquYh.d.ts} +2 -2
- package/dist/lib/{internal-9D9Up5pT.d.cts → internal-BeR8fOB1.d.cts} +2 -2
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +1 -1
- package/dist/lib/typescript/compiler-host.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/program.d.cts +1 -1
- package/dist/lib/typescript/program.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 +7 -7
- package/dist/lib/unplugin/factory.d.cts +3 -3
- package/dist/lib/unplugin/factory.d.ts +3 -3
- package/dist/lib/unplugin/factory.js +6 -6
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +7 -7
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +6 -6
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/unplugin/resolve-id.d.cts +1 -1
- package/dist/lib/unplugin/resolve-id.d.ts +1 -1
- package/dist/lib/{unplugin-tmNrQvUk.d.ts → unplugin-CbbNDduM.d.ts} +2 -2
- package/dist/lib/{unplugin-BdLs3dwd.d.cts → unplugin-ppAOzR__.d.cts} +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.cjs +7 -11
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/index.js +1 -1
- package/dist/lib/utilities/meta.cjs +7 -11
- package/dist/lib/utilities/meta.d.cts +2 -3
- package/dist/lib/utilities/meta.d.ts +2 -3
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -1
- package/dist/lib/utilities/resolve-path.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 +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +12 -6
- package/dist/nuxt.d.ts +12 -6
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{context-DRFZE3XI.d.ts → context-Cg11S-CE.d.cts} +6 -0
- package/dist/plugin-utils/{context-DRFZE3XI.d.cts → context-Cg11S-CE.d.ts} +6 -0
- 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/{resolved-DKFZ11S7.d.ts → resolved-B3BSdXCt.d.ts} +13 -1
- package/dist/{resolved-C00CJgsk.d.cts → resolved-DGrpILrS.d.cts} +13 -1
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.d.cts +3 -3
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +3 -3
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +3 -3
- package/dist/rspack.d.ts +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.d.cts +3 -2
- package/dist/tsup.d.ts +3 -2
- package/dist/tsup.js +3 -3
- 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/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.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +5 -4
- package/dist/unloader.d.ts +5 -4
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +7 -7
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +5 -4
- package/dist/vite.d.ts +5 -4
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +3 -3
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +3 -3
- package/package.json +10 -9
- package/dist/lib/chunk-XW5TELHB.cjs +0 -67
- package/dist/lib/chunk-ZPIKFR7Z.js +0 -60
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-B3BSdXCt.js';
|
|
2
2
|
|
|
3
3
|
type CallHookOptions = SelectHooksOptions & ({
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-DGrpILrS.cjs';
|
|
2
2
|
|
|
3
3
|
type CallHookOptions = SelectHooksOptions & ({
|
|
4
4
|
/**
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4EIGDACJ_cjs = require('./chunk-4EIGDACJ.cjs');
|
|
4
4
|
require('./chunk-ETKZMGLN.cjs');
|
|
5
5
|
require('./chunk-PAMSESZV.cjs');
|
|
6
6
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -10,5 +10,5 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4EIGDACJ_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api
|
|
2
|
-
import {
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-B77aqxGC.cjs';
|
|
2
|
+
import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import {
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-5H3zEedD.js';
|
|
2
|
+
import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
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 chunkSNHUEYEP_cjs = require('./chunk-SNHUEYEP.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-4TBQYHPZ.cjs');
|
|
8
|
+
require('./chunk-4EIGDACJ.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkSNHUEYEP_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { cu as ViteResolvedConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,12 +42,14 @@ import 'typescript';
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```js
|
|
45
|
-
* // astro.config.
|
|
46
|
-
* import
|
|
45
|
+
* // astro.config.mjs
|
|
46
|
+
* import { defineConfig } from "astro/config";
|
|
47
|
+
* import powerlines from "powerlines/astro";
|
|
48
|
+
*
|
|
49
|
+
* export default defineConfig({
|
|
50
|
+
* integrations: [powerlines({ name: "example-app", ... })]
|
|
51
|
+
* });
|
|
47
52
|
*
|
|
48
|
-
* default export {
|
|
49
|
-
* plugins: [powerlines()],
|
|
50
|
-
* }
|
|
51
53
|
* ```
|
|
52
54
|
*/
|
|
53
55
|
declare const astro: (config: Partial<Omit<ViteResolvedConfig["userConfig"], "variant">>) => AstroUserConfig;
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { cu as ViteResolvedConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,12 +42,14 @@ import 'typescript';
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```js
|
|
45
|
-
* // astro.config.
|
|
46
|
-
* import
|
|
45
|
+
* // astro.config.mjs
|
|
46
|
+
* import { defineConfig } from "astro/config";
|
|
47
|
+
* import powerlines from "powerlines/astro";
|
|
48
|
+
*
|
|
49
|
+
* export default defineConfig({
|
|
50
|
+
* integrations: [powerlines({ name: "example-app", ... })]
|
|
51
|
+
* });
|
|
47
52
|
*
|
|
48
|
-
* default export {
|
|
49
|
-
* plugins: [powerlines()],
|
|
50
|
-
* }
|
|
51
53
|
* ```
|
|
52
54
|
*/
|
|
53
55
|
declare const astro: (config: Partial<Omit<ViteResolvedConfig["userConfig"], "variant">>) => AstroUserConfig;
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-3W5CN3M3.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-7G7OFGGH.js';
|
|
4
|
+
import './chunk-MUNYXQYT.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-7G7OFGGH.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -44,6 +44,7 @@ var getConfig = require('@storm-software/config-tools/get-config');
|
|
|
44
44
|
var c12 = require('c12');
|
|
45
45
|
var getEnvPaths = require('@stryke/env/get-env-paths');
|
|
46
46
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
47
|
+
var hashFiles = require('@stryke/hash/hash-files');
|
|
47
48
|
var murmurhash = require('@stryke/hash/murmurhash');
|
|
48
49
|
var getUnique = require('@stryke/helpers/get-unique');
|
|
49
50
|
var omit = require('@stryke/helpers/omit');
|
|
@@ -70,7 +71,6 @@ var isParentPath = require('@stryke/path/is-parent-path');
|
|
|
70
71
|
var memfs = require('memfs');
|
|
71
72
|
var unionfs = require('unionfs');
|
|
72
73
|
require('@stryke/fs/remove-file');
|
|
73
|
-
var hashFiles = require('@stryke/hash/hash-files');
|
|
74
74
|
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
75
75
|
var isObject = require('@stryke/type-checks/is-object');
|
|
76
76
|
|
|
@@ -667,9 +667,15 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
|
667
667
|
}));
|
|
668
668
|
}
|
|
669
669
|
chunkUSNT2KNT_cjs.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
670
|
-
async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
670
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
671
671
|
let resolvedUserConfig = {};
|
|
672
|
-
|
|
672
|
+
let resolvedUserConfigFile;
|
|
673
|
+
if (configFile) {
|
|
674
|
+
resolvedUserConfigFile = exists.existsSync(replace.replacePath(configFile, projectRoot)) ? replace.replacePath(configFile, projectRoot) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot))) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot)) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : void 0;
|
|
675
|
+
}
|
|
676
|
+
if (!resolvedUserConfigFile) {
|
|
677
|
+
resolvedUserConfigFile = exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
678
|
+
}
|
|
673
679
|
if (resolvedUserConfigFile) {
|
|
674
680
|
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
675
681
|
if (resolved) {
|
|
@@ -677,7 +683,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
|
|
|
677
683
|
if (isFunction.isFunction(resolved)) {
|
|
678
684
|
config = await Promise.resolve(resolved({
|
|
679
685
|
command,
|
|
680
|
-
mode
|
|
686
|
+
mode,
|
|
681
687
|
isSsrBuild: false,
|
|
682
688
|
isPreview: false
|
|
683
689
|
}));
|
|
@@ -708,6 +714,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
|
|
|
708
714
|
chunkUSNT2KNT_cjs.__name(loadUserConfigFile, "loadUserConfigFile");
|
|
709
715
|
function resolveOptions(options) {
|
|
710
716
|
return defu6__default.default(options, {
|
|
717
|
+
debug: options.logLevel === "trace",
|
|
711
718
|
interopDefault: true,
|
|
712
719
|
fsCache: options.mode !== "development" ? joinPaths.joinPaths(options.cacheDir, "jiti") : false,
|
|
713
720
|
moduleCache: options.mode !== "development"
|
|
@@ -2677,20 +2684,6 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
|
|
|
2677
2684
|
return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
|
|
2678
2685
|
}
|
|
2679
2686
|
chunkUSNT2KNT_cjs.__name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
|
|
2680
|
-
async function getChecksum(path) {
|
|
2681
|
-
return hashFiles.hashDirectory(path, {
|
|
2682
|
-
ignore: [
|
|
2683
|
-
"node_modules",
|
|
2684
|
-
".git",
|
|
2685
|
-
".nx",
|
|
2686
|
-
".cache",
|
|
2687
|
-
".storm",
|
|
2688
|
-
"tmp",
|
|
2689
|
-
"dist"
|
|
2690
|
-
]
|
|
2691
|
-
});
|
|
2692
|
-
}
|
|
2693
|
-
chunkUSNT2KNT_cjs.__name(getChecksum, "getChecksum");
|
|
2694
2687
|
async function writeMetaFile(context) {
|
|
2695
2688
|
const metaFilePath = joinPaths.joinPaths(context.dataPath, "meta.json");
|
|
2696
2689
|
context.log(types.LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
|
|
@@ -3111,6 +3104,26 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3111
3104
|
*/
|
|
3112
3105
|
logFn;
|
|
3113
3106
|
/**
|
|
3107
|
+
* Generates a checksum representing the current context state
|
|
3108
|
+
*
|
|
3109
|
+
* @param root - The root directory of the project to generate the checksum for
|
|
3110
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
3111
|
+
*/
|
|
3112
|
+
async generateChecksum(root = this.config.projectRoot) {
|
|
3113
|
+
this.#checksum = await hashFiles.hashDirectory(root, {
|
|
3114
|
+
ignore: [
|
|
3115
|
+
"node_modules",
|
|
3116
|
+
".git",
|
|
3117
|
+
".nx",
|
|
3118
|
+
".cache",
|
|
3119
|
+
".storm",
|
|
3120
|
+
"tmp",
|
|
3121
|
+
"dist"
|
|
3122
|
+
]
|
|
3123
|
+
});
|
|
3124
|
+
return this.#checksum;
|
|
3125
|
+
}
|
|
3126
|
+
/**
|
|
3114
3127
|
* Initialize the context with the provided configuration options
|
|
3115
3128
|
*
|
|
3116
3129
|
* @param config - The partial user configuration to use for initialization.
|
|
@@ -3142,15 +3155,16 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3142
3155
|
if (exists.existsSync(packageJsonPath)) {
|
|
3143
3156
|
this.packageJson = await json.readJsonFile(packageJsonPath);
|
|
3144
3157
|
}
|
|
3145
|
-
this.#checksum = await
|
|
3158
|
+
this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
|
|
3146
3159
|
this.resolver = createResolver({
|
|
3147
3160
|
workspaceRoot: this.workspaceConfig.workspaceRoot,
|
|
3148
3161
|
projectRoot: cacheKey.projectRoot,
|
|
3149
3162
|
cacheDir: this.cachePath,
|
|
3150
3163
|
mode: cacheKey.mode,
|
|
3164
|
+
logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
|
|
3151
3165
|
skipCache: cacheKey.skipCache
|
|
3152
3166
|
});
|
|
3153
|
-
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3167
|
+
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3154
3168
|
this.mergeUserConfig(userConfig.config);
|
|
3155
3169
|
configCache.set(cacheKey, {
|
|
3156
3170
|
projectJson: this.projectJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4EIGDACJ_cjs = require('./chunk-4EIGDACJ.cjs');
|
|
4
4
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
var join = require('@stryke/path/join');
|
|
6
6
|
var bundleRequire = require('bundle-require');
|
|
@@ -111,7 +111,7 @@ chunkUSNT2KNT_cjs.__name(getString, "getString");
|
|
|
111
111
|
// src/lib/unplugin/factory.ts
|
|
112
112
|
function createUnpluginFactory(variant, decorate) {
|
|
113
113
|
return (config, meta) => {
|
|
114
|
-
const log =
|
|
114
|
+
const log = chunk4EIGDACJ_cjs.createLog("unplugin", config);
|
|
115
115
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
116
116
|
try {
|
|
117
117
|
const userConfig = {
|
|
@@ -124,7 +124,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
124
124
|
async function buildStart() {
|
|
125
125
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
126
126
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(process.cwd());
|
|
127
|
-
api = await
|
|
127
|
+
api = await chunk4EIGDACJ_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
|
|
128
128
|
if (api.context.config.build.skipNodeModulesBundle) {
|
|
129
129
|
resolvePatterns = bundleRequire.tsconfigPathsToRegExp(api.context.tsconfig.options.paths ?? []);
|
|
130
130
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-MUNYXQYT.js';
|
|
2
2
|
import { __name } from './chunk-SHUYVCID.js';
|
|
3
3
|
import { joinPaths } from '@stryke/path/join';
|
|
4
4
|
import { match, tsconfigPathsToRegExp } from 'bundle-require';
|
|
@@ -42,6 +42,7 @@ import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
|
|
|
42
42
|
import { loadConfig } from 'c12';
|
|
43
43
|
import { getEnvPaths } from '@stryke/env/get-env-paths';
|
|
44
44
|
import { relativeToWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
45
|
+
import { hashDirectory } from '@stryke/hash/hash-files';
|
|
45
46
|
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
46
47
|
import { getUnique, getUniqueBy } from '@stryke/helpers/get-unique';
|
|
47
48
|
import { omit } from '@stryke/helpers/omit';
|
|
@@ -68,7 +69,6 @@ import { isParentPath } from '@stryke/path/is-parent-path';
|
|
|
68
69
|
import { Volume } from 'memfs';
|
|
69
70
|
import { Union } from 'unionfs';
|
|
70
71
|
import '@stryke/fs/remove-file';
|
|
71
|
-
import { hashDirectory } from '@stryke/hash/hash-files';
|
|
72
72
|
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
73
73
|
import { isObject } from '@stryke/type-checks/is-object';
|
|
74
74
|
|
|
@@ -637,9 +637,15 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
|
637
637
|
}));
|
|
638
638
|
}
|
|
639
639
|
__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
640
|
-
async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
640
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
641
641
|
let resolvedUserConfig = {};
|
|
642
|
-
|
|
642
|
+
let resolvedUserConfigFile;
|
|
643
|
+
if (configFile) {
|
|
644
|
+
resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
|
|
645
|
+
}
|
|
646
|
+
if (!resolvedUserConfigFile) {
|
|
647
|
+
resolvedUserConfigFile = existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
648
|
+
}
|
|
643
649
|
if (resolvedUserConfigFile) {
|
|
644
650
|
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
645
651
|
if (resolved) {
|
|
@@ -647,7 +653,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
|
|
|
647
653
|
if (isFunction(resolved)) {
|
|
648
654
|
config = await Promise.resolve(resolved({
|
|
649
655
|
command,
|
|
650
|
-
mode
|
|
656
|
+
mode,
|
|
651
657
|
isSsrBuild: false,
|
|
652
658
|
isPreview: false
|
|
653
659
|
}));
|
|
@@ -678,6 +684,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
|
|
|
678
684
|
__name(loadUserConfigFile, "loadUserConfigFile");
|
|
679
685
|
function resolveOptions(options) {
|
|
680
686
|
return defu6(options, {
|
|
687
|
+
debug: options.logLevel === "trace",
|
|
681
688
|
interopDefault: true,
|
|
682
689
|
fsCache: options.mode !== "development" ? joinPaths$1(options.cacheDir, "jiti") : false,
|
|
683
690
|
moduleCache: options.mode !== "development"
|
|
@@ -2647,20 +2654,6 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
|
|
|
2647
2654
|
return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
|
|
2648
2655
|
}
|
|
2649
2656
|
__name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
|
|
2650
|
-
async function getChecksum(path) {
|
|
2651
|
-
return hashDirectory(path, {
|
|
2652
|
-
ignore: [
|
|
2653
|
-
"node_modules",
|
|
2654
|
-
".git",
|
|
2655
|
-
".nx",
|
|
2656
|
-
".cache",
|
|
2657
|
-
".storm",
|
|
2658
|
-
"tmp",
|
|
2659
|
-
"dist"
|
|
2660
|
-
]
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
__name(getChecksum, "getChecksum");
|
|
2664
2657
|
async function writeMetaFile(context) {
|
|
2665
2658
|
const metaFilePath = joinPaths$1(context.dataPath, "meta.json");
|
|
2666
2659
|
context.log(LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
|
|
@@ -3081,6 +3074,26 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3081
3074
|
*/
|
|
3082
3075
|
logFn;
|
|
3083
3076
|
/**
|
|
3077
|
+
* Generates a checksum representing the current context state
|
|
3078
|
+
*
|
|
3079
|
+
* @param root - The root directory of the project to generate the checksum for
|
|
3080
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
3081
|
+
*/
|
|
3082
|
+
async generateChecksum(root = this.config.projectRoot) {
|
|
3083
|
+
this.#checksum = await hashDirectory(root, {
|
|
3084
|
+
ignore: [
|
|
3085
|
+
"node_modules",
|
|
3086
|
+
".git",
|
|
3087
|
+
".nx",
|
|
3088
|
+
".cache",
|
|
3089
|
+
".storm",
|
|
3090
|
+
"tmp",
|
|
3091
|
+
"dist"
|
|
3092
|
+
]
|
|
3093
|
+
});
|
|
3094
|
+
return this.#checksum;
|
|
3095
|
+
}
|
|
3096
|
+
/**
|
|
3084
3097
|
* Initialize the context with the provided configuration options
|
|
3085
3098
|
*
|
|
3086
3099
|
* @param config - The partial user configuration to use for initialization.
|
|
@@ -3112,15 +3125,16 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3112
3125
|
if (existsSync(packageJsonPath)) {
|
|
3113
3126
|
this.packageJson = await readJsonFile(packageJsonPath);
|
|
3114
3127
|
}
|
|
3115
|
-
this.#checksum = await
|
|
3128
|
+
this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
|
|
3116
3129
|
this.resolver = createResolver({
|
|
3117
3130
|
workspaceRoot: this.workspaceConfig.workspaceRoot,
|
|
3118
3131
|
projectRoot: cacheKey.projectRoot,
|
|
3119
3132
|
cacheDir: this.cachePath,
|
|
3120
3133
|
mode: cacheKey.mode,
|
|
3134
|
+
logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
|
|
3121
3135
|
skipCache: cacheKey.skipCache
|
|
3122
3136
|
});
|
|
3123
|
-
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3137
|
+
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3124
3138
|
this.mergeUserConfig(userConfig.config);
|
|
3125
3139
|
configCache.set(cacheKey, {
|
|
3126
3140
|
projectJson: this.projectJson,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.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(chunk4TBQYHPZ_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -83,7 +83,7 @@ function extractViteConfig(context) {
|
|
|
83
83
|
chunkUSNT2KNT_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
84
84
|
|
|
85
85
|
// src/vite.ts
|
|
86
|
-
var vite = unplugin.createVitePlugin(
|
|
86
|
+
var vite = unplugin.createVitePlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
87
87
|
return {
|
|
88
88
|
...plugin,
|
|
89
89
|
vite: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var webpack = unplugin.createWebpackPlugin(
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("webpack"));
|
|
7
7
|
var webpack_default = webpack;
|
|
8
8
|
|
|
9
9
|
exports.webpack = webpack;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-7G7OFGGH.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
-
import { ae as AnyUserConfig, U as UserConfig } from './resolved-
|
|
2
|
+
import { ae as AnyUserConfig, aj as DefineConfigInput, U as UserConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
|
@@ -40,6 +40,6 @@ import 'typescript';
|
|
|
40
40
|
* @remarks
|
|
41
41
|
* The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
|
|
42
42
|
*/
|
|
43
|
-
declare function defineConfig(config: DeepPartial<AnyUserConfig> &
|
|
43
|
+
declare function defineConfig(config: DeepPartial<AnyUserConfig> & DefineConfigInput): UserConfig;
|
|
44
44
|
|
|
45
45
|
export { defineConfig };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
-
import { ae as AnyUserConfig, U as UserConfig } from './resolved-
|
|
2
|
+
import { ae as AnyUserConfig, aj as DefineConfigInput, U as UserConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
|
@@ -40,6 +40,6 @@ import 'typescript';
|
|
|
40
40
|
* @remarks
|
|
41
41
|
* The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
|
|
42
42
|
*/
|
|
43
|
-
declare function defineConfig(config: DeepPartial<AnyUserConfig> &
|
|
43
|
+
declare function defineConfig(config: DeepPartial<AnyUserConfig> & DefineConfigInput): UserConfig;
|
|
44
44
|
|
|
45
45
|
export { defineConfig };
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkPR3JGGAL_cjs = require('./chunk-PR3JGGAL.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-4TBQYHPZ.cjs');
|
|
8
|
+
require('./chunk-4EIGDACJ.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPR3JGGAL_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkPR3JGGAL_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkPR3JGGAL_cjs.esbuild; }
|
|
27
27
|
});
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import { Y as ESBuildUserConfig } from './resolved-
|
|
2
|
+
import { Y as ESBuildUserConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,11 +42,12 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```js
|
|
44
44
|
* // esbuild.config.js
|
|
45
|
-
* import powerlines from
|
|
45
|
+
* import powerlines from "powerlines/esbuild";
|
|
46
46
|
*
|
|
47
47
|
* default export {
|
|
48
|
-
* plugins: [powerlines()],
|
|
49
|
-
* }
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
|
+
* };
|
|
50
|
+
*
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
53
|
declare const esbuild: (options: Partial<ESBuildUserConfig>) => _esbuild.Plugin;
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import { Y as ESBuildUserConfig } from './resolved-
|
|
2
|
+
import { Y as ESBuildUserConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,11 +42,12 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```js
|
|
44
44
|
* // esbuild.config.js
|
|
45
|
-
* import powerlines from
|
|
45
|
+
* import powerlines from "powerlines/esbuild";
|
|
46
46
|
*
|
|
47
47
|
* default export {
|
|
48
|
-
* plugins: [powerlines()],
|
|
49
|
-
* }
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
|
+
* };
|
|
50
|
+
*
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
53
|
declare const esbuild: (options: Partial<ESBuildUserConfig>) => _esbuild.Plugin;
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-
|
|
1
|
+
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-ZIWN73GA.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-7G7OFGGH.js';
|
|
4
|
+
import './chunk-MUNYXQYT.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
|
|
6
|
+
require('./chunk-4EIGDACJ.cjs');
|
|
7
7
|
require('./chunk-ETKZMGLN.cjs');
|
|
8
8
|
require('./chunk-PAMSESZV.cjs');
|
|
9
9
|
require('./chunk-AYKZK666.cjs');
|
|
10
10
|
require('./chunk-USNT2KNT.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("farm"));
|
|
14
14
|
var farm_default = farm;
|
|
15
15
|
|
|
16
16
|
exports.default = farm_default;
|