powerlines 0.26.2 → 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-DfBeWX11.d.ts → api-CHbGX3BG.d.ts} +1 -1
- package/dist/{api-WL9zRiUI.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 +6 -6
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +5 -5
- package/dist/{chunk-FIL2TK2Q.js → chunk-2DWFEC7G.js} +49 -20
- package/dist/{chunk-MK2RZ2TI.js → chunk-6MQ6LCVC.js} +2 -2
- package/dist/{chunk-O5LMNCD3.js → chunk-BH4JSKPK.js} +3 -3
- package/dist/{chunk-ZD7RUZUM.cjs → chunk-CF7B5HOG.cjs} +4 -4
- package/dist/{chunk-DQ66ZQFP.js → chunk-CSJMUAPJ.js} +3 -3
- package/dist/{chunk-JU2HWIWS.js → chunk-FZ6J2GMT.js} +2 -2
- package/dist/{chunk-CW2UIYYZ.cjs → chunk-HG7JY6AQ.cjs} +6 -6
- package/dist/{chunk-IKCHAMOI.js → chunk-ISPXQBOL.js} +3 -3
- package/dist/{chunk-N6F4I2GI.cjs → chunk-KW66GUWJ.cjs} +4 -4
- package/dist/{chunk-MBBNZS6K.cjs → chunk-ON3LABX3.cjs} +2 -2
- package/dist/{chunk-EBXVKPUX.js → chunk-P647W2BA.js} +2 -2
- package/dist/{chunk-55YUJ7CO.js → chunk-PYID3NKT.js} +4 -4
- package/dist/{chunk-YSLWNBGA.cjs → chunk-RCYXXBJ3.cjs} +51 -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.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{context-CsTSFspW.d.cts → context-BjOICcQB.d.cts} +8 -8
- package/dist/{context-CpUWkpuX.d.ts → context-BqTYt9FC.d.ts} +8 -8
- package/dist/esbuild.cjs +8 -8
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +5 -5
- 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 +17 -17
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- 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.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-OBA5U4Y2.js → chunk-4SULM54S.js} +9 -2
- package/dist/lib/{chunk-R33US3PV.cjs → chunk-4V5OI73E.cjs} +9 -2
- package/dist/lib/{chunk-XTXTDMH6.js → chunk-CP77I6WM.js} +68 -13
- package/dist/lib/{chunk-FRBSVQNC.cjs → chunk-GKCWJVF7.cjs} +12 -12
- package/dist/lib/{chunk-U33K3UDU.js → chunk-HE6HOGLS.js} +29 -12
- package/dist/lib/{chunk-YCRLUF3S.js → chunk-HM52GHX3.js} +2 -2
- package/dist/lib/{chunk-7MHUTBEC.cjs → chunk-I76RI47U.cjs} +1 -1
- package/dist/lib/{chunk-GOJV6NYX.js → chunk-KJDASLW3.js} +2 -2
- package/dist/lib/chunk-OL35IC6Z.js +81 -0
- package/dist/lib/chunk-PIFNMTKN.cjs +83 -0
- package/dist/lib/{chunk-WWMVRQ7W.cjs → chunk-UJYCAW2D.cjs} +4 -4
- package/dist/lib/{chunk-WGSZ4X6N.js → chunk-YB54H3SQ.js} +1 -1
- package/dist/lib/{chunk-JE363OHG.cjs → chunk-Z5JKSYRP.cjs} +31 -14
- package/dist/lib/{chunk-VVSA4YK5.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 +14 -14
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +7 -7
- 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.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +6 -6
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +6 -6
- 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 +6 -6
- package/dist/tsup.js +5 -5
- 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 +8 -8
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +5 -5
- 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 +2 -16
- package/dist/chunk-QOJY4R2T.cjs +0 -12
- package/dist/lib/chunk-64C5OLXR.js +0 -136
- package/dist/lib/chunk-WOPQZBAQ.cjs +0 -143
|
@@ -7,7 +7,7 @@ export { DEFAULT_UNBUILD_CONFIG, extractUnbuildConfig, unbuildLoader } from './u
|
|
|
7
7
|
export { DEFAULT_VITE_CONFIG, extractViteConfig } from './vite.cjs';
|
|
8
8
|
export { extractWebpackConfig } from './webpack.cjs';
|
|
9
9
|
import 'esbuild';
|
|
10
|
-
import '../config-
|
|
10
|
+
import '../config-DMXVnKGF.cjs';
|
|
11
11
|
import '@storm-software/build-tools/types';
|
|
12
12
|
import '@storm-software/config-tools/types';
|
|
13
13
|
import '@storm-software/config/types';
|
|
@@ -37,5 +37,5 @@ import '@stryke/types/array';
|
|
|
37
37
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
38
38
|
import '@stryke/types/tsconfig';
|
|
39
39
|
import 'typescript';
|
|
40
|
-
import '../internal-
|
|
41
|
-
import '../api-
|
|
40
|
+
import '../internal-CfIJWv8T.cjs';
|
|
41
|
+
import '../api-_rRpguWX.cjs';
|
|
@@ -7,7 +7,7 @@ export { DEFAULT_UNBUILD_CONFIG, extractUnbuildConfig, unbuildLoader } from './u
|
|
|
7
7
|
export { DEFAULT_VITE_CONFIG, extractViteConfig } from './vite.js';
|
|
8
8
|
export { extractWebpackConfig } from './webpack.js';
|
|
9
9
|
import 'esbuild';
|
|
10
|
-
import '../config-
|
|
10
|
+
import '../config-B2q8Me0M.js';
|
|
11
11
|
import '@storm-software/build-tools/types';
|
|
12
12
|
import '@storm-software/config-tools/types';
|
|
13
13
|
import '@storm-software/config/types';
|
|
@@ -37,5 +37,5 @@ import '@stryke/types/array';
|
|
|
37
37
|
import '../tsconfig-Bz-CiFqD.js';
|
|
38
38
|
import '@stryke/types/tsconfig';
|
|
39
39
|
import 'typescript';
|
|
40
|
-
import '../internal-
|
|
41
|
-
import '../api-
|
|
40
|
+
import '../internal-CGIi3MOX.js';
|
|
41
|
+
import '../api-Cxmk8sFc.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Context, b as RolldownResolvedBuildConfig } from '../config-
|
|
1
|
+
import { C as Context, b as RolldownResolvedBuildConfig } from '../config-DMXVnKGF.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Context, b as RolldownResolvedBuildConfig } from '../config-
|
|
1
|
+
import { C as Context, b as RolldownResolvedBuildConfig } from '../config-B2q8Me0M.js';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { C as Context, c as RollupResolvedBuildConfig } from '../config-
|
|
2
|
+
import { C as Context, c as RollupResolvedBuildConfig } 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 { Plugin } from 'rollup';
|
|
2
|
-
import { C as Context, c as RollupResolvedBuildConfig } from '../config-
|
|
2
|
+
import { C as Context, c as RollupResolvedBuildConfig } 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,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from '@rspack/core';
|
|
2
|
-
import { C as Context } from '../config-
|
|
2
|
+
import { C as Context } 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 { Configuration } from '@rspack/core';
|
|
2
|
-
import { C as Context } from '../config-
|
|
2
|
+
import { C as Context } 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,5 +1,5 @@
|
|
|
1
1
|
import { Entry } from '@storm-software/build-tools/types';
|
|
2
|
-
import { T as TsupBuildConfig, C as Context, R as ResolvedEntryTypeDefinition, d as TsupResolvedBuildConfig } from '../config-
|
|
2
|
+
import { T as TsupBuildConfig, C as Context, R as ResolvedEntryTypeDefinition, d as TsupResolvedBuildConfig } from '../config-DMXVnKGF.cjs';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
5
5
|
import '@stryke/types/base';
|
package/dist/lib/build/tsup.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Entry } from '@storm-software/build-tools/types';
|
|
2
|
-
import { T as TsupBuildConfig, C as Context, R as ResolvedEntryTypeDefinition, d as TsupResolvedBuildConfig } from '../config-
|
|
2
|
+
import { T as TsupBuildConfig, C as Context, R as ResolvedEntryTypeDefinition, d as TsupResolvedBuildConfig } from '../config-B2q8Me0M.js';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
5
5
|
import '@stryke/types/base';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Loader } from '@storm-software/unbuild/types';
|
|
2
|
-
import { U as UnbuildBuildConfig, C as Context, e as UnbuildResolvedBuildConfig } from '../config-
|
|
3
|
-
import { U as UNSAFE_PluginContext } from '../internal-
|
|
2
|
+
import { U as UnbuildBuildConfig, C as Context, e as UnbuildResolvedBuildConfig } from '../config-DMXVnKGF.cjs';
|
|
3
|
+
import { U as UNSAFE_PluginContext } from '../internal-CfIJWv8T.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
6
6
|
import '@storm-software/config/types';
|
|
@@ -30,7 +30,7 @@ import '@stryke/types/array';
|
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
32
32
|
import 'typescript';
|
|
33
|
-
import '../api-
|
|
33
|
+
import '../api-_rRpguWX.cjs';
|
|
34
34
|
|
|
35
35
|
declare const DEFAULT_UNBUILD_CONFIG: Partial<UnbuildBuildConfig>;
|
|
36
36
|
declare const unbuildLoader: (context: UNSAFE_PluginContext) => Loader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Loader } from '@storm-software/unbuild/types';
|
|
2
|
-
import { U as UnbuildBuildConfig, C as Context, e as UnbuildResolvedBuildConfig } from '../config-
|
|
3
|
-
import { U as UNSAFE_PluginContext } from '../internal-
|
|
2
|
+
import { U as UnbuildBuildConfig, C as Context, e as UnbuildResolvedBuildConfig } from '../config-B2q8Me0M.js';
|
|
3
|
+
import { U as UNSAFE_PluginContext } from '../internal-CGIi3MOX.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
6
6
|
import '@storm-software/config/types';
|
|
@@ -30,7 +30,7 @@ import '@stryke/types/array';
|
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.js';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
32
32
|
import 'typescript';
|
|
33
|
-
import '../api-
|
|
33
|
+
import '../api-Cxmk8sFc.js';
|
|
34
34
|
|
|
35
35
|
declare const DEFAULT_UNBUILD_CONFIG: Partial<UnbuildBuildConfig>;
|
|
36
36
|
declare const unbuildLoader: (context: UNSAFE_PluginContext) => Loader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as ViteResolvedBuildConfig, C as Context } from '../config-
|
|
1
|
+
import { V as ViteResolvedBuildConfig, C as Context } from '../config-DMXVnKGF.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
package/dist/lib/build/vite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as ViteResolvedBuildConfig, C as Context } from '../config-
|
|
1
|
+
import { V as ViteResolvedBuildConfig, C as Context } from '../config-B2q8Me0M.js';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
|
-
import { C as Context } from '../config-
|
|
2
|
+
import { C as Context } 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 { Configuration } from 'webpack';
|
|
2
|
-
import { C as Context } from '../config-
|
|
2
|
+
import { C as Context } 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';
|
|
@@ -9,6 +9,7 @@ import { toArray } from '@stryke/convert/to-array';
|
|
|
9
9
|
import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
|
|
10
10
|
import { existsSync } from '@stryke/fs/exists';
|
|
11
11
|
import { getResolutionCombinations, resolve, resolveSync } from '@stryke/fs/resolve';
|
|
12
|
+
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
12
13
|
import { appendPath } from '@stryke/path/append';
|
|
13
14
|
import { toAbsolutePath } from '@stryke/path/correct-path';
|
|
14
15
|
import { hasFileExtension, findFilePath, findFileName } from '@stryke/path/file-path-fns';
|
|
@@ -879,9 +880,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
879
880
|
if (isAbsolutePath(id)) {
|
|
880
881
|
return id;
|
|
881
882
|
}
|
|
883
|
+
const resolverCacheKey = murmurhash({
|
|
884
|
+
id: this.#normalizeId(id),
|
|
885
|
+
importer,
|
|
886
|
+
options
|
|
887
|
+
});
|
|
882
888
|
let result;
|
|
883
889
|
if (!this.#context.config.skipCache) {
|
|
884
|
-
result = this.resolverCache.get(
|
|
890
|
+
result = this.resolverCache.get(resolverCacheKey);
|
|
885
891
|
if (result) {
|
|
886
892
|
return result;
|
|
887
893
|
}
|
|
@@ -907,6 +913,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
907
913
|
}
|
|
908
914
|
try {
|
|
909
915
|
result = await resolve(id, {
|
|
916
|
+
...options,
|
|
910
917
|
paths
|
|
911
918
|
});
|
|
912
919
|
} catch {
|
|
@@ -915,7 +922,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
915
922
|
if (result) {
|
|
916
923
|
result = toAbsolutePath(appendPath(result, this.#context.config.projectRoot), this.#context.workspaceConfig.workspaceRoot);
|
|
917
924
|
if (!this.#context.config.skipCache) {
|
|
918
|
-
this.resolverCache.set(
|
|
925
|
+
this.resolverCache.set(resolverCacheKey, result);
|
|
919
926
|
}
|
|
920
927
|
}
|
|
921
928
|
return result;
|
|
@@ -11,6 +11,7 @@ var toArray = require('@stryke/convert/to-array');
|
|
|
11
11
|
var buffer = require('@stryke/fs/buffer');
|
|
12
12
|
var exists = require('@stryke/fs/exists');
|
|
13
13
|
var resolve = require('@stryke/fs/resolve');
|
|
14
|
+
var murmurhash = require('@stryke/hash/murmurhash');
|
|
14
15
|
var append = require('@stryke/path/append');
|
|
15
16
|
var correctPath = require('@stryke/path/correct-path');
|
|
16
17
|
var filePathFns = require('@stryke/path/file-path-fns');
|
|
@@ -901,9 +902,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
901
902
|
if (isType.isAbsolutePath(id)) {
|
|
902
903
|
return id;
|
|
903
904
|
}
|
|
905
|
+
const resolverCacheKey = murmurhash.murmurhash({
|
|
906
|
+
id: this.#normalizeId(id),
|
|
907
|
+
importer,
|
|
908
|
+
options
|
|
909
|
+
});
|
|
904
910
|
let result;
|
|
905
911
|
if (!this.#context.config.skipCache) {
|
|
906
|
-
result = this.resolverCache.get(
|
|
912
|
+
result = this.resolverCache.get(resolverCacheKey);
|
|
907
913
|
if (result) {
|
|
908
914
|
return result;
|
|
909
915
|
}
|
|
@@ -929,6 +935,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
929
935
|
}
|
|
930
936
|
try {
|
|
931
937
|
result = await resolve.resolve(id, {
|
|
938
|
+
...options,
|
|
932
939
|
paths
|
|
933
940
|
});
|
|
934
941
|
} catch {
|
|
@@ -937,7 +944,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
937
944
|
if (result) {
|
|
938
945
|
result = correctPath.toAbsolutePath(append.appendPath(result, this.#context.config.projectRoot), this.#context.workspaceConfig.workspaceRoot);
|
|
939
946
|
if (!this.#context.config.skipCache) {
|
|
940
|
-
this.resolverCache.set(
|
|
947
|
+
this.resolverCache.set(resolverCacheKey, result);
|
|
941
948
|
}
|
|
942
949
|
}
|
|
943
950
|
return result;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { getFileHeader } from './chunk-GANVMM73.js';
|
|
2
2
|
import { writeFile } from './chunk-TANQDHYY.js';
|
|
3
|
-
import { PowerlinesAPIContext } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { isPluginConfig, isPlugin, isPluginConfigTuple, isPluginConfigObject, checkDedupe } from './chunk-U33K3UDU.js';
|
|
3
|
+
import { PowerlinesAPIContext } from './chunk-HM52GHX3.js';
|
|
4
|
+
import { isPluginConfig, isPlugin, isPluginConfigTuple, isPluginConfigObject, checkDedupe } from './chunk-HE6HOGLS.js';
|
|
6
5
|
import { writeMetaFile } from './chunk-OEF6EHQV.js';
|
|
7
6
|
import { createProgram } from './chunk-4W6WV35V.js';
|
|
8
7
|
import { getParsedTypeScriptConfig, getTsconfigFilePath, isIncludeMatchFound } from './chunk-ZGMEHSNN.js';
|
|
@@ -30,11 +29,12 @@ import { isPromiseLike } from '@stryke/type-checks/is-promise';
|
|
|
30
29
|
import { isSet } from '@stryke/type-checks/is-set';
|
|
31
30
|
import { isSetObject } from '@stryke/type-checks/is-set-object';
|
|
32
31
|
import { isSetString } from '@stryke/type-checks/is-set-string';
|
|
33
|
-
import
|
|
32
|
+
import chalk3 from 'chalk';
|
|
34
33
|
import Handlebars from 'handlebars';
|
|
35
34
|
import { declare } from '@babel/helper-plugin-utils';
|
|
36
35
|
import * as t from '@babel/types';
|
|
37
36
|
import { flattenDiagnosticMessageText } from 'typescript';
|
|
37
|
+
import { defu } from 'defu';
|
|
38
38
|
import { getPackageName, hasPackageVersion, getPackageVersion } from '@stryke/string-format/package';
|
|
39
39
|
import { getObjectDiff } from '@donedeal0/superdiff';
|
|
40
40
|
import { readJsonFile } from '@stryke/fs/json';
|
|
@@ -190,6 +190,57 @@ ${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : dia
|
|
|
190
190
|
return formatTypes(builtinModules);
|
|
191
191
|
}
|
|
192
192
|
__name(emitTypes, "emitTypes");
|
|
193
|
+
async function callHook(context, hook, options, ...args) {
|
|
194
|
+
const handlers = context.selectHooks(hook, options);
|
|
195
|
+
if (handlers.length > 0) {
|
|
196
|
+
context.log(LogLevelLabel.DEBUG, ` \u{1F9E9} Calling plugin hook: ${chalk3.bold.cyanBright(`${hook}${options?.order ? ` (${options.order})` : ""}`)}`);
|
|
197
|
+
let results = [];
|
|
198
|
+
if (options?.sequential === false) {
|
|
199
|
+
results = await Promise.all(handlers.map(async (handler) => {
|
|
200
|
+
if (!isFunction(handler)) {
|
|
201
|
+
throw new Error(`Plugin hook handler for hook "${hook}" is not a function.`);
|
|
202
|
+
}
|
|
203
|
+
return Promise.resolve(handler.apply(null, ...args));
|
|
204
|
+
}));
|
|
205
|
+
} else {
|
|
206
|
+
for (const handler of handlers) {
|
|
207
|
+
if (!isFunction(handler)) {
|
|
208
|
+
throw new Error(`Plugin hook handler for hook "${hook}" is not a function.`);
|
|
209
|
+
}
|
|
210
|
+
if (options?.result === "first" || options?.asNextParam === false) {
|
|
211
|
+
results.push(await Promise.resolve(handler.apply(null, ...args)));
|
|
212
|
+
if (options?.result === "first" && isSet(results[results.length - 1])) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
} else {
|
|
216
|
+
const sequenceArgs = [
|
|
217
|
+
...args
|
|
218
|
+
];
|
|
219
|
+
if (results.length > 0 && sequenceArgs.length > 0) {
|
|
220
|
+
sequenceArgs[0] = isFunction(options.asNextParam) ? await Promise.resolve(options.asNextParam(results[0])) : results[0];
|
|
221
|
+
}
|
|
222
|
+
const result = await Promise.resolve(
|
|
223
|
+
// eslint-disable-next-line ts/no-unsafe-call
|
|
224
|
+
handler.apply(null, ...sequenceArgs)
|
|
225
|
+
);
|
|
226
|
+
results = [
|
|
227
|
+
result
|
|
228
|
+
];
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
const definedResults = results.filter((result) => isSet(result));
|
|
233
|
+
if (definedResults.length > 0) {
|
|
234
|
+
let mergedResult = void 0;
|
|
235
|
+
for (const result of definedResults) {
|
|
236
|
+
mergedResult = defu(result, mergedResult ?? {});
|
|
237
|
+
}
|
|
238
|
+
return mergedResult;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return void 0;
|
|
242
|
+
}
|
|
243
|
+
__name(callHook, "callHook");
|
|
193
244
|
async function installPackage(context, packageName, dev = false) {
|
|
194
245
|
if (!await isPackageListed(getPackageName(packageName), {
|
|
195
246
|
cwd: context.config.projectRoot
|
|
@@ -333,9 +384,9 @@ async function resolveTsconfig(context) {
|
|
|
333
384
|
if (changes.length > 0) {
|
|
334
385
|
context.log(LogLevelLabel.WARN, `Updating the following configuration values in "${context.tsconfig.tsconfigFilePath}" file:
|
|
335
386
|
|
|
336
|
-
${changes.map((change, i) => `${
|
|
337
|
-
${
|
|
338
|
-
${
|
|
387
|
+
${changes.map((change, i) => `${chalk3.bold.whiteBright(`${i + 1}. ${titleCase(change.status)} the ${change.field} field: `)}
|
|
388
|
+
${chalk3.red(` - Previous: ${change.previous} `)}
|
|
389
|
+
${chalk3.green(` - Updated: ${change.current} `)}
|
|
339
390
|
`).join("\n")}
|
|
340
391
|
`);
|
|
341
392
|
}
|
|
@@ -373,7 +424,11 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
373
424
|
this.#context = context;
|
|
374
425
|
}
|
|
375
426
|
/**
|
|
376
|
-
* Initialize
|
|
427
|
+
* Initialize a Powerlines API instance
|
|
428
|
+
*
|
|
429
|
+
* @param workspaceRoot - The directory of the underlying workspace the Powerlines project exists in
|
|
430
|
+
* @param config - An object containing the configuration required to run Powerlines tasks.
|
|
431
|
+
* @returns A new instance of the Powerlines API
|
|
377
432
|
*/
|
|
378
433
|
static async from(workspaceRoot, config) {
|
|
379
434
|
const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
|
|
@@ -697,7 +752,7 @@ ${formatTypes(generatedTypes)}
|
|
|
697
752
|
}
|
|
698
753
|
}
|
|
699
754
|
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
700
|
-
context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${
|
|
755
|
+
context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk3.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk3.greenBright(joinPaths(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk3.yellowBright(i)).join(", ")})` : ""}`);
|
|
701
756
|
await copyFiles(asset, asset.output);
|
|
702
757
|
}));
|
|
703
758
|
await this.callHook("build", {
|
|
@@ -845,7 +900,7 @@ ${formatTypes(generatedTypes)}
|
|
|
845
900
|
await this.#addPlugin(required);
|
|
846
901
|
}
|
|
847
902
|
}
|
|
848
|
-
this.context.log(LogLevelLabel.DEBUG, `Successfully initialized the ${
|
|
903
|
+
this.context.log(LogLevelLabel.DEBUG, `Successfully initialized the ${chalk3.bold.cyanBright(plugin.name)} plugin`);
|
|
849
904
|
await this.context.addPlugin(plugin);
|
|
850
905
|
}
|
|
851
906
|
}
|
|
@@ -906,10 +961,10 @@ ${formatTypes(generatedTypes)}
|
|
|
906
961
|
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.`);
|
|
907
962
|
}
|
|
908
963
|
if (checkDedupe(plugin, this.context.plugins)) {
|
|
909
|
-
this.context.log(LogLevelLabel.TRACE, `Duplicate ${
|
|
964
|
+
this.context.log(LogLevelLabel.TRACE, `Duplicate ${chalk3.bold.cyanBright(plugin.name)} plugin dependency detected - Skipping initialization.`);
|
|
910
965
|
return null;
|
|
911
966
|
}
|
|
912
|
-
this.context.log(LogLevelLabel.TRACE, `Initializing the ${
|
|
967
|
+
this.context.log(LogLevelLabel.TRACE, `Initializing the ${chalk3.bold.cyanBright(plugin.name)} plugin...`);
|
|
913
968
|
return plugin;
|
|
914
969
|
}
|
|
915
970
|
async #resolvePlugin(pluginPath) {
|
|
@@ -987,7 +1042,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
987
1042
|
async function resolveId(id, importer, options = {
|
|
988
1043
|
isEntry: false
|
|
989
1044
|
}) {
|
|
990
|
-
return api.context.
|
|
1045
|
+
return api.context.resolve(id, importer, options);
|
|
991
1046
|
}
|
|
992
1047
|
__name(resolveId, "resolveId");
|
|
993
1048
|
async function load(id) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkPIFNMTKN_cjs = require('./chunk-PIFNMTKN.cjs');
|
|
4
|
+
var chunkZ5JKSYRP_cjs = require('./chunk-Z5JKSYRP.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
var resolve = require('@stryke/fs/resolve');
|
|
7
7
|
var isFunction = require('@stryke/type-checks/is-function');
|
|
@@ -18,7 +18,7 @@ var PLUGIN_NON_HOOK_FIELDS = [
|
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
// src/lib/contexts/environment-context.ts
|
|
21
|
-
var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends
|
|
21
|
+
var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends chunkZ5JKSYRP_cjs.PowerlinesContext {
|
|
22
22
|
static {
|
|
23
23
|
chunkUSNT2KNT_cjs.__name(this, "PowerlinesEnvironmentContext");
|
|
24
24
|
}
|
|
@@ -66,9 +66,9 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
|
|
|
66
66
|
if (!result || isObject.isObject(result) && Object.keys(result).length === 0) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
resolvedPlugin =
|
|
69
|
+
resolvedPlugin = chunkZ5JKSYRP_cjs.isPlugin(result) ? result : plugin;
|
|
70
70
|
}
|
|
71
|
-
const context =
|
|
71
|
+
const context = chunkPIFNMTKN_cjs.createPluginContext(resolvedPlugin, this);
|
|
72
72
|
this.plugins.push({
|
|
73
73
|
plugin: resolvedPlugin,
|
|
74
74
|
context
|
|
@@ -76,28 +76,28 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
|
|
|
76
76
|
this.#hooks = Object.keys(resolvedPlugin).filter((key) => !PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
|
|
77
77
|
const hook = key;
|
|
78
78
|
const pluginHook = resolvedPlugin[hook];
|
|
79
|
-
if (!
|
|
79
|
+
if (!chunkZ5JKSYRP_cjs.isPluginHook(pluginHook)) {
|
|
80
80
|
return ret;
|
|
81
81
|
}
|
|
82
|
-
if (!
|
|
82
|
+
if (!chunkZ5JKSYRP_cjs.isHookExternal(hook)) {
|
|
83
83
|
ret[hook] ??= {};
|
|
84
84
|
if (resolvedPlugin.enforce) {
|
|
85
85
|
ret[hook][`${resolvedPlugin.enforce}Enforced`] ??= [];
|
|
86
|
-
|
|
86
|
+
chunkZ5JKSYRP_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${resolvedPlugin.enforce}Enforced`]);
|
|
87
87
|
return ret;
|
|
88
88
|
}
|
|
89
89
|
if (isFunction.isFunction(pluginHook) || !pluginHook.order) {
|
|
90
90
|
ret[hook].normal ??= [];
|
|
91
|
-
|
|
91
|
+
chunkZ5JKSYRP_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook].normal);
|
|
92
92
|
return ret;
|
|
93
93
|
}
|
|
94
94
|
ret[hook][`${pluginHook.order}Ordered`] ??= [];
|
|
95
|
-
|
|
95
|
+
chunkZ5JKSYRP_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${pluginHook.order}Ordered`]);
|
|
96
96
|
} else {
|
|
97
97
|
ret[hook] ??= [];
|
|
98
98
|
ret[hook].push({
|
|
99
99
|
plugin: resolvedPlugin,
|
|
100
|
-
hook:
|
|
100
|
+
hook: chunkZ5JKSYRP_cjs.getHookHandler(pluginHook).bind(context)
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
return ret;
|
|
@@ -109,7 +109,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
|
|
|
109
109
|
selectHooks(hook, options) {
|
|
110
110
|
const handlers = [];
|
|
111
111
|
if (this.hooks[hook]) {
|
|
112
|
-
if (!
|
|
112
|
+
if (!chunkZ5JKSYRP_cjs.isHookExternal(hook)) {
|
|
113
113
|
const hooks = this.hooks[hook];
|
|
114
114
|
if (options?.order) {
|
|
115
115
|
if (options?.order === "pre") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, getPrefixedProjectRootHash } from './chunk-OEF6EHQV.js';
|
|
2
|
-
import { VirtualFileSystem } from './chunk-
|
|
2
|
+
import { VirtualFileSystem } from './chunk-4SULM54S.js';
|
|
3
3
|
import { createProgram } from './chunk-4W6WV35V.js';
|
|
4
4
|
import { getTsconfigFilePath } from './chunk-ZGMEHSNN.js';
|
|
5
5
|
import { loadWorkspaceConfig, loadUserConfigFile } from './chunk-XBM7FHNK.js';
|
|
@@ -404,9 +404,26 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
404
404
|
* @param options - Additional resolution options.
|
|
405
405
|
* @returns A promise that resolves to the resolved module path.
|
|
406
406
|
*/
|
|
407
|
-
async
|
|
408
|
-
|
|
409
|
-
|
|
407
|
+
async resolve(id, importer, options = {}) {
|
|
408
|
+
let moduleId = id;
|
|
409
|
+
if (this.config.build.alias) {
|
|
410
|
+
if (Array.isArray(this.config.build.alias)) {
|
|
411
|
+
const alias = this.config.build.alias.find((a) => match(moduleId, [
|
|
412
|
+
a.find
|
|
413
|
+
]));
|
|
414
|
+
if (alias) {
|
|
415
|
+
moduleId = alias.replacement;
|
|
416
|
+
}
|
|
417
|
+
} else if (isSetObject(this.config.build.alias) && this.config.build.alias[id]) {
|
|
418
|
+
moduleId = this.config.build.alias[id];
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
if (this.fs.isVirtual(moduleId)) {
|
|
422
|
+
const result = await this.fs.resolve(moduleId, importer, {
|
|
423
|
+
conditions: this.config.build.conditions,
|
|
424
|
+
extensions: this.config.build.extensions,
|
|
425
|
+
...options
|
|
426
|
+
});
|
|
410
427
|
if (!result) {
|
|
411
428
|
return void 0;
|
|
412
429
|
}
|
|
@@ -416,28 +433,28 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
416
433
|
};
|
|
417
434
|
}
|
|
418
435
|
if (this.config.build.skipNodeModulesBundle) {
|
|
419
|
-
if (match(
|
|
436
|
+
if (match(moduleId, this.#resolvePatterns) || match(moduleId, this.config.build.noExternal)) {
|
|
420
437
|
return void 0;
|
|
421
438
|
}
|
|
422
|
-
if (match(
|
|
439
|
+
if (match(moduleId, this.config.build.external) || moduleId.startsWith("node:")) {
|
|
423
440
|
return {
|
|
424
|
-
id,
|
|
441
|
+
id: moduleId,
|
|
425
442
|
external: true
|
|
426
443
|
};
|
|
427
444
|
}
|
|
428
|
-
if (!/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(
|
|
445
|
+
if (!/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId)) {
|
|
429
446
|
return {
|
|
430
|
-
id,
|
|
447
|
+
id: moduleId,
|
|
431
448
|
external: true
|
|
432
449
|
};
|
|
433
450
|
}
|
|
434
451
|
} else {
|
|
435
|
-
if (match(
|
|
452
|
+
if (match(moduleId, this.config.build.noExternal)) {
|
|
436
453
|
return void 0;
|
|
437
454
|
}
|
|
438
|
-
if (match(
|
|
455
|
+
if (match(moduleId, this.config.build.external) || moduleId.startsWith("node:")) {
|
|
439
456
|
return {
|
|
440
|
-
id,
|
|
457
|
+
id: moduleId,
|
|
441
458
|
external: true
|
|
442
459
|
};
|
|
443
460
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PowerlinesEnvironmentContext } from './chunk-
|
|
2
|
-
import { PowerlinesContext } from './chunk-
|
|
1
|
+
import { PowerlinesEnvironmentContext } from './chunk-KJDASLW3.js';
|
|
2
|
+
import { PowerlinesContext } from './chunk-HE6HOGLS.js';
|
|
3
3
|
import { loadWorkspaceConfig } from './chunk-XBM7FHNK.js';
|
|
4
4
|
import { __name } from './chunk-SHUYVCID.js';
|
|
5
5
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createPluginContext } from './chunk-
|
|
2
|
-
import { PowerlinesContext, isPlugin, isPluginHook, isHookExternal, addPluginHook, getHookHandler } from './chunk-
|
|
1
|
+
import { createPluginContext } from './chunk-OL35IC6Z.js';
|
|
2
|
+
import { PowerlinesContext, isPlugin, isPluginHook, isHookExternal, addPluginHook, getHookHandler } from './chunk-HE6HOGLS.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { resolvePackage } from '@stryke/fs/resolve';
|
|
5
5
|
import { isFunction } from '@stryke/type-checks/is-function';
|