powerlines 0.27.0 → 0.28.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-CHbGX3BG.d.ts → api-BgDfE1J3.d.ts} +2 -2
- package/dist/{api-DGMQopJ5.d.cts → api-D-3EvHyy.d.cts} +2 -2
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +5 -2
- package/dist/api.d.ts +5 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +4 -1
- package/dist/astro.d.ts +4 -1
- package/dist/astro.js +3 -3
- package/dist/{chunk-PYID3NKT.js → chunk-5CV2NNIR.js} +6 -5
- package/dist/chunk-C3APS65S.cjs +12 -0
- package/dist/{chunk-HG7JY6AQ.cjs → chunk-DD4XJNKQ.cjs} +7 -6
- package/dist/{chunk-RCYXXBJ3.cjs → chunk-ERZWC77E.cjs} +272 -117
- package/dist/{chunk-KW66GUWJ.cjs → chunk-FJ67PPIW.cjs} +4 -4
- package/dist/{chunk-YULFP33E.cjs → chunk-MRHWIMY2.cjs} +2 -2
- package/dist/{chunk-CSJMUAPJ.js → chunk-NHZBSVDJ.js} +3 -3
- package/dist/{chunk-2DWFEC7G.js → chunk-QRE6JMCD.js} +271 -116
- package/dist/{chunk-P647W2BA.js → chunk-UMZ2WNMA.js} +2 -2
- package/dist/{chunk-ISPXQBOL.js → chunk-VJ26HHRE.js} +3 -3
- package/dist/{chunk-CF7B5HOG.cjs → chunk-XMYY4XUM.cjs} +4 -4
- package/dist/{chunk-BH4JSKPK.js → chunk-Z3HPP53Q.js} +3 -3
- package/dist/{context-BjOICcQB.d.cts → context-CDZY3RHt.d.cts} +80 -21
- package/dist/{context-BqTYt9FC.d.ts → context-CcPf9RC_.d.ts} +80 -21
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +4 -1
- package/dist/esbuild.d.ts +4 -1
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +4 -1
- package/dist/farm.d.ts +4 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +10 -7
- package/dist/lib/{api-_rRpguWX.d.cts → api-BIHEKpyq.d.ts} +2 -2
- package/dist/lib/{api-Cxmk8sFc.d.ts → api-Wawenasn.d.cts} +2 -2
- package/dist/lib/build/esbuild.cjs +6 -5
- package/dist/lib/build/esbuild.d.cts +4 -1
- package/dist/lib/build/esbuild.d.ts +4 -1
- package/dist/lib/build/esbuild.js +3 -2
- package/dist/lib/build/index.cjs +13 -12
- package/dist/lib/build/index.d.cts +6 -3
- package/dist/lib/build/index.d.ts +6 -3
- package/dist/lib/build/index.js +5 -4
- package/dist/lib/build/rolldown.d.cts +4 -1
- package/dist/lib/build/rolldown.d.ts +4 -1
- package/dist/lib/build/rollup.d.cts +4 -1
- package/dist/lib/build/rollup.d.ts +4 -1
- package/dist/lib/build/rspack.d.cts +4 -1
- package/dist/lib/build/rspack.d.ts +4 -1
- package/dist/lib/build/tsup.cjs +7 -6
- package/dist/lib/build/tsup.d.cts +4 -1
- package/dist/lib/build/tsup.d.ts +4 -1
- package/dist/lib/build/tsup.js +4 -3
- package/dist/lib/build/unbuild.d.cts +6 -3
- package/dist/lib/build/unbuild.d.ts +6 -3
- package/dist/lib/build/vite.cjs +6 -5
- package/dist/lib/build/vite.d.cts +4 -1
- package/dist/lib/build/vite.d.ts +4 -1
- package/dist/lib/build/vite.js +4 -3
- package/dist/lib/build/webpack.d.cts +4 -1
- package/dist/lib/build/webpack.d.ts +4 -1
- package/dist/lib/{chunk-UNUP4XMO.cjs → chunk-3Y4F37CB.cjs} +2 -2
- package/dist/lib/{chunk-Q4D2L67H.cjs → chunk-7VRXU4F7.cjs} +2 -2
- package/dist/lib/{chunk-N5YLKWC2.js → chunk-DYGQQI74.js} +2 -10
- package/dist/lib/{chunk-HM52GHX3.js → chunk-GD7KTLPU.js} +2 -2
- package/dist/lib/{chunk-CU23POMD.js → chunk-GLWPZDAR.js} +1 -1
- package/dist/lib/{chunk-HE6HOGLS.js → chunk-GSGF6RL2.js} +154 -26
- package/dist/lib/{chunk-4SULM54S.js → chunk-KG4HFVJU.js} +55 -44
- package/dist/lib/{chunk-ZDBHX3VV.cjs → chunk-LBR46BPB.cjs} +72 -35
- package/dist/lib/{chunk-YB54H3SQ.js → chunk-N22WOZ3U.js} +3 -1
- package/dist/lib/{chunk-QR2N3DPP.js → chunk-NZ6NCXM2.js} +1 -1
- package/dist/lib/{chunk-AFLI3CLM.js → chunk-OKXWWMEF.js} +1 -1
- package/dist/lib/{chunk-R3E56AJ4.cjs → chunk-OYLWPIBP.cjs} +2 -2
- package/dist/lib/{chunk-I76RI47U.cjs → chunk-PURLNHXG.cjs} +3 -1
- package/dist/lib/{chunk-N5XEKCVW.cjs → chunk-QF3UTBJE.cjs} +2 -11
- package/dist/lib/{chunk-QDRITYHV.cjs → chunk-R3XAVNPY.cjs} +2 -2
- package/dist/lib/{chunk-Z5JKSYRP.cjs → chunk-S4OH7KW6.cjs} +165 -37
- package/dist/lib/{chunk-YGSXCTX2.js → chunk-S6WYOXLM.js} +1 -1
- package/dist/lib/chunk-T35JQHYE.js +12 -0
- package/dist/lib/{chunk-GKCWJVF7.cjs → chunk-TWABN364.cjs} +10 -10
- package/dist/lib/{chunk-UJYCAW2D.cjs → chunk-V2523R33.cjs} +4 -4
- package/dist/lib/{chunk-KJDASLW3.js → chunk-VKFXVPY6.js} +1 -1
- package/dist/lib/{chunk-AJDYMANR.cjs → chunk-XBSGDSV3.cjs} +2 -2
- package/dist/lib/{chunk-7GCAHOJK.js → chunk-XIK3Y6BP.js} +1 -1
- package/dist/lib/{chunk-CP77I6WM.js → chunk-Y2DPOC4G.js} +65 -28
- package/dist/lib/chunk-YXJJCE6V.cjs +14 -0
- package/dist/lib/{chunk-4V5OI73E.cjs → chunk-Z6BSDYUR.cjs} +55 -44
- package/dist/lib/{config-DMXVnKGF.d.cts → config-D2dTFLlQ.d.cts} +76 -6
- package/dist/lib/{config-B2q8Me0M.d.ts → config-Dzk6j2mr.d.ts} +76 -6
- package/dist/lib/config-file.d.cts +4 -1
- package/dist/lib/config-file.d.ts +4 -1
- package/dist/lib/contexts/api-context.cjs +7 -6
- package/dist/lib/contexts/api-context.d.cts +7 -3
- package/dist/lib/contexts/api-context.d.ts +7 -3
- package/dist/lib/contexts/api-context.js +6 -5
- package/dist/lib/contexts/context.cjs +5 -4
- package/dist/lib/contexts/context.d.cts +64 -10
- package/dist/lib/contexts/context.d.ts +64 -10
- package/dist/lib/contexts/context.js +4 -3
- package/dist/lib/contexts/environment-context.cjs +6 -5
- package/dist/lib/contexts/environment-context.d.cts +7 -3
- package/dist/lib/contexts/environment-context.d.ts +7 -3
- package/dist/lib/contexts/environment-context.js +5 -4
- package/dist/lib/contexts/index.cjs +9 -8
- package/dist/lib/contexts/index.d.cts +7 -3
- package/dist/lib/contexts/index.d.ts +7 -3
- package/dist/lib/contexts/index.js +6 -5
- package/dist/lib/contexts/plugin-context.d.cts +6 -3
- package/dist/lib/contexts/plugin-context.d.ts +6 -3
- package/dist/lib/entry.cjs +10 -9
- package/dist/lib/entry.d.cts +4 -1
- package/dist/lib/entry.d.ts +4 -1
- package/dist/lib/entry.js +2 -1
- package/dist/lib/fs/index.cjs +3 -2
- package/dist/lib/fs/index.d.cts +4 -1
- package/dist/lib/fs/index.d.ts +4 -1
- package/dist/lib/fs/index.js +2 -1
- package/dist/lib/fs/vfs.cjs +3 -2
- package/dist/lib/fs/vfs.d.cts +4 -1
- package/dist/lib/fs/vfs.d.ts +4 -1
- package/dist/lib/fs/vfs.js +2 -1
- package/dist/lib/index.cjs +32 -31
- package/dist/lib/index.d.cts +8 -5
- package/dist/lib/index.d.ts +8 -5
- package/dist/lib/index.js +12 -11
- package/dist/lib/{internal-CGIi3MOX.d.ts → internal-Cgp0NF-t.d.ts} +2 -2
- package/dist/lib/{internal-CfIJWv8T.d.cts → internal-DC9vYMIn.d.cts} +2 -2
- package/dist/lib/logger.d.cts +4 -1
- package/dist/lib/logger.d.ts +4 -1
- package/dist/lib/typescript/import-transformer.d.cts +4 -1
- package/dist/lib/typescript/import-transformer.d.ts +4 -1
- package/dist/lib/typescript/index.d.cts +4 -1
- package/dist/lib/typescript/index.d.ts +4 -1
- package/dist/lib/typescript/ts-morph.d.cts +4 -1
- package/dist/lib/typescript/ts-morph.d.ts +4 -1
- package/dist/lib/unplugin/factory.cjs +8 -8
- package/dist/lib/unplugin/factory.d.cts +6 -3
- package/dist/lib/unplugin/factory.d.ts +6 -3
- package/dist/lib/unplugin/factory.js +7 -7
- package/dist/lib/unplugin/helpers.d.cts +4 -1
- package/dist/lib/unplugin/helpers.d.ts +4 -1
- package/dist/lib/unplugin/index.cjs +10 -10
- package/dist/lib/unplugin/index.d.cts +7 -4
- package/dist/lib/unplugin/index.d.ts +7 -4
- package/dist/lib/unplugin/index.js +8 -8
- package/dist/lib/unplugin/plugin.cjs +2 -2
- package/dist/lib/unplugin/plugin.d.cts +8 -18
- package/dist/lib/unplugin/plugin.d.ts +8 -18
- package/dist/lib/unplugin/plugin.js +1 -1
- package/dist/lib/{unplugin-B_F1TZK4.d.cts → unplugin-CvYjC7ZL.d.cts} +2 -2
- package/dist/lib/{unplugin-Da9GAj4a.d.ts → unplugin-D7lpyIpN.d.ts} +2 -2
- package/dist/lib/utilities/bundle.cjs +5 -4
- package/dist/lib/utilities/bundle.d.cts +4 -1
- package/dist/lib/utilities/bundle.d.ts +4 -1
- package/dist/lib/utilities/bundle.js +4 -3
- package/dist/lib/utilities/cache.d.cts +4 -1
- package/dist/lib/utilities/cache.d.ts +4 -1
- package/dist/lib/utilities/file-header.d.cts +4 -1
- package/dist/lib/utilities/file-header.d.ts +4 -1
- package/dist/lib/utilities/index.cjs +12 -11
- package/dist/lib/utilities/index.d.cts +4 -1
- package/dist/lib/utilities/index.d.ts +4 -1
- package/dist/lib/utilities/index.js +6 -5
- package/dist/lib/utilities/meta.d.cts +4 -1
- package/dist/lib/utilities/meta.d.ts +4 -1
- package/dist/lib/utilities/resolve.cjs +6 -5
- package/dist/lib/utilities/resolve.d.cts +4 -1
- package/dist/lib/utilities/resolve.d.ts +4 -1
- package/dist/lib/utilities/resolve.js +5 -4
- package/dist/lib/utilities/source-file.d.cts +4 -1
- package/dist/lib/utilities/source-file.d.ts +4 -1
- package/dist/lib/utilities/source-map.d.cts +4 -1
- package/dist/lib/utilities/source-map.d.ts +4 -1
- package/dist/lib/utilities/worker.d.cts +4 -1
- package/dist/lib/utilities/worker.d.ts +4 -1
- package/dist/lib/utilities/write-file.d.cts +4 -1
- package/dist/lib/utilities/write-file.d.ts +4 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +6 -6
- package/dist/nuxt.js +4 -4
- package/dist/plugin-utils/chunk-DCJAIIJ5.cjs +14 -0
- package/dist/plugin-utils/chunk-FBLNGP3S.js +12 -0
- package/dist/plugin-utils/context-helpers.d.cts +4 -1
- package/dist/plugin-utils/context-helpers.d.ts +4 -1
- package/dist/plugin-utils/{context-y3G_SQPM.d.cts → context-iOcgJtAf.d.cts} +75 -5
- package/dist/plugin-utils/{context-y3G_SQPM.d.ts → context-iOcgJtAf.d.ts} +75 -5
- package/dist/plugin-utils/enforce.d.cts +4 -1
- package/dist/plugin-utils/enforce.d.ts +4 -1
- package/dist/plugin-utils/extend.d.cts +4 -1
- package/dist/plugin-utils/extend.d.ts +4 -1
- package/dist/plugin-utils/get-config-path.d.cts +4 -1
- package/dist/plugin-utils/get-config-path.d.ts +4 -1
- package/dist/plugin-utils/helpers.d.cts +14 -11
- package/dist/plugin-utils/helpers.d.ts +14 -11
- package/dist/plugin-utils/index.cjs +2 -2
- package/dist/plugin-utils/index.d.cts +4 -1
- package/dist/plugin-utils/index.d.ts +4 -1
- package/dist/plugin-utils/index.js +1 -1
- package/dist/plugin-utils/merge.d.cts +4 -1
- package/dist/plugin-utils/merge.d.ts +4 -1
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +5 -1
- package/dist/plugin-utils/paths.d.ts +5 -1
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.d.cts +4 -1
- package/dist/rolldown.d.ts +4 -1
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +4 -1
- package/dist/rollup.d.ts +4 -1
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +4 -1
- package/dist/rspack.d.ts +4 -1
- package/dist/rspack.js +2 -2
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +5 -2
- package/dist/types/api.d.ts +5 -2
- package/dist/types/babel.d.cts +4 -1
- package/dist/types/babel.d.ts +4 -1
- package/dist/types/commands.d.cts +4 -1
- package/dist/types/commands.d.ts +4 -1
- package/dist/types/config.d.cts +4 -1
- package/dist/types/config.d.ts +4 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +4 -1
- package/dist/types/context.d.ts +4 -1
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +4 -1
- package/dist/types/hooks.d.ts +4 -1
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.d.cts +5 -2
- package/dist/types/index.d.ts +5 -2
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +5 -2
- package/dist/types/internal.d.ts +5 -2
- package/dist/types/plugin.d.cts +4 -1
- package/dist/types/plugin.d.ts +4 -1
- package/dist/types/resolved.d.cts +4 -1
- package/dist/types/resolved.d.ts +4 -1
- package/dist/types/unplugin.d.cts +5 -2
- package/dist/types/unplugin.d.ts +5 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +4 -1
- package/dist/unloader.d.ts +4 -1
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -6
- package/dist/unplugin.d.cts +7 -17
- package/dist/unplugin.d.ts +7 -17
- package/dist/unplugin.js +6 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +4 -1
- package/dist/vite.d.ts +4 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +4 -1
- package/dist/webpack.d.ts +4 -1
- package/dist/webpack.js +3 -3
- package/package.json +24 -21
- package/dist/babel-types.d.ts +0 -292
- package/dist/chunk-GBIIAZH5.cjs +0 -13
- package/dist/chunk-QXHINXRM.js +0 -11
- package/dist/chunk-UWLQNNZE.cjs +0 -12
- package/dist/config.cjs +0 -13
- package/dist/config.d.cts +0 -45
- package/dist/config.d.ts +0 -45
- package/dist/config.js +0 -4
- package/dist/plugin-utils/chunk-K2GWRZPV.js +0 -12
- package/dist/plugin-utils/chunk-VWFJOPKC.cjs +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-5CV2NNIR.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-VJ26HHRE.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-VJ26HHRE.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 chunkDD4XJNKQ_cjs = require('./chunk-DD4XJNKQ.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');
|
|
@@ -84,7 +84,7 @@ function extractViteConfig(context) {
|
|
|
84
84
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
85
85
|
|
|
86
86
|
// src/vite.ts
|
|
87
|
-
var vite = unplugin.createVitePlugin(
|
|
87
|
+
var vite = unplugin.createVitePlugin(chunkDD4XJNKQ_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
88
88
|
return {
|
|
89
89
|
...plugin,
|
|
90
90
|
vite: {
|
|
@@ -145,5 +145,5 @@ var vite_default = vite;
|
|
|
145
145
|
|
|
146
146
|
exports.vite = vite;
|
|
147
147
|
exports.vite_default = vite_default;
|
|
148
|
-
//# sourceMappingURL=chunk-
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
148
|
+
//# sourceMappingURL=chunk-XMYY4XUM.cjs.map
|
|
149
|
+
//# sourceMappingURL=chunk-XMYY4XUM.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-5CV2NNIR.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';
|
|
@@ -138,5 +138,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
138
138
|
var vite_default = vite;
|
|
139
139
|
|
|
140
140
|
export { vite, vite_default };
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
141
|
+
//# sourceMappingURL=chunk-Z3HPP53Q.js.map
|
|
142
|
+
//# sourceMappingURL=chunk-Z3HPP53Q.js.map
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Worker } from 'jest-worker';
|
|
5
6
|
import { Jiti } from 'jiti';
|
|
6
7
|
import MagicString, { SourceMap } from 'magic-string';
|
|
8
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
7
9
|
import { Range } from 'semver';
|
|
8
10
|
import { Project } from 'ts-morph';
|
|
11
|
+
import { RequestInfo, Response } from 'undici';
|
|
9
12
|
import { Unimport } from 'unimport';
|
|
10
13
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
11
14
|
import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
|
|
@@ -19,7 +22,7 @@ import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfi
|
|
|
19
22
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
20
23
|
import { StoragePort, StoragePreset, VirtualFileSystemInterface, ResolveOptions, VirtualFile } from './types/fs.cjs';
|
|
21
24
|
import { ArrayValues } from '@stryke/types/array';
|
|
22
|
-
import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig,
|
|
25
|
+
import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig } from './types/build.cjs';
|
|
23
26
|
import { TSConfig, ParsedTypeScriptConfig } from './types/tsconfig.cjs';
|
|
24
27
|
|
|
25
28
|
interface NamedImportDefinition {
|
|
@@ -130,7 +133,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
130
133
|
/**
|
|
131
134
|
* The resolved options for the Powerlines project configuration.
|
|
132
135
|
*/
|
|
133
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
136
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
134
137
|
/**
|
|
135
138
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
136
139
|
*/
|
|
@@ -489,6 +492,22 @@ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
|
489
492
|
*/
|
|
490
493
|
presets?: BabelTransformPluginOptions[];
|
|
491
494
|
};
|
|
495
|
+
interface DeployConfig {
|
|
496
|
+
/**
|
|
497
|
+
* The deployment variant being used by the Powerlines engine.
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* ```ts
|
|
501
|
+
* export default defineConfig({
|
|
502
|
+
* deploy: {
|
|
503
|
+
* variant: "cloudflare"
|
|
504
|
+
* }
|
|
505
|
+
* });
|
|
506
|
+
*
|
|
507
|
+
* ```
|
|
508
|
+
*/
|
|
509
|
+
variant?: string;
|
|
510
|
+
}
|
|
492
511
|
interface OutputConfig {
|
|
493
512
|
/**
|
|
494
513
|
* The path to output the final compiled files to
|
|
@@ -611,7 +630,7 @@ interface BaseConfig {
|
|
|
611
630
|
* @remarks
|
|
612
631
|
* If set to `false`, the deployment will be disabled.
|
|
613
632
|
*/
|
|
614
|
-
deploy?:
|
|
633
|
+
deploy?: DeployConfig | false;
|
|
615
634
|
/**
|
|
616
635
|
* The path to the tsconfig file to be used by the compiler
|
|
617
636
|
*
|
|
@@ -738,7 +757,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
738
757
|
*/
|
|
739
758
|
framework?: string;
|
|
740
759
|
}
|
|
741
|
-
|
|
760
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
742
761
|
/**
|
|
743
762
|
* Configuration provided to build processes
|
|
744
763
|
*
|
|
@@ -758,7 +777,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
758
777
|
*/
|
|
759
778
|
override?: Partial<TBuildResolvedConfig>;
|
|
760
779
|
};
|
|
761
|
-
}
|
|
780
|
+
}
|
|
762
781
|
type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
763
782
|
type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
764
783
|
type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
|
|
@@ -848,15 +867,6 @@ type AnyUserConfig = Record<string, any> & Partial<AnyBuildConfig> & {
|
|
|
848
867
|
docs?: Partial<AnyBuildConfig["docs"]>;
|
|
849
868
|
deploy?: Partial<AnyBuildConfig["deploy"]>;
|
|
850
869
|
};
|
|
851
|
-
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
|
|
852
|
-
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
|
|
853
|
-
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
|
|
854
|
-
type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
855
|
-
/**
|
|
856
|
-
* An empty interface to allow augmentation of the defineConfig input type.
|
|
857
|
-
*/
|
|
858
|
-
interface DefineConfigInput {
|
|
859
|
-
}
|
|
860
870
|
|
|
861
871
|
declare type __ΩLogFn = any[];
|
|
862
872
|
declare type __ΩWorkspaceConfig = any[];
|
|
@@ -868,6 +878,7 @@ declare type __ΩPartialPlugin = any[];
|
|
|
868
878
|
declare type __ΩPartialPluginFactory = any[];
|
|
869
879
|
declare type __ΩProjectType = any[];
|
|
870
880
|
declare type __ΩBabelUserConfig = any[];
|
|
881
|
+
declare type __ΩDeployConfig = any[];
|
|
871
882
|
declare type __ΩOutputConfig = any[];
|
|
872
883
|
declare type __ΩBaseConfig = any[];
|
|
873
884
|
declare type __ΩEnvironmentConfig = any[];
|
|
@@ -896,11 +907,6 @@ declare type __ΩDocsInlineConfig = any[];
|
|
|
896
907
|
declare type __ΩDeployInlineConfig = any[];
|
|
897
908
|
declare type __ΩConfigEnv = any[];
|
|
898
909
|
declare type __ΩAnyUserConfig = any[];
|
|
899
|
-
declare type __ΩUserConfigFnObject = any[];
|
|
900
|
-
declare type __ΩUserConfigFnPromise = any[];
|
|
901
|
-
declare type __ΩUserConfigFn = any[];
|
|
902
|
-
declare type __ΩUserConfigExport = any[];
|
|
903
|
-
declare type __ΩDefineConfigInput = any[];
|
|
904
910
|
|
|
905
911
|
type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
|
|
906
912
|
type BaseHookKeys<TContext extends PluginContext = PluginContext> = keyof BaseHooks<TContext>;
|
|
@@ -1033,6 +1039,18 @@ interface InitContextOptions {
|
|
|
1033
1039
|
*/
|
|
1034
1040
|
isHighPriority: boolean;
|
|
1035
1041
|
}
|
|
1042
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
1043
|
+
/**
|
|
1044
|
+
* An indicator specifying that the request should bypass any caching
|
|
1045
|
+
*/
|
|
1046
|
+
skipCache?: boolean;
|
|
1047
|
+
}
|
|
1048
|
+
interface ParseOptions extends ParserOptions {
|
|
1049
|
+
/**
|
|
1050
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1051
|
+
*/
|
|
1052
|
+
allowReturnOutsideFunction?: boolean;
|
|
1053
|
+
}
|
|
1036
1054
|
/**
|
|
1037
1055
|
* The unresolved Powerlines context.
|
|
1038
1056
|
*
|
|
@@ -1049,6 +1067,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1049
1067
|
*/
|
|
1050
1068
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1051
1069
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1070
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
1052
1071
|
output: TResolvedConfig["output"];
|
|
1053
1072
|
};
|
|
1054
1073
|
/**
|
|
@@ -1168,6 +1187,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1168
1187
|
* This instance is created lazily on first access.
|
|
1169
1188
|
*/
|
|
1170
1189
|
program: Project;
|
|
1190
|
+
/**
|
|
1191
|
+
* A function to perform HTTP fetch requests
|
|
1192
|
+
*
|
|
1193
|
+
* @remarks
|
|
1194
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1195
|
+
*
|
|
1196
|
+
* @example
|
|
1197
|
+
* ```ts
|
|
1198
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1199
|
+
* const data = await response.json();
|
|
1200
|
+
* ```
|
|
1201
|
+
*
|
|
1202
|
+
* @see https://github.com/nodejs/undici
|
|
1203
|
+
*
|
|
1204
|
+
* @param input - The URL to fetch.
|
|
1205
|
+
* @param options - The fetch request options.
|
|
1206
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1207
|
+
*/
|
|
1208
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1211
|
+
*
|
|
1212
|
+
* @remarks
|
|
1213
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1214
|
+
*
|
|
1215
|
+
* @example
|
|
1216
|
+
* ```ts
|
|
1217
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1218
|
+
* ```
|
|
1219
|
+
*
|
|
1220
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1221
|
+
* @see https://github.com/oxc/oxc
|
|
1222
|
+
*
|
|
1223
|
+
* @param code - The source code to parse.
|
|
1224
|
+
* @param options - The options to pass to the parser.
|
|
1225
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1226
|
+
*/
|
|
1227
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1171
1228
|
/**
|
|
1172
1229
|
* A helper function to resolve modules using the Jiti resolver
|
|
1173
1230
|
*
|
|
@@ -1363,7 +1420,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1363
1420
|
*/
|
|
1364
1421
|
logger: LogFn;
|
|
1365
1422
|
}
|
|
1366
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1423
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1367
1424
|
declare type __ΩLogLevel = any[];
|
|
1368
1425
|
declare type __ΩWorkerProcess = any[];
|
|
1369
1426
|
declare type __ΩMetaInfo = any[];
|
|
@@ -1373,6 +1430,8 @@ declare type __ΩSourceFile = any[];
|
|
|
1373
1430
|
declare type __ΩUnimportContext = any[];
|
|
1374
1431
|
declare type __ΩSelectHooksOptions = any[];
|
|
1375
1432
|
declare type __ΩInitContextOptions = any[];
|
|
1433
|
+
declare type __ΩFetchOptions = any[];
|
|
1434
|
+
declare type __ΩParseOptions = any[];
|
|
1376
1435
|
declare type __ΩUnresolvedContext = any[];
|
|
1377
1436
|
declare type __ΩContext = any[];
|
|
1378
1437
|
declare type __ΩAPIContext = any[];
|
|
@@ -1381,4 +1440,4 @@ declare type __ΩEnvironmentContext = any[];
|
|
|
1381
1440
|
declare type __ΩPluginContext = any[];
|
|
1382
1441
|
declare type __ΩBuildPluginContext = any[];
|
|
1383
1442
|
|
|
1384
|
-
export { type
|
|
1443
|
+
export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type InitContextOptions as a$, type TsupUserConfig as a0, type FarmUserConfig as a1, type InferUserConfig as a2, type InitialUserConfig as a3, type ParsedUserConfig as a4, type PowerlinesCommand as a5, type InlineConfig as a6, type NewInlineConfig as a7, type CleanInlineConfig as a8, type PrepareInlineConfig as a9, type __ΩViteUserConfig as aA, type __ΩESBuildUserConfig as aB, type __ΩUnbuildUserConfig as aC, type __ΩTsupUserConfig as aD, type __ΩFarmUserConfig as aE, type __ΩInferUserConfig as aF, type __ΩInitialUserConfig as aG, type __ΩParsedUserConfig as aH, type __ΩPowerlinesCommand as aI, type __ΩInlineConfig as aJ, type __ΩNewInlineConfig as aK, type __ΩCleanInlineConfig as aL, type __ΩPrepareInlineConfig as aM, type __ΩBuildInlineConfig as aN, type __ΩLintInlineConfig as aO, type __ΩDocsInlineConfig as aP, type __ΩDeployInlineConfig as aQ, type __ΩConfigEnv as aR, type __ΩAnyUserConfig as aS, LogLevel as aT, type WorkerProcess as aU, type MetaInfo as aV, type Resolver as aW, type TransformResult as aX, type SourceFile as aY, type UnimportContext as aZ, type SelectHooksOptions as a_, type BuildInlineConfig as aa, type LintInlineConfig as ab, type DocsInlineConfig as ac, type DeployInlineConfig as ad, type ConfigEnv as ae, type AnyUserConfig as af, type __ΩLogFn as ag, type __ΩWorkspaceConfig as ah, type __ΩPluginFactory as ai, type __ΩPluginConfigTuple as aj, type __ΩPluginConfigObject as ak, type __ΩPluginConfig as al, type __ΩPartialPlugin as am, type __ΩPartialPluginFactory as an, type __ΩProjectType as ao, type __ΩBabelUserConfig as ap, type __ΩDeployConfig as aq, type __ΩOutputConfig as ar, type __ΩBaseConfig as as, type __ΩEnvironmentConfig as at, type __ΩCommonUserConfig as au, type __ΩUserConfig as av, type __ΩWebpackUserConfig as aw, type __ΩRspackUserConfig as ax, type __ΩRollupUserConfig as ay, type __ΩRolldownUserConfig as az, type BabelTransformPlugin as b, type PluginHookFunctions as b$, type FetchOptions as b0, type ParseOptions as b1, type UnresolvedContext as b2, type Context as b3, type APIContext as b4, type EnvironmentContextPlugin as b5, type EnvironmentContext as b6, type PluginContext as b7, type BuildPluginContext as b8, type __ΩLogLevel as b9, type HooksList as bA, type InferHookHandler as bB, type InferHookReturnType as bC, type InferHookParameters as bD, type InferHookThisType as bE, type __ΩBaseHooks as bF, type __ΩBaseHookKeys as bG, type __ΩExternalHooks as bH, type __ΩExternalHookKeys as bI, type __ΩHooks as bJ, type __ΩHookKeys as bK, type __ΩBaseHooksListItem as bL, type __ΩBaseHooksList as bM, type __ΩExternalHooksListItem as bN, type __ΩHooksList as bO, type __ΩInferHookHandler as bP, type __ΩInferHookReturnType as bQ, type __ΩInferHookParameters as bR, type __ΩInferHookThisType as bS, type PluginHookObject as bT, type PluginHook as bU, type GenerateTypesResult as bV, type ConfigResult as bW, type BasePluginHookFunctions as bX, type BuildPlugin as bY, type ExternalPluginHookFunctionsVariant as bZ, type ExternalPluginHookFunctions as b_, type __ΩWorkerProcess as ba, type __ΩMetaInfo as bb, type __ΩResolver as bc, type __ΩTransformResult as bd, type __ΩSourceFile as be, type __ΩUnimportContext as bf, type __ΩSelectHooksOptions as bg, type __ΩInitContextOptions as bh, type __ΩFetchOptions as bi, type __ΩParseOptions as bj, type __ΩUnresolvedContext as bk, type __ΩContext as bl, type __ΩAPIContext as bm, type __ΩEnvironmentContextPlugin as bn, type __ΩEnvironmentContext as bo, type __ΩPluginContext as bp, type __ΩBuildPluginContext as bq, type BaseHooks as br, type BaseHookKeys as bs, type ExternalHooks as bt, type ExternalHookKeys as bu, type Hooks as bv, type HookKeys as bw, type BaseHooksListItem as bx, type BaseHooksList as by, type ExternalHooksListItem as bz, type BabelTransformPluginOptions as c, type PluginHooks as c0, type PluginBuildPlugins as c1, type Plugin as c2, PLUGIN_NON_HOOK_FIELDS as c3, type PluginNonHookFields as c4, type __ΩPluginHookObject as c5, type __ΩPluginHook as c6, type __ΩGenerateTypesResult as c7, type __ΩConfigResult as c8, type __ΩBasePluginHookFunctions as c9, type __ΩEnvironmentResolvedConfig as cA, type __ΩResolvedAssetGlob as cB, type __ΩOutputResolvedConfig as cC, type __ΩResolvedConfig as cD, type __ΩViteResolvedConfig as cE, type __ΩWebpackResolvedConfig as cF, type __ΩRspackResolvedConfig as cG, type __ΩESBuildResolvedConfig as cH, type __ΩRollupResolvedConfig as cI, type __ΩRolldownResolvedConfig as cJ, type __ΩTsupResolvedConfig as cK, type __ΩUnbuildResolvedConfig as cL, type __ΩFarmResolvedConfig as cM, type __ΩInferResolvedConfig as cN, type __ΩBuildPlugin as ca, type __ΩExternalPluginHookFunctionsVariant as cb, type __ΩExternalPluginHookFunctions as cc, type __ΩPluginHookFunctions as cd, type __ΩPluginHooks as ce, type __ΩPluginBuildPlugins as cf, type __ΩPlugin as cg, type __ΩPluginNonHookFields as ch, type ResolvedEntryTypeDefinition as ci, type BabelResolvedConfig as cj, type EnvironmentResolvedConfig as ck, type ResolvedAssetGlob as cl, type OutputResolvedConfig as cm, type ResolvedConfig as cn, type ViteResolvedConfig as co, type WebpackResolvedConfig as cp, type RspackResolvedConfig as cq, type ESBuildResolvedConfig as cr, type RollupResolvedConfig as cs, type RolldownResolvedConfig as ct, type TsupResolvedConfig as cu, type UnbuildResolvedConfig as cv, type FarmResolvedConfig as cw, type InferResolvedConfig as cx, type __ΩResolvedEntryTypeDefinition as cy, type __ΩBabelResolvedConfig as cz, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Worker } from 'jest-worker';
|
|
5
6
|
import { Jiti } from 'jiti';
|
|
6
7
|
import MagicString, { SourceMap } from 'magic-string';
|
|
8
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
7
9
|
import { Range } from 'semver';
|
|
8
10
|
import { Project } from 'ts-morph';
|
|
11
|
+
import { RequestInfo, Response } from 'undici';
|
|
9
12
|
import { Unimport } from 'unimport';
|
|
10
13
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
11
14
|
import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
|
|
@@ -19,7 +22,7 @@ import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfi
|
|
|
19
22
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
20
23
|
import { StoragePort, StoragePreset, VirtualFileSystemInterface, ResolveOptions, VirtualFile } from './types/fs.js';
|
|
21
24
|
import { ArrayValues } from '@stryke/types/array';
|
|
22
|
-
import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig,
|
|
25
|
+
import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig } from './types/build.js';
|
|
23
26
|
import { TSConfig, ParsedTypeScriptConfig } from './types/tsconfig.js';
|
|
24
27
|
|
|
25
28
|
interface NamedImportDefinition {
|
|
@@ -130,7 +133,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
130
133
|
/**
|
|
131
134
|
* The resolved options for the Powerlines project configuration.
|
|
132
135
|
*/
|
|
133
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
136
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
134
137
|
/**
|
|
135
138
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
136
139
|
*/
|
|
@@ -489,6 +492,22 @@ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
|
489
492
|
*/
|
|
490
493
|
presets?: BabelTransformPluginOptions[];
|
|
491
494
|
};
|
|
495
|
+
interface DeployConfig {
|
|
496
|
+
/**
|
|
497
|
+
* The deployment variant being used by the Powerlines engine.
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* ```ts
|
|
501
|
+
* export default defineConfig({
|
|
502
|
+
* deploy: {
|
|
503
|
+
* variant: "cloudflare"
|
|
504
|
+
* }
|
|
505
|
+
* });
|
|
506
|
+
*
|
|
507
|
+
* ```
|
|
508
|
+
*/
|
|
509
|
+
variant?: string;
|
|
510
|
+
}
|
|
492
511
|
interface OutputConfig {
|
|
493
512
|
/**
|
|
494
513
|
* The path to output the final compiled files to
|
|
@@ -611,7 +630,7 @@ interface BaseConfig {
|
|
|
611
630
|
* @remarks
|
|
612
631
|
* If set to `false`, the deployment will be disabled.
|
|
613
632
|
*/
|
|
614
|
-
deploy?:
|
|
633
|
+
deploy?: DeployConfig | false;
|
|
615
634
|
/**
|
|
616
635
|
* The path to the tsconfig file to be used by the compiler
|
|
617
636
|
*
|
|
@@ -738,7 +757,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
738
757
|
*/
|
|
739
758
|
framework?: string;
|
|
740
759
|
}
|
|
741
|
-
|
|
760
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
742
761
|
/**
|
|
743
762
|
* Configuration provided to build processes
|
|
744
763
|
*
|
|
@@ -758,7 +777,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
758
777
|
*/
|
|
759
778
|
override?: Partial<TBuildResolvedConfig>;
|
|
760
779
|
};
|
|
761
|
-
}
|
|
780
|
+
}
|
|
762
781
|
type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
763
782
|
type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
764
783
|
type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
|
|
@@ -848,15 +867,6 @@ type AnyUserConfig = Record<string, any> & Partial<AnyBuildConfig> & {
|
|
|
848
867
|
docs?: Partial<AnyBuildConfig["docs"]>;
|
|
849
868
|
deploy?: Partial<AnyBuildConfig["deploy"]>;
|
|
850
869
|
};
|
|
851
|
-
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
|
|
852
|
-
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
|
|
853
|
-
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
|
|
854
|
-
type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
855
|
-
/**
|
|
856
|
-
* An empty interface to allow augmentation of the defineConfig input type.
|
|
857
|
-
*/
|
|
858
|
-
interface DefineConfigInput {
|
|
859
|
-
}
|
|
860
870
|
|
|
861
871
|
declare type __ΩLogFn = any[];
|
|
862
872
|
declare type __ΩWorkspaceConfig = any[];
|
|
@@ -868,6 +878,7 @@ declare type __ΩPartialPlugin = any[];
|
|
|
868
878
|
declare type __ΩPartialPluginFactory = any[];
|
|
869
879
|
declare type __ΩProjectType = any[];
|
|
870
880
|
declare type __ΩBabelUserConfig = any[];
|
|
881
|
+
declare type __ΩDeployConfig = any[];
|
|
871
882
|
declare type __ΩOutputConfig = any[];
|
|
872
883
|
declare type __ΩBaseConfig = any[];
|
|
873
884
|
declare type __ΩEnvironmentConfig = any[];
|
|
@@ -896,11 +907,6 @@ declare type __ΩDocsInlineConfig = any[];
|
|
|
896
907
|
declare type __ΩDeployInlineConfig = any[];
|
|
897
908
|
declare type __ΩConfigEnv = any[];
|
|
898
909
|
declare type __ΩAnyUserConfig = any[];
|
|
899
|
-
declare type __ΩUserConfigFnObject = any[];
|
|
900
|
-
declare type __ΩUserConfigFnPromise = any[];
|
|
901
|
-
declare type __ΩUserConfigFn = any[];
|
|
902
|
-
declare type __ΩUserConfigExport = any[];
|
|
903
|
-
declare type __ΩDefineConfigInput = any[];
|
|
904
910
|
|
|
905
911
|
type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
|
|
906
912
|
type BaseHookKeys<TContext extends PluginContext = PluginContext> = keyof BaseHooks<TContext>;
|
|
@@ -1033,6 +1039,18 @@ interface InitContextOptions {
|
|
|
1033
1039
|
*/
|
|
1034
1040
|
isHighPriority: boolean;
|
|
1035
1041
|
}
|
|
1042
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
1043
|
+
/**
|
|
1044
|
+
* An indicator specifying that the request should bypass any caching
|
|
1045
|
+
*/
|
|
1046
|
+
skipCache?: boolean;
|
|
1047
|
+
}
|
|
1048
|
+
interface ParseOptions extends ParserOptions {
|
|
1049
|
+
/**
|
|
1050
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1051
|
+
*/
|
|
1052
|
+
allowReturnOutsideFunction?: boolean;
|
|
1053
|
+
}
|
|
1036
1054
|
/**
|
|
1037
1055
|
* The unresolved Powerlines context.
|
|
1038
1056
|
*
|
|
@@ -1049,6 +1067,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1049
1067
|
*/
|
|
1050
1068
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1051
1069
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1070
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
1052
1071
|
output: TResolvedConfig["output"];
|
|
1053
1072
|
};
|
|
1054
1073
|
/**
|
|
@@ -1168,6 +1187,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1168
1187
|
* This instance is created lazily on first access.
|
|
1169
1188
|
*/
|
|
1170
1189
|
program: Project;
|
|
1190
|
+
/**
|
|
1191
|
+
* A function to perform HTTP fetch requests
|
|
1192
|
+
*
|
|
1193
|
+
* @remarks
|
|
1194
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1195
|
+
*
|
|
1196
|
+
* @example
|
|
1197
|
+
* ```ts
|
|
1198
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1199
|
+
* const data = await response.json();
|
|
1200
|
+
* ```
|
|
1201
|
+
*
|
|
1202
|
+
* @see https://github.com/nodejs/undici
|
|
1203
|
+
*
|
|
1204
|
+
* @param input - The URL to fetch.
|
|
1205
|
+
* @param options - The fetch request options.
|
|
1206
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1207
|
+
*/
|
|
1208
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1211
|
+
*
|
|
1212
|
+
* @remarks
|
|
1213
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1214
|
+
*
|
|
1215
|
+
* @example
|
|
1216
|
+
* ```ts
|
|
1217
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1218
|
+
* ```
|
|
1219
|
+
*
|
|
1220
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1221
|
+
* @see https://github.com/oxc/oxc
|
|
1222
|
+
*
|
|
1223
|
+
* @param code - The source code to parse.
|
|
1224
|
+
* @param options - The options to pass to the parser.
|
|
1225
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1226
|
+
*/
|
|
1227
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1171
1228
|
/**
|
|
1172
1229
|
* A helper function to resolve modules using the Jiti resolver
|
|
1173
1230
|
*
|
|
@@ -1363,7 +1420,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1363
1420
|
*/
|
|
1364
1421
|
logger: LogFn;
|
|
1365
1422
|
}
|
|
1366
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1423
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1367
1424
|
declare type __ΩLogLevel = any[];
|
|
1368
1425
|
declare type __ΩWorkerProcess = any[];
|
|
1369
1426
|
declare type __ΩMetaInfo = any[];
|
|
@@ -1373,6 +1430,8 @@ declare type __ΩSourceFile = any[];
|
|
|
1373
1430
|
declare type __ΩUnimportContext = any[];
|
|
1374
1431
|
declare type __ΩSelectHooksOptions = any[];
|
|
1375
1432
|
declare type __ΩInitContextOptions = any[];
|
|
1433
|
+
declare type __ΩFetchOptions = any[];
|
|
1434
|
+
declare type __ΩParseOptions = any[];
|
|
1376
1435
|
declare type __ΩUnresolvedContext = any[];
|
|
1377
1436
|
declare type __ΩContext = any[];
|
|
1378
1437
|
declare type __ΩAPIContext = any[];
|
|
@@ -1381,4 +1440,4 @@ declare type __ΩEnvironmentContext = any[];
|
|
|
1381
1440
|
declare type __ΩPluginContext = any[];
|
|
1382
1441
|
declare type __ΩBuildPluginContext = any[];
|
|
1383
1442
|
|
|
1384
|
-
export { type
|
|
1443
|
+
export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type InitContextOptions as a$, type TsupUserConfig as a0, type FarmUserConfig as a1, type InferUserConfig as a2, type InitialUserConfig as a3, type ParsedUserConfig as a4, type PowerlinesCommand as a5, type InlineConfig as a6, type NewInlineConfig as a7, type CleanInlineConfig as a8, type PrepareInlineConfig as a9, type __ΩViteUserConfig as aA, type __ΩESBuildUserConfig as aB, type __ΩUnbuildUserConfig as aC, type __ΩTsupUserConfig as aD, type __ΩFarmUserConfig as aE, type __ΩInferUserConfig as aF, type __ΩInitialUserConfig as aG, type __ΩParsedUserConfig as aH, type __ΩPowerlinesCommand as aI, type __ΩInlineConfig as aJ, type __ΩNewInlineConfig as aK, type __ΩCleanInlineConfig as aL, type __ΩPrepareInlineConfig as aM, type __ΩBuildInlineConfig as aN, type __ΩLintInlineConfig as aO, type __ΩDocsInlineConfig as aP, type __ΩDeployInlineConfig as aQ, type __ΩConfigEnv as aR, type __ΩAnyUserConfig as aS, LogLevel as aT, type WorkerProcess as aU, type MetaInfo as aV, type Resolver as aW, type TransformResult as aX, type SourceFile as aY, type UnimportContext as aZ, type SelectHooksOptions as a_, type BuildInlineConfig as aa, type LintInlineConfig as ab, type DocsInlineConfig as ac, type DeployInlineConfig as ad, type ConfigEnv as ae, type AnyUserConfig as af, type __ΩLogFn as ag, type __ΩWorkspaceConfig as ah, type __ΩPluginFactory as ai, type __ΩPluginConfigTuple as aj, type __ΩPluginConfigObject as ak, type __ΩPluginConfig as al, type __ΩPartialPlugin as am, type __ΩPartialPluginFactory as an, type __ΩProjectType as ao, type __ΩBabelUserConfig as ap, type __ΩDeployConfig as aq, type __ΩOutputConfig as ar, type __ΩBaseConfig as as, type __ΩEnvironmentConfig as at, type __ΩCommonUserConfig as au, type __ΩUserConfig as av, type __ΩWebpackUserConfig as aw, type __ΩRspackUserConfig as ax, type __ΩRollupUserConfig as ay, type __ΩRolldownUserConfig as az, type BabelTransformPlugin as b, type PluginHookFunctions as b$, type FetchOptions as b0, type ParseOptions as b1, type UnresolvedContext as b2, type Context as b3, type APIContext as b4, type EnvironmentContextPlugin as b5, type EnvironmentContext as b6, type PluginContext as b7, type BuildPluginContext as b8, type __ΩLogLevel as b9, type HooksList as bA, type InferHookHandler as bB, type InferHookReturnType as bC, type InferHookParameters as bD, type InferHookThisType as bE, type __ΩBaseHooks as bF, type __ΩBaseHookKeys as bG, type __ΩExternalHooks as bH, type __ΩExternalHookKeys as bI, type __ΩHooks as bJ, type __ΩHookKeys as bK, type __ΩBaseHooksListItem as bL, type __ΩBaseHooksList as bM, type __ΩExternalHooksListItem as bN, type __ΩHooksList as bO, type __ΩInferHookHandler as bP, type __ΩInferHookReturnType as bQ, type __ΩInferHookParameters as bR, type __ΩInferHookThisType as bS, type PluginHookObject as bT, type PluginHook as bU, type GenerateTypesResult as bV, type ConfigResult as bW, type BasePluginHookFunctions as bX, type BuildPlugin as bY, type ExternalPluginHookFunctionsVariant as bZ, type ExternalPluginHookFunctions as b_, type __ΩWorkerProcess as ba, type __ΩMetaInfo as bb, type __ΩResolver as bc, type __ΩTransformResult as bd, type __ΩSourceFile as be, type __ΩUnimportContext as bf, type __ΩSelectHooksOptions as bg, type __ΩInitContextOptions as bh, type __ΩFetchOptions as bi, type __ΩParseOptions as bj, type __ΩUnresolvedContext as bk, type __ΩContext as bl, type __ΩAPIContext as bm, type __ΩEnvironmentContextPlugin as bn, type __ΩEnvironmentContext as bo, type __ΩPluginContext as bp, type __ΩBuildPluginContext as bq, type BaseHooks as br, type BaseHookKeys as bs, type ExternalHooks as bt, type ExternalHookKeys as bu, type Hooks as bv, type HookKeys as bw, type BaseHooksListItem as bx, type BaseHooksList as by, type ExternalHooksListItem as bz, type BabelTransformPluginOptions as c, type PluginHooks as c0, type PluginBuildPlugins as c1, type Plugin as c2, PLUGIN_NON_HOOK_FIELDS as c3, type PluginNonHookFields as c4, type __ΩPluginHookObject as c5, type __ΩPluginHook as c6, type __ΩGenerateTypesResult as c7, type __ΩConfigResult as c8, type __ΩBasePluginHookFunctions as c9, type __ΩEnvironmentResolvedConfig as cA, type __ΩResolvedAssetGlob as cB, type __ΩOutputResolvedConfig as cC, type __ΩResolvedConfig as cD, type __ΩViteResolvedConfig as cE, type __ΩWebpackResolvedConfig as cF, type __ΩRspackResolvedConfig as cG, type __ΩESBuildResolvedConfig as cH, type __ΩRollupResolvedConfig as cI, type __ΩRolldownResolvedConfig as cJ, type __ΩTsupResolvedConfig as cK, type __ΩUnbuildResolvedConfig as cL, type __ΩFarmResolvedConfig as cM, type __ΩInferResolvedConfig as cN, type __ΩBuildPlugin as ca, type __ΩExternalPluginHookFunctionsVariant as cb, type __ΩExternalPluginHookFunctions as cc, type __ΩPluginHookFunctions as cd, type __ΩPluginHooks as ce, type __ΩPluginBuildPlugins as cf, type __ΩPlugin as cg, type __ΩPluginNonHookFields as ch, type ResolvedEntryTypeDefinition as ci, type BabelResolvedConfig as cj, type EnvironmentResolvedConfig as ck, type ResolvedAssetGlob as cl, type OutputResolvedConfig as cm, type ResolvedConfig as cn, type ViteResolvedConfig as co, type WebpackResolvedConfig as cp, type RspackResolvedConfig as cq, type ESBuildResolvedConfig as cr, type RollupResolvedConfig as cs, type RolldownResolvedConfig as ct, type TsupResolvedConfig as cu, type UnbuildResolvedConfig as cv, type FarmResolvedConfig as cw, type InferResolvedConfig as cx, type __ΩResolvedEntryTypeDefinition as cy, type __ΩBabelResolvedConfig as cz, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
|
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 chunkFJ67PPIW_cjs = require('./chunk-FJ67PPIW.cjs');
|
|
6
6
|
require('./chunk-AATT73UY.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-DD4XJNKQ.cjs');
|
|
8
|
+
require('./chunk-ERZWC77E.cjs');
|
|
9
9
|
require('./chunk-T3T6WSX2.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
require('./chunk-ON3LABX3.cjs');
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkFJ67PPIW_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkFJ67PPIW_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkFJ67PPIW_cjs.esbuild; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
|
29
29
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { Z as ESBuildUserConfig } from './context-CDZY3RHt.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jest-worker';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'magic-string';
|
|
10
|
+
import 'oxc-parser';
|
|
9
11
|
import 'semver';
|
|
10
12
|
import 'ts-morph';
|
|
13
|
+
import 'undici';
|
|
11
14
|
import 'unimport';
|
|
12
15
|
import 'unplugin';
|
|
13
16
|
import '@babel/core';
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { Z as ESBuildUserConfig } from './context-CcPf9RC_.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jest-worker';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'magic-string';
|
|
10
|
+
import 'oxc-parser';
|
|
9
11
|
import 'semver';
|
|
10
12
|
import 'ts-morph';
|
|
13
|
+
import 'undici';
|
|
11
14
|
import 'unimport';
|
|
12
15
|
import 'unplugin';
|
|
13
16
|
import '@babel/core';
|