powerlines 0.26.1 → 0.27.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-5ka33LJ7.d.ts → api-CHbGX3BG.d.ts} +1 -1
- package/dist/{api-BkLj_Pdr.d.cts → api-DGMQopJ5.d.cts} +1 -1
- package/dist/api.cjs +4 -4
- package/dist/api.d.cts +7 -3
- package/dist/api.d.ts +7 -3
- package/dist/api.js +3 -3
- package/dist/astro.cjs +7 -7
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +6 -6
- package/dist/{chunk-7FSPH7XF.js → chunk-2DWFEC7G.js} +55 -20
- package/dist/{chunk-MK2RZ2TI.js → chunk-6MQ6LCVC.js} +2 -2
- package/dist/{chunk-Z5UEYORO.js → chunk-A7PVG2HH.js} +12 -11
- package/dist/{chunk-HTJKPEWU.cjs → chunk-AATT73UY.cjs} +12 -11
- package/dist/{chunk-VB3XSHVU.js → chunk-BH4JSKPK.js} +12 -11
- package/dist/{chunk-X7GYPVW3.cjs → chunk-CF7B5HOG.cjs} +14 -13
- package/dist/{chunk-B2VW6P4S.js → chunk-CSJMUAPJ.js} +3 -3
- package/dist/{chunk-JU2HWIWS.js → chunk-FZ6J2GMT.js} +2 -2
- package/dist/{chunk-BTNHSS2P.cjs → chunk-GBIIAZH5.cjs} +2 -2
- package/dist/{chunk-72SDU2KV.cjs → chunk-HG7JY6AQ.cjs} +6 -6
- package/dist/{chunk-4ED7PXFR.js → chunk-ISPXQBOL.js} +4 -4
- package/dist/{chunk-TG7TOUX6.cjs → chunk-KW66GUWJ.cjs} +6 -6
- package/dist/{chunk-MBBNZS6K.cjs → chunk-ON3LABX3.cjs} +2 -2
- package/dist/{chunk-EBXVKPUX.js → chunk-P647W2BA.js} +2 -2
- package/dist/{chunk-WXES55IE.js → chunk-PYID3NKT.js} +4 -4
- package/dist/{chunk-S7MXT5A2.js → chunk-QXHINXRM.js} +2 -2
- package/dist/{chunk-ATP7FECH.cjs → chunk-RCYXXBJ3.cjs} +57 -22
- package/dist/{chunk-HO7YFSFA.cjs → chunk-T3T6WSX2.cjs} +2 -2
- package/dist/chunk-UWLQNNZE.cjs +12 -0
- package/dist/{chunk-YUX7LOBU.cjs → chunk-YULFP33E.cjs} +2 -2
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/config.js +1 -1
- package/dist/{context-C31xTHzG.d.cts → context-BjOICcQB.d.cts} +12 -2
- package/dist/{context-B7qcwIf-.d.ts → context-BqTYt9FC.d.ts} +12 -2
- package/dist/esbuild.cjs +9 -9
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +6 -6
- package/dist/farm.cjs +5 -5
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +4 -4
- package/dist/index.cjs +19 -19
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/lib/{api-DEqxjfbe.d.ts → api-Cxmk8sFc.d.ts} +1 -1
- package/dist/lib/{api-D-l8sXIX.d.cts → api-_rRpguWX.d.cts} +1 -1
- package/dist/lib/build/esbuild.cjs +4 -4
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/esbuild.js +1 -1
- package/dist/lib/build/index.cjs +24 -24
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/index.js +8 -8
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +5 -5
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/tsup.js +2 -2
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +4 -4
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/vite.js +2 -2
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/{chunk-EN52JYUK.js → chunk-26M3IUSK.js} +6 -3
- package/dist/lib/{chunk-MI55FDCZ.js → chunk-2RHE4SGK.js} +6 -3
- package/dist/lib/{chunk-TAVG226Z.js → chunk-4PTER5EV.js} +12 -13
- package/dist/lib/{chunk-OBA5U4Y2.js → chunk-4SULM54S.js} +9 -2
- package/dist/lib/{chunk-R33US3PV.cjs → chunk-4V5OI73E.cjs} +9 -2
- package/dist/lib/{chunk-W6GWSJ22.js → chunk-67DW5UDQ.js} +7 -4
- package/dist/lib/{chunk-WOKPJMGJ.js → chunk-7GCAHOJK.js} +10 -9
- package/dist/lib/{chunk-VODWHWD6.js → chunk-AFLI3CLM.js} +9 -8
- package/dist/lib/{chunk-OFXWRM3U.js → chunk-AHK7GRPM.js} +14 -15
- package/dist/lib/{chunk-LOW2TIQ6.cjs → chunk-AJDYMANR.cjs} +2 -2
- package/dist/lib/{chunk-CGOFWVPH.js → chunk-CP77I6WM.js} +68 -13
- package/dist/lib/{chunk-DLVVEHMU.js → chunk-CU23POMD.js} +1 -1
- package/dist/lib/{chunk-NUE5DIH3.cjs → chunk-GK75G3OD.cjs} +15 -16
- package/dist/lib/{chunk-P6COOJAL.cjs → chunk-GKCWJVF7.cjs} +12 -12
- package/dist/lib/{chunk-PQRWG64T.cjs → chunk-GLFOKUTH.cjs} +7 -4
- package/dist/lib/{chunk-NIRFKQAD.js → chunk-HE6HOGLS.js} +35 -12
- package/dist/lib/{chunk-TSFG3WEA.cjs → chunk-HL4KTZDB.cjs} +12 -13
- package/dist/lib/{chunk-4N3TNY6C.js → chunk-HM52GHX3.js} +2 -2
- package/dist/lib/{chunk-7MHUTBEC.cjs → chunk-I76RI47U.cjs} +1 -1
- package/dist/lib/{chunk-EIY23D6A.js → chunk-KJDASLW3.js} +2 -2
- package/dist/lib/{chunk-X6JDYLWM.cjs → chunk-NDC5BKCD.cjs} +6 -3
- package/dist/lib/chunk-OL35IC6Z.js +81 -0
- package/dist/lib/chunk-PIFNMTKN.cjs +83 -0
- package/dist/lib/{chunk-MHOYD2EV.cjs → chunk-Q4D2L67H.cjs} +11 -6
- package/dist/lib/{chunk-TZCC5IWH.cjs → chunk-QDRITYHV.cjs} +10 -9
- package/dist/lib/{chunk-7OVZZWGY.js → chunk-QR2N3DPP.js} +1 -1
- package/dist/lib/{chunk-WCXA5WFX.cjs → chunk-R3E56AJ4.cjs} +10 -9
- package/dist/lib/{chunk-I4S26ZQH.cjs → chunk-UJYCAW2D.cjs} +4 -4
- package/dist/lib/{chunk-MKKWFHGE.cjs → chunk-UNUP4XMO.cjs} +2 -2
- package/dist/lib/{chunk-WGSZ4X6N.js → chunk-YB54H3SQ.js} +1 -1
- package/dist/lib/{chunk-YM65TZEQ.js → chunk-YGSXCTX2.js} +10 -5
- package/dist/lib/{chunk-F2CXZUSB.cjs → chunk-YYN6TKSY.cjs} +6 -3
- package/dist/lib/{chunk-WBSA6OG6.cjs → chunk-Z5JKSYRP.cjs} +37 -14
- package/dist/lib/{chunk-WA2MPCRV.cjs → chunk-ZDBHX3VV.cjs} +78 -23
- package/dist/lib/{config-DmlWvbZH.d.ts → config-B2q8Me0M.d.ts} +1 -1
- package/dist/lib/{config-CjIhBeVY.d.cts → config-DMXVnKGF.d.cts} +1 -1
- 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 +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 +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 +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 +9 -9
- 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.cjs +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/contexts/plugin-context.js +1 -1
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.d.cts +1 -1
- package/dist/lib/fs/index.d.ts +1 -1
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.d.cts +1 -1
- package/dist/lib/fs/vfs.d.ts +1 -1
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/index.cjs +19 -19
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +10 -10
- package/dist/lib/{internal-2E9DIMXV.d.ts → internal-CGIi3MOX.d.ts} +2 -2
- package/dist/lib/{internal-DIb2oGbS.d.cts → internal-CfIJWv8T.d.cts} +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 +7 -7
- package/dist/lib/unplugin/factory.d.cts +8 -4
- package/dist/lib/unplugin/factory.d.ts +8 -4
- 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 +9 -9
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +7 -7
- package/dist/lib/unplugin/plugin.cjs +2 -2
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/unplugin/plugin.js +1 -1
- package/dist/lib/{unplugin-DjE-j8jO.d.cts → unplugin-B_F1TZK4.d.cts} +2 -2
- package/dist/lib/{unplugin-DiDHWF3n.d.ts → unplugin-Da9GAj4a.d.ts} +2 -2
- package/dist/lib/utilities/bundle.cjs +3 -3
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/bundle.js +2 -2
- 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 +5 -5
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/index.js +3 -3
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.cjs +4 -4
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/resolve.js +3 -3
- 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 +6 -6
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +7 -7
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/{context-BHqBmuik.d.ts → context-y3G_SQPM.d.cts} +1 -1
- package/dist/plugin-utils/{context-BHqBmuik.d.cts → context-y3G_SQPM.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 +5 -5
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +5 -5
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +5 -5
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +7 -7
- package/dist/tsup.js +6 -6
- 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.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/fs.cjs +4 -4
- package/dist/types/fs.js +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.cjs +8 -8
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +3 -3
- 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 +5 -5
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +6 -6
- package/dist/vite.cjs +9 -9
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +6 -6
- package/dist/webpack.cjs +8 -8
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +5 -5
- package/package.json +9 -23
- package/dist/chunk-A7E2JCG5.cjs +0 -12
- package/dist/lib/chunk-64C5OLXR.js +0 -136
- package/dist/lib/chunk-WOPQZBAQ.cjs +0 -143
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { resolveESBuildEntry } from './chunk-
|
|
1
|
+
import { resolveESBuildEntry } from './chunk-7GCAHOJK.js';
|
|
2
2
|
import { __name } from './chunk-SHUYVCID.js';
|
|
3
3
|
import { DEFAULT_BUILD_OPTIONS } from '@storm-software/tsup/constants';
|
|
4
|
+
import { omit } from '@stryke/helpers/omit';
|
|
4
5
|
import defu from 'defu';
|
|
5
6
|
|
|
6
7
|
var DEFAULT_TSUP_CONFIG = {
|
|
@@ -47,7 +48,10 @@ function extractTsupConfig(context) {
|
|
|
47
48
|
};
|
|
48
49
|
}, "esbuildOptions"),
|
|
49
50
|
noExternal: context.builtins
|
|
50
|
-
}, context.config.build.variant === "tsup" ? context.config.build.override : {},
|
|
51
|
+
}, context.config.build.variant === "tsup" ? context.config.build.override : {}, context.config.build.variant === "tsup" ? omit(context.config.build, [
|
|
52
|
+
"override",
|
|
53
|
+
"variant"
|
|
54
|
+
]) : {}, {
|
|
51
55
|
name: context.config.name,
|
|
52
56
|
assets: context.config.output.assets,
|
|
53
57
|
resolveExtensions: context.config.build.extensions,
|
|
@@ -59,14 +63,15 @@ function extractTsupConfig(context) {
|
|
|
59
63
|
},
|
|
60
64
|
format: context.config.output.format,
|
|
61
65
|
mode: context.config.mode,
|
|
62
|
-
treeshake: context.config.build.variant === "tsup" ? context.config.build?.treeshake : context.config.build.variant === "tsup" ? context.config.build?.treeShaking : void 0
|
|
63
|
-
}, context.config.build.variant === "tsup" ? context.config.build : {}, {
|
|
66
|
+
treeshake: context.config.build.variant === "tsup" ? context.config.build?.treeshake : context.config.build.variant === "tsup" ? context.config.build?.treeShaking : void 0,
|
|
64
67
|
minify: context.config.mode !== "development",
|
|
65
68
|
metafile: context.config.mode === "development",
|
|
66
69
|
sourcemap: context.config.mode === "development",
|
|
67
70
|
silent: context.config.logLevel === null || context.config.mode === "production",
|
|
68
71
|
verbose: context.config.logLevel === null || context.config.logLevel === "trace" || context.config.mode === "development",
|
|
69
|
-
workspaceConfig:
|
|
72
|
+
workspaceConfig: {
|
|
73
|
+
workspaceRoot: context.workspaceConfig.workspaceRoot
|
|
74
|
+
}
|
|
70
75
|
}, DEFAULT_TSUP_CONFIG);
|
|
71
76
|
}
|
|
72
77
|
__name(extractTsupConfig, "extractTsupConfig");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
4
|
+
var omit = require('@stryke/helpers/omit');
|
|
4
5
|
var joinPaths = require('@stryke/path/join-paths');
|
|
5
6
|
var defu = require('defu');
|
|
6
7
|
|
|
@@ -26,7 +27,10 @@ function extractWebpackConfig(context) {
|
|
|
26
27
|
return ret;
|
|
27
28
|
}, {}) : context.config.build.alias : {})
|
|
28
29
|
}
|
|
29
|
-
}, context.config.build.variant === "webpack" ? context.config.build.override : {},
|
|
30
|
+
}, context.config.build.variant === "webpack" ? context.config.build.override : {}, context.config.build.variant === "webpack" ? omit.omit(context.config.build, [
|
|
31
|
+
"override",
|
|
32
|
+
"variant"
|
|
33
|
+
]) : {}, {
|
|
30
34
|
output: {
|
|
31
35
|
path: joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.buildPath)
|
|
32
36
|
},
|
|
@@ -44,8 +48,7 @@ function extractWebpackConfig(context) {
|
|
|
44
48
|
recordsInputPath: joinPaths.joinPaths(context.cachePath, "webpack", ".webpack-records.json"),
|
|
45
49
|
recordsOutputPath: joinPaths.joinPaths(context.cachePath, "webpack", ".webpack-records.json"),
|
|
46
50
|
context: joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot),
|
|
47
|
-
noExternal: context.builtins
|
|
48
|
-
}, context.config.build.variant === "webpack" ? context.config.build : {}, {
|
|
51
|
+
noExternal: context.builtins,
|
|
49
52
|
devtool: context.config.mode !== "development" ? false : "source-map",
|
|
50
53
|
optimization: {
|
|
51
54
|
minimize: context.config.mode !== "development"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkHRRI4KOM_cjs = require('./chunk-HRRI4KOM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4V5OI73E_cjs = require('./chunk-4V5OI73E.cjs');
|
|
5
5
|
var chunkD6MI2V6R_cjs = require('./chunk-D6MI2V6R.cjs');
|
|
6
6
|
var chunkGA3RXX4R_cjs = require('./chunk-GA3RXX4R.cjs');
|
|
7
7
|
var chunkK3NBD5LL_cjs = require('./chunk-K3NBD5LL.cjs');
|
|
@@ -261,7 +261,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
261
261
|
*/
|
|
262
262
|
get fs() {
|
|
263
263
|
if (!this.#fs) {
|
|
264
|
-
this.#fs =
|
|
264
|
+
this.#fs = chunk4V5OI73E_cjs.VirtualFileSystem.createSync(this);
|
|
265
265
|
}
|
|
266
266
|
return this.#fs;
|
|
267
267
|
}
|
|
@@ -410,9 +410,26 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
410
410
|
* @param options - Additional resolution options.
|
|
411
411
|
* @returns A promise that resolves to the resolved module path.
|
|
412
412
|
*/
|
|
413
|
-
async
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
async resolve(id, importer, options = {}) {
|
|
414
|
+
let moduleId = id;
|
|
415
|
+
if (this.config.build.alias) {
|
|
416
|
+
if (Array.isArray(this.config.build.alias)) {
|
|
417
|
+
const alias = this.config.build.alias.find((a) => bundleRequire.match(moduleId, [
|
|
418
|
+
a.find
|
|
419
|
+
]));
|
|
420
|
+
if (alias) {
|
|
421
|
+
moduleId = alias.replacement;
|
|
422
|
+
}
|
|
423
|
+
} else if (isSetObject.isSetObject(this.config.build.alias) && this.config.build.alias[id]) {
|
|
424
|
+
moduleId = this.config.build.alias[id];
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
if (this.fs.isVirtual(moduleId)) {
|
|
428
|
+
const result = await this.fs.resolve(moduleId, importer, {
|
|
429
|
+
conditions: this.config.build.conditions,
|
|
430
|
+
extensions: this.config.build.extensions,
|
|
431
|
+
...options
|
|
432
|
+
});
|
|
416
433
|
if (!result) {
|
|
417
434
|
return void 0;
|
|
418
435
|
}
|
|
@@ -422,28 +439,28 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
422
439
|
};
|
|
423
440
|
}
|
|
424
441
|
if (this.config.build.skipNodeModulesBundle) {
|
|
425
|
-
if (bundleRequire.match(
|
|
442
|
+
if (bundleRequire.match(moduleId, this.#resolvePatterns) || bundleRequire.match(moduleId, this.config.build.noExternal)) {
|
|
426
443
|
return void 0;
|
|
427
444
|
}
|
|
428
|
-
if (bundleRequire.match(
|
|
445
|
+
if (bundleRequire.match(moduleId, this.config.build.external) || moduleId.startsWith("node:")) {
|
|
429
446
|
return {
|
|
430
|
-
id,
|
|
447
|
+
id: moduleId,
|
|
431
448
|
external: true
|
|
432
449
|
};
|
|
433
450
|
}
|
|
434
|
-
if (!/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(
|
|
451
|
+
if (!/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId)) {
|
|
435
452
|
return {
|
|
436
|
-
id,
|
|
453
|
+
id: moduleId,
|
|
437
454
|
external: true
|
|
438
455
|
};
|
|
439
456
|
}
|
|
440
457
|
} else {
|
|
441
|
-
if (bundleRequire.match(
|
|
458
|
+
if (bundleRequire.match(moduleId, this.config.build.noExternal)) {
|
|
442
459
|
return void 0;
|
|
443
460
|
}
|
|
444
|
-
if (bundleRequire.match(
|
|
461
|
+
if (bundleRequire.match(moduleId, this.config.build.external) || moduleId.startsWith("node:")) {
|
|
445
462
|
return {
|
|
446
|
-
id,
|
|
463
|
+
id: moduleId,
|
|
447
464
|
external: true
|
|
448
465
|
};
|
|
449
466
|
}
|
|
@@ -773,6 +790,12 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
773
790
|
this.config.name = this.config.name.split("/").filter(Boolean)[1];
|
|
774
791
|
}
|
|
775
792
|
this.config.title ??= titleCase.titleCase(this.config.name);
|
|
793
|
+
if (this.config.userConfig.build?.external) {
|
|
794
|
+
this.config.userConfig.build.external = getUnique.getUnique(this.config.userConfig.build.external);
|
|
795
|
+
}
|
|
796
|
+
if (this.config.userConfig.build?.noExternal) {
|
|
797
|
+
this.config.userConfig.build.noExternal = getUnique.getUnique(this.config.userConfig.build.noExternal);
|
|
798
|
+
}
|
|
776
799
|
if (this.config.build.external) {
|
|
777
800
|
this.config.build.external = getUnique.getUnique(this.config.build.external);
|
|
778
801
|
}
|
|
@@ -825,7 +848,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
825
848
|
output: chunkN5XEKCVW_cjs.replacePathTokens(this, asset.output)
|
|
826
849
|
}));
|
|
827
850
|
}
|
|
828
|
-
this.#fs ??= await
|
|
851
|
+
this.#fs ??= await chunk4V5OI73E_cjs.VirtualFileSystem.create(this);
|
|
829
852
|
}
|
|
830
853
|
mergeUserConfig(from = {}, into = this.config.userConfig ?? {}) {
|
|
831
854
|
this.config.userConfig = defu2__default.default({
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk4NHFXDTQ_cjs = require('./chunk-4NHFXDTQ.cjs');
|
|
4
4
|
var chunk2NZADVP5_cjs = require('./chunk-2NZADVP5.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var chunkWBSA6OG6_cjs = require('./chunk-WBSA6OG6.cjs');
|
|
5
|
+
var chunkUJYCAW2D_cjs = require('./chunk-UJYCAW2D.cjs');
|
|
6
|
+
var chunkZ5JKSYRP_cjs = require('./chunk-Z5JKSYRP.cjs');
|
|
8
7
|
var chunkHRRI4KOM_cjs = require('./chunk-HRRI4KOM.cjs');
|
|
9
8
|
var chunkD6MI2V6R_cjs = require('./chunk-D6MI2V6R.cjs');
|
|
10
9
|
var chunkGA3RXX4R_cjs = require('./chunk-GA3RXX4R.cjs');
|
|
@@ -32,11 +31,12 @@ var isPromise = require('@stryke/type-checks/is-promise');
|
|
|
32
31
|
var isSet = require('@stryke/type-checks/is-set');
|
|
33
32
|
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
34
33
|
var isSetString = require('@stryke/type-checks/is-set-string');
|
|
35
|
-
var
|
|
34
|
+
var chalk3 = require('chalk');
|
|
36
35
|
var Handlebars = require('handlebars');
|
|
37
36
|
var helperPluginUtils = require('@babel/helper-plugin-utils');
|
|
38
37
|
var t = require('@babel/types');
|
|
39
38
|
var typescript = require('typescript');
|
|
39
|
+
var defu = require('defu');
|
|
40
40
|
var _package = require('@stryke/string-format/package');
|
|
41
41
|
var superdiff = require('@donedeal0/superdiff');
|
|
42
42
|
var json = require('@stryke/fs/json');
|
|
@@ -64,7 +64,7 @@ function _interopNamespace(e) {
|
|
|
64
64
|
return Object.freeze(n);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var chalk3__default = /*#__PURE__*/_interopDefault(chalk3);
|
|
68
68
|
var Handlebars__default = /*#__PURE__*/_interopDefault(Handlebars);
|
|
69
69
|
var t__namespace = /*#__PURE__*/_interopNamespace(t);
|
|
70
70
|
|
|
@@ -216,6 +216,57 @@ ${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : dia
|
|
|
216
216
|
return formatTypes(builtinModules);
|
|
217
217
|
}
|
|
218
218
|
chunkUSNT2KNT_cjs.__name(emitTypes, "emitTypes");
|
|
219
|
+
async function callHook(context, hook, options, ...args) {
|
|
220
|
+
const handlers = context.selectHooks(hook, options);
|
|
221
|
+
if (handlers.length > 0) {
|
|
222
|
+
context.log(types.LogLevelLabel.DEBUG, ` \u{1F9E9} Calling plugin hook: ${chalk3__default.default.bold.cyanBright(`${hook}${options?.order ? ` (${options.order})` : ""}`)}`);
|
|
223
|
+
let results = [];
|
|
224
|
+
if (options?.sequential === false) {
|
|
225
|
+
results = await Promise.all(handlers.map(async (handler) => {
|
|
226
|
+
if (!isFunction.isFunction(handler)) {
|
|
227
|
+
throw new Error(`Plugin hook handler for hook "${hook}" is not a function.`);
|
|
228
|
+
}
|
|
229
|
+
return Promise.resolve(handler.apply(null, ...args));
|
|
230
|
+
}));
|
|
231
|
+
} else {
|
|
232
|
+
for (const handler of handlers) {
|
|
233
|
+
if (!isFunction.isFunction(handler)) {
|
|
234
|
+
throw new Error(`Plugin hook handler for hook "${hook}" is not a function.`);
|
|
235
|
+
}
|
|
236
|
+
if (options?.result === "first" || options?.asNextParam === false) {
|
|
237
|
+
results.push(await Promise.resolve(handler.apply(null, ...args)));
|
|
238
|
+
if (options?.result === "first" && isSet.isSet(results[results.length - 1])) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
} else {
|
|
242
|
+
const sequenceArgs = [
|
|
243
|
+
...args
|
|
244
|
+
];
|
|
245
|
+
if (results.length > 0 && sequenceArgs.length > 0) {
|
|
246
|
+
sequenceArgs[0] = isFunction.isFunction(options.asNextParam) ? await Promise.resolve(options.asNextParam(results[0])) : results[0];
|
|
247
|
+
}
|
|
248
|
+
const result = await Promise.resolve(
|
|
249
|
+
// eslint-disable-next-line ts/no-unsafe-call
|
|
250
|
+
handler.apply(null, ...sequenceArgs)
|
|
251
|
+
);
|
|
252
|
+
results = [
|
|
253
|
+
result
|
|
254
|
+
];
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
const definedResults = results.filter((result) => isSet.isSet(result));
|
|
259
|
+
if (definedResults.length > 0) {
|
|
260
|
+
let mergedResult = void 0;
|
|
261
|
+
for (const result of definedResults) {
|
|
262
|
+
mergedResult = defu.defu(result, mergedResult ?? {});
|
|
263
|
+
}
|
|
264
|
+
return mergedResult;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return void 0;
|
|
268
|
+
}
|
|
269
|
+
chunkUSNT2KNT_cjs.__name(callHook, "callHook");
|
|
219
270
|
async function installPackage(context, packageName, dev = false) {
|
|
220
271
|
if (!await packageFns.isPackageListed(_package.getPackageName(packageName), {
|
|
221
272
|
cwd: context.config.projectRoot
|
|
@@ -359,9 +410,9 @@ async function resolveTsconfig(context) {
|
|
|
359
410
|
if (changes.length > 0) {
|
|
360
411
|
context.log(types.LogLevelLabel.WARN, `Updating the following configuration values in "${context.tsconfig.tsconfigFilePath}" file:
|
|
361
412
|
|
|
362
|
-
${changes.map((change, i) => `${
|
|
363
|
-
${
|
|
364
|
-
${
|
|
413
|
+
${changes.map((change, i) => `${chalk3__default.default.bold.whiteBright(`${i + 1}. ${titleCase.titleCase(change.status)} the ${change.field} field: `)}
|
|
414
|
+
${chalk3__default.default.red(` - Previous: ${change.previous} `)}
|
|
415
|
+
${chalk3__default.default.green(` - Updated: ${change.current} `)}
|
|
365
416
|
`).join("\n")}
|
|
366
417
|
`);
|
|
367
418
|
}
|
|
@@ -399,10 +450,14 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
399
450
|
this.#context = context;
|
|
400
451
|
}
|
|
401
452
|
/**
|
|
402
|
-
* Initialize
|
|
453
|
+
* Initialize a Powerlines API instance
|
|
454
|
+
*
|
|
455
|
+
* @param workspaceRoot - The directory of the underlying workspace the Powerlines project exists in
|
|
456
|
+
* @param config - An object containing the configuration required to run Powerlines tasks.
|
|
457
|
+
* @returns A new instance of the Powerlines API
|
|
403
458
|
*/
|
|
404
459
|
static async from(workspaceRoot, config) {
|
|
405
|
-
const api = new _PowerlinesAPI(await
|
|
460
|
+
const api = new _PowerlinesAPI(await chunkUJYCAW2D_cjs.PowerlinesAPIContext.from(workspaceRoot, config));
|
|
406
461
|
api.#context.$$internal.api = api;
|
|
407
462
|
for (const plugin of api.context.config.plugins ?? []) {
|
|
408
463
|
await api.#addPlugin(plugin);
|
|
@@ -723,7 +778,7 @@ ${formatTypes(generatedTypes)}
|
|
|
723
778
|
}
|
|
724
779
|
}
|
|
725
780
|
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
726
|
-
context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${
|
|
781
|
+
context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk3__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk3__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) => chalk3__default.default.yellowBright(i)).join(", ")})` : ""}`);
|
|
727
782
|
await copyFile.copyFiles(asset, asset.output);
|
|
728
783
|
}));
|
|
729
784
|
await this.callHook("build", {
|
|
@@ -805,7 +860,7 @@ ${formatTypes(generatedTypes)}
|
|
|
805
860
|
* @returns The result of the hook call
|
|
806
861
|
*/
|
|
807
862
|
async callHook(hook, options, ...args) {
|
|
808
|
-
return
|
|
863
|
+
return callHook(isSetObject.isSetObject(options?.environment) ? options.environment : await this.#context.getEnvironment(options?.environment), hook, {
|
|
809
864
|
sequential: true,
|
|
810
865
|
...options
|
|
811
866
|
}, ...args);
|
|
@@ -871,7 +926,7 @@ ${formatTypes(generatedTypes)}
|
|
|
871
926
|
await this.#addPlugin(required);
|
|
872
927
|
}
|
|
873
928
|
}
|
|
874
|
-
this.context.log(types.LogLevelLabel.DEBUG, `Successfully initialized the ${
|
|
929
|
+
this.context.log(types.LogLevelLabel.DEBUG, `Successfully initialized the ${chalk3__default.default.bold.cyanBright(plugin.name)} plugin`);
|
|
875
930
|
await this.context.addPlugin(plugin);
|
|
876
931
|
}
|
|
877
932
|
}
|
|
@@ -887,11 +942,11 @@ ${formatTypes(generatedTypes)}
|
|
|
887
942
|
if (isPromise.isPromiseLike(config)) {
|
|
888
943
|
awaited = await Promise.resolve(config);
|
|
889
944
|
}
|
|
890
|
-
if (!
|
|
945
|
+
if (!chunkZ5JKSYRP_cjs.isPluginConfig(awaited)) {
|
|
891
946
|
throw new Error(`Invalid plugin specified in the configuration - ${JSON.stringify(awaited)}. Please ensure the value is a plugin name, an object with the \`plugin\` and \`props\` properties, or an instance of \`Plugin\`.`);
|
|
892
947
|
}
|
|
893
948
|
let plugin;
|
|
894
|
-
if (
|
|
949
|
+
if (chunkZ5JKSYRP_cjs.isPlugin(awaited)) {
|
|
895
950
|
plugin = awaited;
|
|
896
951
|
} else if (isFunction.isFunction(awaited)) {
|
|
897
952
|
plugin = await Promise.resolve(awaited());
|
|
@@ -902,10 +957,10 @@ ${formatTypes(generatedTypes)}
|
|
|
902
957
|
} else {
|
|
903
958
|
plugin = resolved;
|
|
904
959
|
}
|
|
905
|
-
} else if (
|
|
960
|
+
} else if (chunkZ5JKSYRP_cjs.isPluginConfigTuple(awaited) || chunkZ5JKSYRP_cjs.isPluginConfigObject(awaited)) {
|
|
906
961
|
let pluginConfig;
|
|
907
962
|
let pluginOptions;
|
|
908
|
-
if (
|
|
963
|
+
if (chunkZ5JKSYRP_cjs.isPluginConfigTuple(awaited)) {
|
|
909
964
|
pluginConfig = awaited[0];
|
|
910
965
|
pluginOptions = awaited?.length === 2 ? awaited[1] : void 0;
|
|
911
966
|
} else {
|
|
@@ -921,21 +976,21 @@ ${formatTypes(generatedTypes)}
|
|
|
921
976
|
}
|
|
922
977
|
} else if (isFunction.isFunction(pluginConfig)) {
|
|
923
978
|
plugin = await Promise.resolve(pluginConfig(pluginOptions));
|
|
924
|
-
} else if (
|
|
979
|
+
} else if (chunkZ5JKSYRP_cjs.isPlugin(pluginConfig)) {
|
|
925
980
|
plugin = pluginConfig;
|
|
926
981
|
}
|
|
927
982
|
}
|
|
928
983
|
if (!plugin) {
|
|
929
984
|
throw new Error(`The plugin configuration ${JSON.stringify(awaited)} is invalid. This configuration must point to a valid Powerlines plugin module.`);
|
|
930
985
|
}
|
|
931
|
-
if (!
|
|
986
|
+
if (!chunkZ5JKSYRP_cjs.isPlugin(plugin)) {
|
|
932
987
|
throw new Error(`The plugin option ${JSON.stringify(plugin)} does not export a valid module. This configuration must point to a valid Powerlines plugin module.`);
|
|
933
988
|
}
|
|
934
|
-
if (
|
|
935
|
-
this.context.log(types.LogLevelLabel.TRACE, `Duplicate ${
|
|
989
|
+
if (chunkZ5JKSYRP_cjs.checkDedupe(plugin, this.context.plugins)) {
|
|
990
|
+
this.context.log(types.LogLevelLabel.TRACE, `Duplicate ${chalk3__default.default.bold.cyanBright(plugin.name)} plugin dependency detected - Skipping initialization.`);
|
|
936
991
|
return null;
|
|
937
992
|
}
|
|
938
|
-
this.context.log(types.LogLevelLabel.TRACE, `Initializing the ${
|
|
993
|
+
this.context.log(types.LogLevelLabel.TRACE, `Initializing the ${chalk3__default.default.bold.cyanBright(plugin.name)} plugin...`);
|
|
939
994
|
return plugin;
|
|
940
995
|
}
|
|
941
996
|
async #resolvePlugin(pluginPath) {
|
|
@@ -1013,7 +1068,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
1013
1068
|
async function resolveId(id, importer, options = {
|
|
1014
1069
|
isEntry: false
|
|
1015
1070
|
}) {
|
|
1016
|
-
return api.context.
|
|
1071
|
+
return api.context.resolve(id, importer, options);
|
|
1017
1072
|
}
|
|
1018
1073
|
chunkUSNT2KNT_cjs.__name(resolveId, "resolveId");
|
|
1019
1074
|
async function load(id) {
|
|
@@ -759,7 +759,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
759
759
|
* @param options - Additional resolution options.
|
|
760
760
|
* @returns A promise that resolves to the resolved module path.
|
|
761
761
|
*/
|
|
762
|
-
|
|
762
|
+
resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
|
|
763
763
|
/**
|
|
764
764
|
* A helper function to load modules using the Jiti resolver
|
|
765
765
|
*
|
|
@@ -759,7 +759,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
759
759
|
* @param options - Additional resolution options.
|
|
760
760
|
* @returns A promise that resolves to the resolved module path.
|
|
761
761
|
*/
|
|
762
|
-
|
|
762
|
+
resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
|
|
763
763
|
/**
|
|
764
764
|
* A helper function to load modules using the Jiti resolver
|
|
765
765
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-DMXVnKGF.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-B2q8Me0M.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkUJYCAW2D_cjs = require('../chunk-UJYCAW2D.cjs');
|
|
4
|
+
require('../chunk-GKCWJVF7.cjs');
|
|
5
|
+
require('../chunk-PIFNMTKN.cjs');
|
|
6
|
+
require('../chunk-Z5JKSYRP.cjs');
|
|
7
7
|
require('../chunk-HRRI4KOM.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-4V5OI73E.cjs');
|
|
9
9
|
require('../chunk-6OYSDQXE.cjs');
|
|
10
10
|
require('../chunk-XUYQYUWZ.cjs');
|
|
11
11
|
require('../chunk-XLHFUATD.cjs');
|
|
@@ -21,5 +21,5 @@ require('../chunk-USNT2KNT.cjs');
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkUJYCAW2D_cjs.PowerlinesAPIContext; }
|
|
25
25
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ResolvedConfig, A as APIContext, I as InitialUserConfig, g as EnvironmentContext, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions } from '../config-
|
|
1
|
+
import { f as ResolvedConfig, A as APIContext, I as InitialUserConfig, g as EnvironmentContext, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions } from '../config-DMXVnKGF.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -30,8 +30,8 @@ import '@stryke/types/array';
|
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
32
32
|
import 'typescript';
|
|
33
|
-
import '../internal-
|
|
34
|
-
import '../api-
|
|
33
|
+
import '../internal-CfIJWv8T.cjs';
|
|
34
|
+
import '../api-_rRpguWX.cjs';
|
|
35
35
|
|
|
36
36
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
37
37
|
#private;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ResolvedConfig, A as APIContext, I as InitialUserConfig, g as EnvironmentContext, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions } from '../config-
|
|
1
|
+
import { f as ResolvedConfig, A as APIContext, I as InitialUserConfig, g as EnvironmentContext, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions } from '../config-B2q8Me0M.js';
|
|
2
2
|
import { PowerlinesContext } from './context.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -30,8 +30,8 @@ import '@stryke/types/array';
|
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.js';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
32
32
|
import 'typescript';
|
|
33
|
-
import '../internal-
|
|
34
|
-
import '../api-
|
|
33
|
+
import '../internal-CGIi3MOX.js';
|
|
34
|
+
import '../api-Cxmk8sFc.js';
|
|
35
35
|
|
|
36
36
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
37
37
|
#private;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPIContext } from '../chunk-HM52GHX3.js';
|
|
2
|
+
import '../chunk-KJDASLW3.js';
|
|
3
|
+
import '../chunk-OL35IC6Z.js';
|
|
4
|
+
import '../chunk-HE6HOGLS.js';
|
|
5
5
|
import '../chunk-OEF6EHQV.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-4SULM54S.js';
|
|
7
7
|
import '../chunk-L56XA427.js';
|
|
8
8
|
import '../chunk-ONETLSPO.js';
|
|
9
9
|
import '../chunk-VHCBD2IS.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZ5JKSYRP_cjs = require('../chunk-Z5JKSYRP.cjs');
|
|
4
4
|
require('../chunk-HRRI4KOM.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-4V5OI73E.cjs');
|
|
6
6
|
require('../chunk-6OYSDQXE.cjs');
|
|
7
7
|
require('../chunk-XUYQYUWZ.cjs');
|
|
8
8
|
require('../chunk-XLHFUATD.cjs');
|
|
@@ -18,5 +18,5 @@ require('../chunk-USNT2KNT.cjs');
|
|
|
18
18
|
|
|
19
19
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZ5JKSYRP_cjs.PowerlinesContext; }
|
|
22
22
|
});
|
|
@@ -3,9 +3,9 @@ import { PackageJson } from '@stryke/types/package-json';
|
|
|
3
3
|
import { Range } from 'semver';
|
|
4
4
|
import { Project } from 'ts-morph';
|
|
5
5
|
import { ExternalIdResult, UnpluginMessage } from 'unplugin';
|
|
6
|
-
import { f as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, o as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, p as TransformResult, k as InitContextOptions } from '../config-
|
|
6
|
+
import { f as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, o as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, p as TransformResult, k as InitContextOptions } from '../config-DMXVnKGF.cjs';
|
|
7
7
|
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions } from '../fs-Dg-aTfiN.cjs';
|
|
8
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
8
|
+
import { a as UNSAFE_ContextInternal } from '../internal-CfIJWv8T.cjs';
|
|
9
9
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.cjs';
|
|
10
10
|
import '@storm-software/build-tools/types';
|
|
11
11
|
import '@storm-software/config-tools/types';
|
|
@@ -28,7 +28,7 @@ import 'jiti';
|
|
|
28
28
|
import 'magic-string';
|
|
29
29
|
import '@stryke/types/array';
|
|
30
30
|
import '@stryke/fs/resolve';
|
|
31
|
-
import '../api-
|
|
31
|
+
import '../api-_rRpguWX.cjs';
|
|
32
32
|
import '@stryke/types/tsconfig';
|
|
33
33
|
import 'typescript';
|
|
34
34
|
|
|
@@ -173,7 +173,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
173
173
|
* @param options - Additional resolution options.
|
|
174
174
|
* @returns A promise that resolves to the resolved module path.
|
|
175
175
|
*/
|
|
176
|
-
|
|
176
|
+
resolve(id: string, importer?: string, options?: ResolveOptions): Promise<ExternalIdResult | undefined>;
|
|
177
177
|
/**
|
|
178
178
|
* A helper function to load modules from the Virtual File System
|
|
179
179
|
*
|
|
@@ -3,9 +3,9 @@ import { PackageJson } from '@stryke/types/package-json';
|
|
|
3
3
|
import { Range } from 'semver';
|
|
4
4
|
import { Project } from 'ts-morph';
|
|
5
5
|
import { ExternalIdResult, UnpluginMessage } from 'unplugin';
|
|
6
|
-
import { f as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, o as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, p as TransformResult, k as InitContextOptions } from '../config-
|
|
6
|
+
import { f as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, o as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, p as TransformResult, k as InitContextOptions } from '../config-B2q8Me0M.js';
|
|
7
7
|
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions } from '../fs-Dg-aTfiN.js';
|
|
8
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
8
|
+
import { a as UNSAFE_ContextInternal } from '../internal-CGIi3MOX.js';
|
|
9
9
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.js';
|
|
10
10
|
import '@storm-software/build-tools/types';
|
|
11
11
|
import '@storm-software/config-tools/types';
|
|
@@ -28,7 +28,7 @@ import 'jiti';
|
|
|
28
28
|
import 'magic-string';
|
|
29
29
|
import '@stryke/types/array';
|
|
30
30
|
import '@stryke/fs/resolve';
|
|
31
|
-
import '../api-
|
|
31
|
+
import '../api-Cxmk8sFc.js';
|
|
32
32
|
import '@stryke/types/tsconfig';
|
|
33
33
|
import 'typescript';
|
|
34
34
|
|
|
@@ -173,7 +173,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
173
173
|
* @param options - Additional resolution options.
|
|
174
174
|
* @returns A promise that resolves to the resolved module path.
|
|
175
175
|
*/
|
|
176
|
-
|
|
176
|
+
resolve(id: string, importer?: string, options?: ResolveOptions): Promise<ExternalIdResult | undefined>;
|
|
177
177
|
/**
|
|
178
178
|
* A helper function to load modules from the Virtual File System
|
|
179
179
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PowerlinesContext } from '../chunk-
|
|
1
|
+
export { PowerlinesContext } from '../chunk-HE6HOGLS.js';
|
|
2
2
|
import '../chunk-OEF6EHQV.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-4SULM54S.js';
|
|
4
4
|
import '../chunk-L56XA427.js';
|
|
5
5
|
import '../chunk-ONETLSPO.js';
|
|
6
6
|
import '../chunk-VHCBD2IS.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkGKCWJVF7_cjs = require('../chunk-GKCWJVF7.cjs');
|
|
4
|
+
require('../chunk-PIFNMTKN.cjs');
|
|
5
|
+
require('../chunk-Z5JKSYRP.cjs');
|
|
6
6
|
require('../chunk-HRRI4KOM.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-4V5OI73E.cjs');
|
|
8
8
|
require('../chunk-6OYSDQXE.cjs');
|
|
9
9
|
require('../chunk-XUYQYUWZ.cjs');
|
|
10
10
|
require('../chunk-XLHFUATD.cjs');
|
|
@@ -20,5 +20,5 @@ require('../chunk-USNT2KNT.cjs');
|
|
|
20
20
|
|
|
21
21
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkGKCWJVF7_cjs.PowerlinesEnvironmentContext; }
|
|
24
24
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ResolvedConfig, g as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, l as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, m as HookKeys, S as SelectHooksOptions, n as InferHookHandler } from '../config-
|
|
1
|
+
import { f as ResolvedConfig, g as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, l as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, m as HookKeys, S as SelectHooksOptions, n as InferHookHandler } from '../config-DMXVnKGF.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -30,8 +30,8 @@ import '@stryke/types/array';
|
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
32
32
|
import 'typescript';
|
|
33
|
-
import '../internal-
|
|
34
|
-
import '../api-
|
|
33
|
+
import '../internal-CfIJWv8T.cjs';
|
|
34
|
+
import '../api-_rRpguWX.cjs';
|
|
35
35
|
|
|
36
36
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
37
37
|
#private;
|