powerlines 0.20.0 → 0.22.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.cjs +4 -4
- package/dist/api.d.cts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.js +3 -3
- package/dist/astro.cjs +10 -10
- package/dist/astro.d.cts +1 -2
- package/dist/astro.d.ts +1 -2
- package/dist/astro.js +7 -7
- package/dist/{chunk-WRP6ANCC.js → chunk-237NITCY.js} +20 -5
- package/dist/{chunk-LM6YBGC6.cjs → chunk-2HNC5JVK.cjs} +2 -2
- package/dist/{chunk-4KCSCJ6E.js → chunk-2Q2PSPZK.js} +1 -1
- package/dist/{chunk-24AZZCCW.js → chunk-3FS7K4DZ.js} +1 -1
- package/dist/{chunk-OQNYDN5F.cjs → chunk-3JH36WUJ.cjs} +2 -2
- package/dist/{chunk-CTSV5JAF.cjs → chunk-44UTUCBG.cjs} +21 -8
- package/dist/{chunk-MOH4CWHN.cjs → chunk-6XRDZOE3.cjs} +968 -664
- package/dist/{chunk-MZQXGWUK.cjs → chunk-7C2NEC7D.cjs} +2 -2
- package/dist/{chunk-SIEHJFKB.js → chunk-A5GTERYN.js} +2 -2
- package/dist/chunk-B4KLWFY6.cjs +32 -0
- package/dist/{chunk-FBMQTOMN.js → chunk-C5TKY75S.js} +1 -1
- package/dist/{chunk-T4AJOD6A.cjs → chunk-DMXXNXLS.cjs} +4 -4
- package/dist/{chunk-IHWRGHX6.cjs → chunk-F4BD5CXH.cjs} +2 -2
- package/dist/chunk-GRAVJX3I.js +29 -0
- package/dist/{chunk-WE7PLY4H.cjs → chunk-HV7SHEHD.cjs} +11 -4
- package/dist/{chunk-WJ4CZKXY.js → chunk-JKBJF3UI.js} +1 -1
- package/dist/{chunk-2QGVOWKM.js → chunk-L4AXJFX2.js} +19 -6
- package/dist/{chunk-VXF37DA2.cjs → chunk-LKYBC6DX.cjs} +4 -4
- package/dist/{chunk-A2EZ3M22.js → chunk-M6XGEVJY.js} +1 -1
- package/dist/{chunk-FYKDALJL.js → chunk-NZXMP4J5.js} +1 -1
- package/dist/{chunk-F4TS44KB.js → chunk-OZU47JET.js} +999 -702
- package/dist/{chunk-FCTNMPJF.cjs → chunk-PAMSESZV.cjs} +1 -1
- package/dist/{chunk-TY3QAXEY.js → chunk-PDFOF6ZP.js} +11 -4
- package/dist/{chunk-IMMNZSFZ.cjs → chunk-PJP4MECA.cjs} +2 -2
- package/dist/{chunk-VSZXQLMI.js → chunk-QQGXARP3.js} +1 -1
- package/dist/{chunk-6UVRB3IN.cjs → chunk-SQANNMRF.cjs} +22 -7
- package/dist/{chunk-2KGMZZ36.js → chunk-SVDPKN3U.js} +1 -1
- package/dist/chunk-SVF4ATJR.cjs +8 -0
- package/dist/{chunk-VVFIZVYE.cjs → chunk-UVM4JAR3.cjs} +2 -2
- package/dist/{chunk-JKF342AW.js → chunk-WU7I52LM.js} +2 -2
- package/dist/{chunk-P3BP6LXC.cjs → chunk-WYJGOC3Y.cjs} +2 -2
- package/dist/{chunk-KL7HP7JM.cjs → chunk-YG5ORYN2.cjs} +2 -2
- package/dist/{chunk-QH3M5FBF.js → chunk-ZPOCM5XZ.js} +1 -1
- package/dist/chunk-ZWF7LZXE.js +5 -0
- package/dist/config.d.cts +1 -2
- package/dist/config.d.ts +1 -2
- package/dist/esbuild.cjs +9 -9
- package/dist/esbuild.d.cts +1 -2
- package/dist/esbuild.d.ts +1 -2
- package/dist/esbuild.js +6 -6
- package/dist/farm.cjs +5 -5
- package/dist/farm.d.cts +1 -2
- package/dist/farm.d.ts +1 -2
- package/dist/farm.js +4 -4
- package/dist/{hooks-CUxY7WKY.d.cts → hooks-CJ1W5lrx.d.cts} +1 -1
- package/dist/{hooks-BBZyf9CN.d.ts → hooks-CNEZpkMS.d.ts} +1 -1
- package/dist/index.cjs +45 -287
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +20 -244
- package/dist/lib/build/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.d.cts +1 -3
- package/dist/lib/build/esbuild.d.ts +1 -3
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +23 -23
- package/dist/lib/build/index.d.cts +2 -4
- package/dist/lib/build/index.d.ts +2 -4
- package/dist/lib/build/index.js +8 -8
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -3
- package/dist/lib/build/rolldown.d.ts +1 -3
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +1 -3
- package/dist/lib/build/rollup.d.ts +1 -3
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.d.cts +1 -3
- package/dist/lib/build/rspack.d.ts +1 -3
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.d.cts +1 -3
- package/dist/lib/build/tsup.d.ts +1 -3
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +2 -4
- package/dist/lib/build/unbuild.d.ts +2 -4
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.d.cts +1 -3
- package/dist/lib/build/vite.d.ts +1 -3
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +1 -3
- package/dist/lib/build/webpack.d.ts +1 -3
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/{chunk-K4FER6YK.cjs → chunk-27VJFYDM.cjs} +13 -6
- package/dist/lib/{chunk-ZJNDT3GX.js → chunk-3G4C3YAU.js} +12 -5
- package/dist/lib/{chunk-TTKY3DR4.js → chunk-43VJVIL2.js} +975 -679
- package/dist/lib/{chunk-CLV4J4L7.cjs → chunk-4FX4VOLA.cjs} +2 -3
- package/dist/lib/{chunk-DFRWBQQT.js → chunk-5GM5UAUO.js} +3 -4
- package/dist/lib/{chunk-S5F4DE65.js → chunk-5SADLYYK.js} +1 -1
- package/dist/lib/{chunk-TNHDC2ZQ.cjs → chunk-7XHBIYIN.cjs} +1 -20
- package/dist/lib/{chunk-SM3S7DYW.js → chunk-BHDQZ6YX.js} +12 -2
- package/dist/lib/{chunk-FGYAS4NB.cjs → chunk-CSJ6KNIX.cjs} +11 -4
- package/dist/lib/{chunk-O36FCQM6.cjs → chunk-E2MVGKGH.cjs} +2 -2
- package/dist/lib/{chunk-O5LNKYQV.cjs → chunk-FN7673NC.cjs} +2 -2
- package/dist/lib/{chunk-HIY6WOU3.cjs → chunk-GDXHCTCX.cjs} +13 -6
- package/dist/lib/{chunk-IBONIIAZ.cjs → chunk-HCOHRD3Q.cjs} +19 -6
- package/dist/lib/{chunk-OI2V6L7D.js → chunk-HOZ37BFN.js} +2 -3
- package/dist/lib/{chunk-4QRL5CNE.js → chunk-HQ5YA43H.js} +11 -4
- package/dist/lib/{chunk-IXREPTHZ.js → chunk-IOM7GRZU.js} +1 -1
- package/dist/lib/{chunk-WFUO3YPK.js → chunk-L4NEN725.js} +19 -4
- package/dist/lib/{chunk-H7V7EPB2.cjs → chunk-LAFEAMNN.cjs} +2 -2
- package/dist/lib/{chunk-7Y5MJRWF.js → chunk-LIN4KAV3.js} +57 -34
- package/dist/lib/{chunk-MWA3DWY5.cjs → chunk-LMO7PRBP.cjs} +4 -5
- package/dist/lib/{chunk-ARCFV3IJ.cjs → chunk-LPA7UJIR.cjs} +955 -657
- package/dist/lib/{chunk-OTBLE55Z.cjs → chunk-MPCVQK2D.cjs} +12 -1
- package/dist/lib/{chunk-4RUHX7LV.js → chunk-QAXCBFBP.js} +1 -1
- package/dist/lib/{chunk-WWNNBLU7.js → chunk-T7RMV2FW.js} +18 -5
- package/dist/lib/{chunk-7K7JH3DF.cjs → chunk-ULJVBW4L.cjs} +19 -4
- package/dist/lib/{chunk-UDJ37BEE.cjs → chunk-VGSV2BEL.cjs} +57 -34
- package/dist/lib/{chunk-GRJJZ5VJ.js → chunk-YH5GOJS3.js} +2 -15
- package/dist/lib/{chunk-NU4GDWLL.js → chunk-YV6MDKW4.js} +12 -5
- package/dist/lib/{config-DN8Ad0lv.d.cts → config-7vXtXiGg.d.cts} +67 -67
- package/dist/lib/{config-Bag1Ft7u.d.ts → config-B9aVEiiX.d.ts} +67 -67
- package/dist/lib/config-file.d.cts +1 -3
- package/dist/lib/config-file.d.ts +1 -3
- package/dist/lib/create-program.d.cts +1 -3
- package/dist/lib/create-program.d.ts +1 -3
- package/dist/lib/entry.cjs +9 -9
- package/dist/lib/entry.d.cts +1 -3
- package/dist/lib/entry.d.ts +1 -3
- package/dist/lib/entry.js +1 -1
- package/dist/lib/{hooks-BVnPAWgt.d.ts → hooks-BxUBzqCb.d.ts} +1 -1
- package/dist/lib/{hooks-H2P-7xA4.d.cts → hooks-cvv50JDh.d.cts} +1 -1
- package/dist/lib/index.cjs +32 -28
- package/dist/lib/index.d.cts +326 -7
- package/dist/lib/index.d.ts +326 -7
- package/dist/lib/index.js +8 -8
- package/dist/lib/logger.d.cts +1 -3
- package/dist/lib/logger.d.ts +1 -3
- package/dist/lib/typescript/compiler-host.d.cts +1 -3
- package/dist/lib/typescript/compiler-host.d.ts +1 -3
- package/dist/lib/typescript/import-transformer.d.cts +1 -3
- package/dist/lib/typescript/import-transformer.d.ts +1 -3
- package/dist/lib/typescript/index.d.cts +1 -3
- package/dist/lib/typescript/index.d.ts +1 -3
- package/dist/lib/typescript/program.d.cts +1 -3
- package/dist/lib/typescript/program.d.ts +1 -3
- package/dist/lib/unplugin/factory.cjs +5 -5
- package/dist/lib/unplugin/factory.d.cts +7 -9
- package/dist/lib/unplugin/factory.d.ts +7 -9
- package/dist/lib/unplugin/factory.js +4 -4
- package/dist/lib/unplugin/index.cjs +8 -8
- package/dist/lib/unplugin/index.d.cts +2 -4
- package/dist/lib/unplugin/index.d.ts +2 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.cjs +3 -3
- package/dist/lib/unplugin/plugin.d.cts +1 -3
- package/dist/lib/unplugin/plugin.d.ts +1 -3
- package/dist/lib/unplugin/plugin.js +2 -2
- package/dist/lib/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +1 -3
- package/dist/lib/unplugin/resolve-id.d.ts +1 -3
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.d.cts +1 -3
- package/dist/lib/utilities/bundle.d.ts +1 -3
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/cache.d.cts +1 -3
- package/dist/lib/utilities/cache.d.ts +1 -3
- package/dist/lib/utilities/file-header.d.cts +1 -3
- package/dist/lib/utilities/file-header.d.ts +1 -3
- package/dist/lib/utilities/index.cjs +14 -14
- package/dist/lib/utilities/index.d.cts +1 -3
- package/dist/lib/utilities/index.d.ts +1 -3
- package/dist/lib/utilities/index.js +5 -5
- package/dist/lib/utilities/meta.cjs +8 -8
- package/dist/lib/utilities/meta.d.cts +1 -3
- package/dist/lib/utilities/meta.d.ts +1 -3
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -3
- package/dist/lib/utilities/resolve-path.d.ts +1 -3
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.d.cts +1 -3
- package/dist/lib/utilities/resolve.d.ts +1 -3
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/lib/utilities/source-file.d.cts +1 -3
- package/dist/lib/utilities/source-file.d.ts +1 -3
- package/dist/lib/utilities/source-map.d.cts +1 -3
- package/dist/lib/utilities/source-map.d.ts +1 -3
- package/dist/lib/utilities/worker.d.cts +1 -3
- package/dist/lib/utilities/worker.d.ts +1 -3
- package/dist/lib/utilities/write-file.d.cts +1 -3
- package/dist/lib/utilities/write-file.d.ts +1 -3
- package/dist/next.cjs +9 -9
- package/dist/next.js +6 -6
- package/dist/nuxt.cjs +11 -11
- package/dist/nuxt.js +8 -8
- package/dist/plugin-utils/{chunk-YKIS7BLU.cjs → chunk-5MO4BCOW.cjs} +24 -0
- package/dist/plugin-utils/{chunk-HHFA3IEZ.js → chunk-CYVV2MB7.js} +24 -0
- package/dist/plugin-utils/chunk-DGUQQKZF.js +41 -0
- package/dist/plugin-utils/{chunk-75UVEMIV.cjs → chunk-DZZPNO5H.cjs} +2 -2
- package/dist/plugin-utils/{chunk-WEIEQXIJ.cjs → chunk-ECFS7DPV.cjs} +5 -5
- package/dist/plugin-utils/{chunk-MQOW6ENT.cjs → chunk-F65J5WOX.cjs} +1 -1
- package/dist/plugin-utils/{chunk-IHME6YWJ.js → chunk-GV7O3E7P.js} +1 -1
- package/dist/plugin-utils/chunk-HZIY2AV4.cjs +43 -0
- package/dist/plugin-utils/{chunk-PK6PYFWY.js → chunk-L277XSSN.js} +1 -1
- package/dist/plugin-utils/{chunk-YDYJAGMP.js → chunk-QKMG6ZAU.js} +1 -1
- package/dist/plugin-utils/{chunk-5TL6KEQ5.cjs → chunk-UNAGYQRB.cjs} +4 -4
- package/dist/plugin-utils/{chunk-432MQOUZ.js → chunk-XIXI67PY.js} +1 -1
- package/dist/plugin-utils/{config-pwKiZvzJ.d.cts → context-BseW8r26.d.cts} +406 -406
- package/dist/plugin-utils/{config-pwKiZvzJ.d.ts → context-BseW8r26.d.ts} +406 -406
- package/dist/plugin-utils/context-helpers.cjs +11 -0
- package/dist/plugin-utils/context-helpers.d.cts +29 -0
- package/dist/plugin-utils/context-helpers.d.ts +29 -0
- package/dist/plugin-utils/context-helpers.js +2 -0
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +9 -11
- package/dist/plugin-utils/enforce.d.ts +9 -11
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +9 -11
- package/dist/plugin-utils/extend.d.ts +9 -11
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.cjs +2 -2
- package/dist/plugin-utils/get-config-path.d.cts +9 -11
- package/dist/plugin-utils/get-config-path.d.ts +9 -11
- package/dist/plugin-utils/get-config-path.js +1 -1
- package/dist/plugin-utils/helpers.cjs +14 -14
- package/dist/plugin-utils/helpers.d.cts +7 -9
- package/dist/plugin-utils/helpers.d.ts +7 -9
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +27 -22
- package/dist/plugin-utils/index.d.cts +10 -11
- package/dist/plugin-utils/index.d.ts +10 -11
- package/dist/plugin-utils/index.js +6 -5
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +9 -11
- package/dist/plugin-utils/merge.d.ts +9 -11
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.d.cts +9 -11
- package/dist/plugin-utils/paths.d.ts +9 -11
- package/dist/{resolved-ohMN-3VJ.d.cts → resolved-D8vIizyA.d.cts} +15 -16
- package/dist/{resolved-Sxyrlt6g.d.ts → resolved-DWxXKJYy.d.ts} +15 -16
- package/dist/rolldown.cjs +8 -8
- package/dist/rolldown.d.cts +1 -2
- package/dist/rolldown.d.ts +1 -2
- package/dist/rolldown.js +5 -5
- package/dist/rollup.cjs +8 -8
- package/dist/rollup.d.cts +1 -2
- package/dist/rollup.d.ts +1 -2
- package/dist/rollup.js +5 -5
- package/dist/rspack.cjs +8 -8
- package/dist/rspack.d.cts +1 -2
- package/dist/rspack.d.ts +1 -2
- package/dist/rspack.js +5 -5
- package/dist/tsup.cjs +10 -10
- package/dist/tsup.js +7 -7
- package/dist/types/babel.d.cts +1 -2
- package/dist/types/babel.d.ts +1 -2
- package/dist/types/build.d.cts +18 -1
- package/dist/types/build.d.ts +18 -1
- package/dist/types/commands.cjs +2 -2
- package/dist/types/commands.d.cts +1 -2
- package/dist/types/commands.d.ts +1 -2
- package/dist/types/commands.js +1 -1
- package/dist/types/config.d.cts +1 -2
- package/dist/types/config.d.ts +1 -2
- package/dist/types/context.d.cts +1 -2
- package/dist/types/context.d.ts +1 -2
- package/dist/types/hooks.d.cts +1 -2
- package/dist/types/hooks.d.ts +1 -2
- package/dist/types/index.cjs +6 -22
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +2 -3
- package/dist/types/internal.d.ts +2 -3
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/dist/types/resolved.d.cts +1 -2
- package/dist/types/resolved.d.ts +1 -2
- package/dist/types/unplugin.d.cts +1 -2
- package/dist/types/unplugin.d.ts +1 -2
- package/dist/types/vfs.cjs +4 -20
- package/dist/types/vfs.d.cts +47 -54
- package/dist/types/vfs.d.ts +47 -54
- package/dist/types/vfs.js +1 -1
- package/dist/unloader.cjs +8 -8
- package/dist/unloader.d.cts +1 -2
- package/dist/unloader.d.ts +1 -2
- package/dist/unloader.js +5 -5
- package/dist/unplugin.cjs +20 -20
- package/dist/unplugin.d.cts +2 -3
- package/dist/unplugin.d.ts +2 -3
- package/dist/unplugin.js +17 -17
- package/dist/vite.cjs +9 -9
- package/dist/vite.d.cts +1 -2
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js +6 -6
- package/dist/webpack.cjs +8 -8
- package/dist/webpack.d.cts +1 -2
- package/dist/webpack.d.ts +1 -2
- package/dist/webpack.js +5 -5
- package/package.json +3 -3
- package/dist/chunk-OBYFBPPO.js +0 -9
- package/dist/chunk-RF6RSWD4.cjs +0 -16
- package/dist/chunk-SECEPZQ3.cjs +0 -32
- package/dist/chunk-XBS3AHAK.js +0 -29
|
@@ -1,27 +1,26 @@
|
|
|
1
|
+
export { getOrganizationName } from './context-helpers.cjs';
|
|
1
2
|
export { enforceVariant } from './enforce.cjs';
|
|
2
3
|
export { extend } from './extend.cjs';
|
|
3
4
|
export { getConfigPath } from './get-config-path.cjs';
|
|
4
5
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './helpers.cjs';
|
|
5
6
|
export { MergeResult, merge } from './merge.cjs';
|
|
6
7
|
export { replacePathTokens } from './paths.cjs';
|
|
7
|
-
import './
|
|
8
|
-
import '@storm-software/build-tools/types';
|
|
9
|
-
import '@storm-software/config-tools/types';
|
|
10
|
-
import '@storm-software/config/types';
|
|
11
|
-
import '@stryke/types/base';
|
|
12
|
-
import '@stryke/types/configuration';
|
|
13
|
-
import '@stryke/types/file';
|
|
14
|
-
import 'vite';
|
|
8
|
+
import './context-BseW8r26.cjs';
|
|
15
9
|
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/base';
|
|
16
11
|
import '@stryke/types/package-json';
|
|
17
12
|
import 'jiti';
|
|
18
13
|
import 'oxc-parser';
|
|
19
14
|
import 'semver';
|
|
20
15
|
import 'unplugin';
|
|
21
|
-
import '@
|
|
16
|
+
import '@storm-software/build-tools/types';
|
|
17
|
+
import '@storm-software/config-tools/types';
|
|
18
|
+
import '@storm-software/config/types';
|
|
19
|
+
import '@stryke/types/configuration';
|
|
20
|
+
import '@stryke/types/file';
|
|
21
|
+
import 'vite';
|
|
22
22
|
import '@stryke/types/tsconfig';
|
|
23
23
|
import 'typescript';
|
|
24
24
|
import '@stryke/json/types';
|
|
25
|
-
import 'memfs';
|
|
26
25
|
import 'node:fs';
|
|
27
|
-
import '
|
|
26
|
+
import '@stryke/types/array';
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
+
export { getOrganizationName } from './context-helpers.js';
|
|
1
2
|
export { enforceVariant } from './enforce.js';
|
|
2
3
|
export { extend } from './extend.js';
|
|
3
4
|
export { getConfigPath } from './get-config-path.js';
|
|
4
5
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './helpers.js';
|
|
5
6
|
export { MergeResult, merge } from './merge.js';
|
|
6
7
|
export { replacePathTokens } from './paths.js';
|
|
7
|
-
import './
|
|
8
|
-
import '@storm-software/build-tools/types';
|
|
9
|
-
import '@storm-software/config-tools/types';
|
|
10
|
-
import '@storm-software/config/types';
|
|
11
|
-
import '@stryke/types/base';
|
|
12
|
-
import '@stryke/types/configuration';
|
|
13
|
-
import '@stryke/types/file';
|
|
14
|
-
import 'vite';
|
|
8
|
+
import './context-BseW8r26.js';
|
|
15
9
|
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/base';
|
|
16
11
|
import '@stryke/types/package-json';
|
|
17
12
|
import 'jiti';
|
|
18
13
|
import 'oxc-parser';
|
|
19
14
|
import 'semver';
|
|
20
15
|
import 'unplugin';
|
|
21
|
-
import '@
|
|
16
|
+
import '@storm-software/build-tools/types';
|
|
17
|
+
import '@storm-software/config-tools/types';
|
|
18
|
+
import '@storm-software/config/types';
|
|
19
|
+
import '@stryke/types/configuration';
|
|
20
|
+
import '@stryke/types/file';
|
|
21
|
+
import 'vite';
|
|
22
22
|
import '@stryke/types/tsconfig';
|
|
23
23
|
import 'typescript';
|
|
24
24
|
import '@stryke/json/types';
|
|
25
|
-
import 'memfs';
|
|
26
25
|
import 'node:fs';
|
|
27
|
-
import '
|
|
26
|
+
import '@stryke/types/array';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export { getOrganizationName } from './chunk-DGUQQKZF.js';
|
|
2
|
+
export { enforceVariant } from './chunk-XIXI67PY.js';
|
|
3
|
+
export { extend } from './chunk-GV7O3E7P.js';
|
|
4
|
+
export { getConfigPath } from './chunk-CYVV2MB7.js';
|
|
5
|
+
export { merge } from './chunk-QKMG6ZAU.js';
|
|
6
|
+
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './chunk-L277XSSN.js';
|
|
6
7
|
export { replacePathTokens } from './chunk-J33TXWF6.js';
|
|
7
8
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkUNAGYQRB_cjs = require('./chunk-UNAGYQRB.cjs');
|
|
4
|
+
require('./chunk-F65J5WOX.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "merge", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkUNAGYQRB_cjs.merge; }
|
|
12
12
|
});
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './
|
|
2
|
-
import '@storm-software/build-tools/types';
|
|
3
|
-
import '@storm-software/config-tools/types';
|
|
4
|
-
import '@storm-software/config/types';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
|
-
import '@stryke/types/file';
|
|
8
|
-
import 'vite';
|
|
1
|
+
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './context-BseW8r26.cjs';
|
|
9
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/types/base';
|
|
10
4
|
import '@stryke/types/package-json';
|
|
11
5
|
import 'jiti';
|
|
12
6
|
import 'oxc-parser';
|
|
13
7
|
import 'semver';
|
|
14
8
|
import 'unplugin';
|
|
15
|
-
import '@
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'vite';
|
|
16
15
|
import '@stryke/types/tsconfig';
|
|
17
16
|
import 'typescript';
|
|
18
17
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
18
|
import 'node:fs';
|
|
21
|
-
import '
|
|
19
|
+
import '@stryke/types/array';
|
|
22
20
|
|
|
23
21
|
type MergeResult<TContext extends PluginContext, TPluginA extends Plugin<TContext> | PartialPlugin<TContext>, TPluginB extends Plugin<TContext> | PartialPlugin<TContext>> = TPluginA extends Plugin<TContext> ? Plugin<TContext> : TPluginB extends Plugin<TContext> ? Plugin<TContext> : PartialPlugin<TContext>;
|
|
24
22
|
/**
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './
|
|
2
|
-
import '@storm-software/build-tools/types';
|
|
3
|
-
import '@storm-software/config-tools/types';
|
|
4
|
-
import '@storm-software/config/types';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
|
-
import '@stryke/types/file';
|
|
8
|
-
import 'vite';
|
|
1
|
+
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './context-BseW8r26.js';
|
|
9
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/types/base';
|
|
10
4
|
import '@stryke/types/package-json';
|
|
11
5
|
import 'jiti';
|
|
12
6
|
import 'oxc-parser';
|
|
13
7
|
import 'semver';
|
|
14
8
|
import 'unplugin';
|
|
15
|
-
import '@
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'vite';
|
|
16
15
|
import '@stryke/types/tsconfig';
|
|
17
16
|
import 'typescript';
|
|
18
17
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
18
|
import 'node:fs';
|
|
21
|
-
import '
|
|
19
|
+
import '@stryke/types/array';
|
|
22
20
|
|
|
23
21
|
type MergeResult<TContext extends PluginContext, TPluginA extends Plugin<TContext> | PartialPlugin<TContext>, TPluginB extends Plugin<TContext> | PartialPlugin<TContext>> = TPluginA extends Plugin<TContext> ? Plugin<TContext> : TPluginB extends Plugin<TContext> ? Plugin<TContext> : PartialPlugin<TContext>;
|
|
24
22
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { merge } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { merge } from './chunk-QKMG6ZAU.js';
|
|
2
|
+
import './chunk-L277XSSN.js';
|
|
3
3
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import {
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
|
-
import '@stryke/types/file';
|
|
8
|
-
import 'vite';
|
|
2
|
+
import { U as UnresolvedContext } from './context-BseW8r26.cjs';
|
|
9
3
|
import '@stryke/env/get-env-paths';
|
|
10
4
|
import '@stryke/types/package-json';
|
|
11
5
|
import 'jiti';
|
|
12
6
|
import 'oxc-parser';
|
|
13
7
|
import 'semver';
|
|
14
8
|
import 'unplugin';
|
|
15
|
-
import '@
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'vite';
|
|
16
15
|
import '@stryke/types/tsconfig';
|
|
17
16
|
import 'typescript';
|
|
18
17
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
18
|
import 'node:fs';
|
|
21
|
-
import '
|
|
19
|
+
import '@stryke/types/array';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Replaces tokens in the given path string with their corresponding values from the context.
|
|
@@ -42,6 +40,6 @@ import 'unionfs';
|
|
|
42
40
|
* @param path - The path string with tokens to replace.
|
|
43
41
|
* @returns The path string with tokens replaced by their corresponding values from the context.
|
|
44
42
|
*/
|
|
45
|
-
declare function replacePathTokens(context:
|
|
43
|
+
declare function replacePathTokens(context: UnresolvedContext, path?: string): IsUndefined<typeof path> extends true ? undefined : string;
|
|
46
44
|
|
|
47
45
|
export { replacePathTokens };
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import {
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
|
-
import '@stryke/types/file';
|
|
8
|
-
import 'vite';
|
|
2
|
+
import { U as UnresolvedContext } from './context-BseW8r26.js';
|
|
9
3
|
import '@stryke/env/get-env-paths';
|
|
10
4
|
import '@stryke/types/package-json';
|
|
11
5
|
import 'jiti';
|
|
12
6
|
import 'oxc-parser';
|
|
13
7
|
import 'semver';
|
|
14
8
|
import 'unplugin';
|
|
15
|
-
import '@
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'vite';
|
|
16
15
|
import '@stryke/types/tsconfig';
|
|
17
16
|
import 'typescript';
|
|
18
17
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
18
|
import 'node:fs';
|
|
21
|
-
import '
|
|
19
|
+
import '@stryke/types/array';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Replaces tokens in the given path string with their corresponding values from the context.
|
|
@@ -42,6 +40,6 @@ import 'unionfs';
|
|
|
42
40
|
* @param path - The path string with tokens to replace.
|
|
43
41
|
* @returns The path string with tokens replaced by their corresponding values from the context.
|
|
44
42
|
*/
|
|
45
|
-
declare function replacePathTokens(context:
|
|
43
|
+
declare function replacePathTokens(context: UnresolvedContext, path?: string): IsUndefined<typeof path> extends true ? undefined : string;
|
|
46
44
|
|
|
47
45
|
export { replacePathTokens };
|
|
@@ -21,9 +21,9 @@ import { Unimport } from 'unimport';
|
|
|
21
21
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
22
22
|
import { ArrayValues } from '@stryke/types/array';
|
|
23
23
|
import { ParsedTypeScriptConfig, TSConfig } from './types/tsconfig.cjs';
|
|
24
|
-
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions,
|
|
24
|
+
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions, VirtualFileMetadata, OutputModeType } from './types/vfs.cjs';
|
|
25
25
|
|
|
26
|
-
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "
|
|
26
|
+
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
27
27
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
28
28
|
type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
|
|
29
29
|
|
|
@@ -329,14 +329,6 @@ interface MetaInfo {
|
|
|
329
329
|
* A hash that represents the path to the project root directory
|
|
330
330
|
*/
|
|
331
331
|
configHash: string;
|
|
332
|
-
/**
|
|
333
|
-
* A mapping of runtime ids to their corresponding file paths
|
|
334
|
-
*/
|
|
335
|
-
builtinIdMap: Record<string, string>;
|
|
336
|
-
/**
|
|
337
|
-
* A mapping of virtual file paths to their corresponding file contents
|
|
338
|
-
*/
|
|
339
|
-
virtualFiles: Record<string, string | null>;
|
|
340
332
|
}
|
|
341
333
|
interface Resolver extends Jiti {
|
|
342
334
|
plugin: Jiti;
|
|
@@ -674,7 +666,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
674
666
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
|
|
675
667
|
interface SerializedVirtualFileSystem {
|
|
676
668
|
virtualFiles: DirectoryJSON;
|
|
677
|
-
virtualFilesMeta: Record<string, Partial<
|
|
669
|
+
virtualFilesMeta: Record<string, Partial<VirtualFileMetadata>>;
|
|
678
670
|
}
|
|
679
671
|
|
|
680
672
|
interface NamedImportDefinition {
|
|
@@ -909,6 +901,13 @@ interface BaseConfig {
|
|
|
909
901
|
* This configuration will be used by the documentation generation plugins during the `docs` command.
|
|
910
902
|
*/
|
|
911
903
|
docs?: Record<string, any>;
|
|
904
|
+
/**
|
|
905
|
+
* Configuration for deploying the source code
|
|
906
|
+
*
|
|
907
|
+
* @remarks
|
|
908
|
+
* If set to `false`, the deployment will be disabled.
|
|
909
|
+
*/
|
|
910
|
+
deploy?: Record<string, any> | false;
|
|
912
911
|
/**
|
|
913
912
|
* The path to the tsconfig file to be used by the compiler
|
|
914
913
|
*
|
|
@@ -1044,7 +1043,7 @@ type ParsedUserConfig<TUserConfig extends UserConfig = UserConfig> = TUserConfig
|
|
|
1044
1043
|
*/
|
|
1045
1044
|
configFile?: ConfigLayer<TUserConfig>["configFile"];
|
|
1046
1045
|
};
|
|
1047
|
-
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "
|
|
1046
|
+
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1048
1047
|
/**
|
|
1049
1048
|
* The configuration provided while executing Powerlines commands.
|
|
1050
1049
|
*/
|
|
@@ -1094,11 +1093,11 @@ type DocsInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfi
|
|
|
1094
1093
|
*/
|
|
1095
1094
|
command: "docs";
|
|
1096
1095
|
};
|
|
1097
|
-
type
|
|
1096
|
+
type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
1098
1097
|
/**
|
|
1099
1098
|
* A string identifier for the Powerlines command being executed
|
|
1100
1099
|
*/
|
|
1101
|
-
command: "
|
|
1100
|
+
command: "deploy";
|
|
1102
1101
|
};
|
|
1103
1102
|
type ConfigEnv = Pick<ResolvedConfig$2, "command" | "mode" | "environments" | "preview">;
|
|
1104
1103
|
type AnyUserConfig = Record<string, any> & (Partial<UserConfig> | Partial<WebpackUserConfig> | Partial<RspackUserConfig> | Partial<ViteUserConfig> | Partial<ESBuildUserConfig> | Partial<UnbuildUserConfig> | Partial<TsupUserConfig> | Partial<RolldownUserConfig> | Partial<RollupUserConfig> | Partial<FarmUserConfig>);
|
|
@@ -1135,7 +1134,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1135
1134
|
/**
|
|
1136
1135
|
* The resolved options for the Powerlines project configuration.
|
|
1137
1136
|
*/
|
|
1138
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "framework">> & {
|
|
1137
|
+
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">> & {
|
|
1139
1138
|
/**
|
|
1140
1139
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1141
1140
|
*/
|
|
@@ -1191,4 +1190,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
|
|
|
1191
1190
|
type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
|
|
1192
1191
|
type InferResolvedConfig<TBuildVariant extends BuildVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
|
|
1193
1192
|
|
|
1194
|
-
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type
|
|
1193
|
+
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type DeployInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type FarmResolvedConfig as a$, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type PluginHook as aA, type GenerateTypesResult as aB, type ConfigResult as aC, type BasePluginHookFunctions as aD, type BuildPlugin as aE, type ExternalPluginHookFunctionsVariant as aF, type ExternalPluginHookFunctions as aG, type PluginHookFunctions as aH, type PluginHooks as aI, type PluginBuildPlugins as aJ, type Plugin as aK, PLUGIN_NON_HOOK_FIELDS as aL, type PluginNonHookFields as aM, type ResolvedEntryTypeDefinition as aN, type BabelResolvedConfig as aO, type EnvironmentResolvedConfig as aP, type ResolvedAssetGlob as aQ, type OutputResolvedConfig as aR, type ResolvedConfig as aS, type ViteResolvedConfig as aT, type WebpackResolvedConfig as aU, type RspackResolvedConfig as aV, type ESBuildResolvedConfig as aW, type RollupResolvedConfig as aX, type RolldownResolvedConfig as aY, type TsupResolvedConfig as aZ, type UnbuildResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type UnresolvedContext as ad, type Context as ae, type APIContext as af, type EnvironmentContextPlugin as ag, type EnvironmentContext as ah, type PluginContext as ai, type BuildPluginContext as aj, type SerializedVirtualFileSystem as ak, type BaseHooks as al, type BaseHookKeys as am, type ExternalHooks as an, type ExternalHookKeys as ao, type Hooks as ap, type HookKeys as aq, type BaseHooksListItem as ar, type BaseHooksList as as, type ExternalHooksListItem as at, type HooksList as au, type InferHookHandler as av, type InferHookReturnType as aw, type InferHookParameters as ax, type InferHookThisType as ay, type PluginHookObject as az, type BabelTransformPlugin as b, type InferResolvedConfig as b0, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
|
|
@@ -21,9 +21,9 @@ import { Unimport } from 'unimport';
|
|
|
21
21
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
22
22
|
import { ArrayValues } from '@stryke/types/array';
|
|
23
23
|
import { ParsedTypeScriptConfig, TSConfig } from './types/tsconfig.js';
|
|
24
|
-
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions,
|
|
24
|
+
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions, VirtualFileMetadata, OutputModeType } from './types/vfs.js';
|
|
25
25
|
|
|
26
|
-
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "
|
|
26
|
+
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
27
27
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
28
28
|
type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
|
|
29
29
|
|
|
@@ -329,14 +329,6 @@ interface MetaInfo {
|
|
|
329
329
|
* A hash that represents the path to the project root directory
|
|
330
330
|
*/
|
|
331
331
|
configHash: string;
|
|
332
|
-
/**
|
|
333
|
-
* A mapping of runtime ids to their corresponding file paths
|
|
334
|
-
*/
|
|
335
|
-
builtinIdMap: Record<string, string>;
|
|
336
|
-
/**
|
|
337
|
-
* A mapping of virtual file paths to their corresponding file contents
|
|
338
|
-
*/
|
|
339
|
-
virtualFiles: Record<string, string | null>;
|
|
340
332
|
}
|
|
341
333
|
interface Resolver extends Jiti {
|
|
342
334
|
plugin: Jiti;
|
|
@@ -674,7 +666,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
674
666
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
|
|
675
667
|
interface SerializedVirtualFileSystem {
|
|
676
668
|
virtualFiles: DirectoryJSON;
|
|
677
|
-
virtualFilesMeta: Record<string, Partial<
|
|
669
|
+
virtualFilesMeta: Record<string, Partial<VirtualFileMetadata>>;
|
|
678
670
|
}
|
|
679
671
|
|
|
680
672
|
interface NamedImportDefinition {
|
|
@@ -909,6 +901,13 @@ interface BaseConfig {
|
|
|
909
901
|
* This configuration will be used by the documentation generation plugins during the `docs` command.
|
|
910
902
|
*/
|
|
911
903
|
docs?: Record<string, any>;
|
|
904
|
+
/**
|
|
905
|
+
* Configuration for deploying the source code
|
|
906
|
+
*
|
|
907
|
+
* @remarks
|
|
908
|
+
* If set to `false`, the deployment will be disabled.
|
|
909
|
+
*/
|
|
910
|
+
deploy?: Record<string, any> | false;
|
|
912
911
|
/**
|
|
913
912
|
* The path to the tsconfig file to be used by the compiler
|
|
914
913
|
*
|
|
@@ -1044,7 +1043,7 @@ type ParsedUserConfig<TUserConfig extends UserConfig = UserConfig> = TUserConfig
|
|
|
1044
1043
|
*/
|
|
1045
1044
|
configFile?: ConfigLayer<TUserConfig>["configFile"];
|
|
1046
1045
|
};
|
|
1047
|
-
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "
|
|
1046
|
+
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1048
1047
|
/**
|
|
1049
1048
|
* The configuration provided while executing Powerlines commands.
|
|
1050
1049
|
*/
|
|
@@ -1094,11 +1093,11 @@ type DocsInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfi
|
|
|
1094
1093
|
*/
|
|
1095
1094
|
command: "docs";
|
|
1096
1095
|
};
|
|
1097
|
-
type
|
|
1096
|
+
type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
1098
1097
|
/**
|
|
1099
1098
|
* A string identifier for the Powerlines command being executed
|
|
1100
1099
|
*/
|
|
1101
|
-
command: "
|
|
1100
|
+
command: "deploy";
|
|
1102
1101
|
};
|
|
1103
1102
|
type ConfigEnv = Pick<ResolvedConfig$2, "command" | "mode" | "environments" | "preview">;
|
|
1104
1103
|
type AnyUserConfig = Record<string, any> & (Partial<UserConfig> | Partial<WebpackUserConfig> | Partial<RspackUserConfig> | Partial<ViteUserConfig> | Partial<ESBuildUserConfig> | Partial<UnbuildUserConfig> | Partial<TsupUserConfig> | Partial<RolldownUserConfig> | Partial<RollupUserConfig> | Partial<FarmUserConfig>);
|
|
@@ -1135,7 +1134,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1135
1134
|
/**
|
|
1136
1135
|
* The resolved options for the Powerlines project configuration.
|
|
1137
1136
|
*/
|
|
1138
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "framework">> & {
|
|
1137
|
+
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">> & {
|
|
1139
1138
|
/**
|
|
1140
1139
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1141
1140
|
*/
|
|
@@ -1191,4 +1190,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
|
|
|
1191
1190
|
type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
|
|
1192
1191
|
type InferResolvedConfig<TBuildVariant extends BuildVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
|
|
1193
1192
|
|
|
1194
|
-
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type
|
|
1193
|
+
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type DeployInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type FarmResolvedConfig as a$, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type PluginHook as aA, type GenerateTypesResult as aB, type ConfigResult as aC, type BasePluginHookFunctions as aD, type BuildPlugin as aE, type ExternalPluginHookFunctionsVariant as aF, type ExternalPluginHookFunctions as aG, type PluginHookFunctions as aH, type PluginHooks as aI, type PluginBuildPlugins as aJ, type Plugin as aK, PLUGIN_NON_HOOK_FIELDS as aL, type PluginNonHookFields as aM, type ResolvedEntryTypeDefinition as aN, type BabelResolvedConfig as aO, type EnvironmentResolvedConfig as aP, type ResolvedAssetGlob as aQ, type OutputResolvedConfig as aR, type ResolvedConfig as aS, type ViteResolvedConfig as aT, type WebpackResolvedConfig as aU, type RspackResolvedConfig as aV, type ESBuildResolvedConfig as aW, type RollupResolvedConfig as aX, type RolldownResolvedConfig as aY, type TsupResolvedConfig as aZ, type UnbuildResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type UnresolvedContext as ad, type Context as ae, type APIContext as af, type EnvironmentContextPlugin as ag, type EnvironmentContext as ah, type PluginContext as ai, type BuildPluginContext as aj, type SerializedVirtualFileSystem as ak, type BaseHooks as al, type BaseHookKeys as am, type ExternalHooks as an, type ExternalHookKeys as ao, type Hooks as ap, type HookKeys as aq, type BaseHooksListItem as ar, type BaseHooksList as as, type ExternalHooksListItem as at, type HooksList as au, type InferHookHandler as av, type InferHookReturnType as aw, type InferHookParameters as ax, type InferHookThisType as ay, type PluginHookObject as az, type BabelTransformPlugin as b, type InferResolvedConfig as b0, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
|
package/dist/rolldown.cjs
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkUVM4JAR3_cjs = require('./chunk-UVM4JAR3.cjs');
|
|
6
|
+
require('./chunk-SQANNMRF.cjs');
|
|
7
|
+
require('./chunk-6XRDZOE3.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-SVF4ATJR.cjs');
|
|
10
|
+
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-USNT2KNT.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkUVM4JAR3_cjs.rolldown_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkUVM4JAR3_cjs.rolldown; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rolldown", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkUVM4JAR3_cjs.rolldown; }
|
|
26
26
|
});
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rolldown$1 from 'rolldown';
|
|
2
|
-
import { v as RolldownUserConfig } from './resolved-
|
|
2
|
+
import { v as RolldownUserConfig } from './resolved-D8vIizyA.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -35,7 +35,6 @@ import 'typescript';
|
|
|
35
35
|
import './types/vfs.cjs';
|
|
36
36
|
import '@stryke/json/types';
|
|
37
37
|
import 'node:fs';
|
|
38
|
-
import 'unionfs';
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rolldown$1 from 'rolldown';
|
|
2
|
-
import { v as RolldownUserConfig } from './resolved-
|
|
2
|
+
import { v as RolldownUserConfig } from './resolved-DWxXKJYy.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -35,7 +35,6 @@ import 'typescript';
|
|
|
35
35
|
import './types/vfs.js';
|
|
36
36
|
import '@stryke/json/types';
|
|
37
37
|
import 'node:fs';
|
|
38
|
-
import 'unionfs';
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
package/dist/rolldown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-SVDPKN3U.js';
|
|
2
|
+
import './chunk-237NITCY.js';
|
|
3
|
+
import './chunk-OZU47JET.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-ZWF7LZXE.js';
|
|
6
|
+
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-SHUYVCID.js';
|
package/dist/rollup.cjs
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunk7C2NEC7D_cjs = require('./chunk-7C2NEC7D.cjs');
|
|
6
|
+
require('./chunk-SQANNMRF.cjs');
|
|
7
|
+
require('./chunk-6XRDZOE3.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-SVF4ATJR.cjs');
|
|
10
|
+
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-USNT2KNT.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7C2NEC7D_cjs.rollup_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7C2NEC7D_cjs.rollup; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rollup", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7C2NEC7D_cjs.rollup; }
|
|
26
26
|
});
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rollup$1 from 'rollup';
|
|
2
|
-
import { u as RollupUserConfig } from './resolved-
|
|
2
|
+
import { u as RollupUserConfig } from './resolved-D8vIizyA.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -35,7 +35,6 @@ import 'typescript';
|
|
|
35
35
|
import './types/vfs.cjs';
|
|
36
36
|
import '@stryke/json/types';
|
|
37
37
|
import 'node:fs';
|
|
38
|
-
import 'unionfs';
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rollup$1 from 'rollup';
|
|
2
|
-
import { u as RollupUserConfig } from './resolved-
|
|
2
|
+
import { u as RollupUserConfig } from './resolved-DWxXKJYy.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -35,7 +35,6 @@ import 'typescript';
|
|
|
35
35
|
import './types/vfs.js';
|
|
36
36
|
import '@stryke/json/types';
|
|
37
37
|
import 'node:fs';
|
|
38
|
-
import 'unionfs';
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|