powerlines 0.20.0 → 0.21.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-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-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 → config-BzVVjChJ.d.cts} +65 -65
- package/dist/plugin-utils/{config-pwKiZvzJ.d.ts → config-BzVVjChJ.d.ts} +65 -65
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +1 -3
- package/dist/plugin-utils/enforce.d.ts +1 -3
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +1 -3
- package/dist/plugin-utils/extend.d.ts +1 -3
- 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 +1 -3
- package/dist/plugin-utils/get-config-path.d.ts +1 -3
- 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 +1 -3
- package/dist/plugin-utils/helpers.d.ts +1 -3
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +22 -22
- package/dist/plugin-utils/index.d.cts +1 -3
- package/dist/plugin-utils/index.d.ts +1 -3
- package/dist/plugin-utils/index.js +5 -5
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +1 -3
- package/dist/plugin-utils/merge.d.ts +1 -3
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.d.cts +2 -4
- package/dist/plugin-utils/paths.d.ts +2 -4
- 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
|
@@ -15,9 +15,7 @@ import { ArrayValues } from '@stryke/types/array';
|
|
|
15
15
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
16
16
|
import ts from 'typescript';
|
|
17
17
|
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
18
|
-
import { Volume } from 'memfs';
|
|
19
18
|
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
20
|
-
import { IUnionFs } from 'unionfs';
|
|
21
19
|
|
|
22
20
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
23
21
|
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
@@ -28,6 +26,20 @@ interface BuildConfig {
|
|
|
28
26
|
* @defaultValue "neutral"
|
|
29
27
|
*/
|
|
30
28
|
platform?: "node" | "browser" | "neutral";
|
|
29
|
+
/**
|
|
30
|
+
* Array of strings indicating the polyfills to include for the build.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* {
|
|
38
|
+
* polyfill: ['{projectRoot}/custom-polyfill.ts']
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
polyfill?: string[];
|
|
31
43
|
/**
|
|
32
44
|
* Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
|
|
33
45
|
*
|
|
@@ -113,7 +125,10 @@ interface BuildConfig {
|
|
|
113
125
|
*
|
|
114
126
|
* @see https://github.com/rollup/plugins/tree/master/packages/alias
|
|
115
127
|
*/
|
|
116
|
-
alias?: Record<string, string
|
|
128
|
+
alias?: Record<string, string> | Array<{
|
|
129
|
+
find: string | RegExp;
|
|
130
|
+
replacement: string;
|
|
131
|
+
}>;
|
|
117
132
|
/**
|
|
118
133
|
* A list of modules that should not be bundled, even if they are external dependencies.
|
|
119
134
|
*
|
|
@@ -139,7 +154,7 @@ interface BuildConfig {
|
|
|
139
154
|
}
|
|
140
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
141
156
|
|
|
142
|
-
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "
|
|
157
|
+
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
143
158
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
144
159
|
|
|
145
160
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
@@ -169,7 +184,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
169
184
|
/**
|
|
170
185
|
* The resolved options for the Powerlines project configuration.
|
|
171
186
|
*/
|
|
172
|
-
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">> & {
|
|
187
|
+
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">> & {
|
|
173
188
|
/**
|
|
174
189
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
175
190
|
*/
|
|
@@ -507,11 +522,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
507
522
|
tsconfigFilePath: string;
|
|
508
523
|
};
|
|
509
524
|
|
|
510
|
-
declare const
|
|
511
|
-
declare const __VFS_REVERT__
|
|
512
|
-
declare const __VFS_CACHE__ = "__VFS_CACHE__";
|
|
513
|
-
declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
|
|
514
|
-
declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
|
|
525
|
+
declare const __VFS_PATCH__: unique symbol;
|
|
526
|
+
declare const __VFS_REVERT__: unique symbol;
|
|
515
527
|
type OutputModeType = "fs" | "virtual";
|
|
516
528
|
interface VirtualFile {
|
|
517
529
|
/**
|
|
@@ -551,7 +563,24 @@ interface VirtualFile {
|
|
|
551
563
|
*/
|
|
552
564
|
code: string | NodeJS.ArrayBufferView;
|
|
553
565
|
}
|
|
554
|
-
|
|
566
|
+
interface VirtualFileMetadata {
|
|
567
|
+
/**
|
|
568
|
+
* The identifier for the file data.
|
|
569
|
+
*/
|
|
570
|
+
id: string;
|
|
571
|
+
/**
|
|
572
|
+
* The variant of the file.
|
|
573
|
+
*/
|
|
574
|
+
variant: string;
|
|
575
|
+
/**
|
|
576
|
+
* The output mode of the file.
|
|
577
|
+
*/
|
|
578
|
+
mode: string;
|
|
579
|
+
/**
|
|
580
|
+
* Additional metadata associated with the file.
|
|
581
|
+
*/
|
|
582
|
+
properties: Record<string, string>;
|
|
583
|
+
}
|
|
555
584
|
interface ResolveFSOptions {
|
|
556
585
|
mode?: OutputModeType;
|
|
557
586
|
}
|
|
@@ -580,12 +609,18 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
580
609
|
type?: "file" | "directory";
|
|
581
610
|
}
|
|
582
611
|
interface VirtualFileSystemInterface {
|
|
583
|
-
|
|
612
|
+
/**
|
|
613
|
+
* Patches the File System to include the virtual file system (VFS) contents.
|
|
614
|
+
*/
|
|
615
|
+
[__VFS_PATCH__]: () => void;
|
|
616
|
+
/**
|
|
617
|
+
* Reverts the virtual file system (VFS) to its previous state.
|
|
618
|
+
*/
|
|
584
619
|
[__VFS_REVERT__]: () => void;
|
|
585
620
|
/**
|
|
586
621
|
* The underlying file metadata.
|
|
587
622
|
*/
|
|
588
|
-
|
|
623
|
+
metadata: Record<string, VirtualFileMetadata | undefined>;
|
|
589
624
|
/**
|
|
590
625
|
* A map of module ids to their file paths.
|
|
591
626
|
*/
|
|
@@ -605,7 +640,7 @@ interface VirtualFileSystemInterface {
|
|
|
605
640
|
* @param options - Optional parameters for resolving the path.
|
|
606
641
|
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
607
642
|
*/
|
|
608
|
-
|
|
643
|
+
isPhysical: (pathOrId: string, options?: ResolvePathOptions) => boolean;
|
|
609
644
|
/**
|
|
610
645
|
* Checks if a file exists in the virtual file system (VFS).
|
|
611
646
|
*
|
|
@@ -620,15 +655,6 @@ interface VirtualFileSystemInterface {
|
|
|
620
655
|
* @returns `true` if the directory exists, otherwise `false`.
|
|
621
656
|
*/
|
|
622
657
|
isDirectory: (path: string) => boolean;
|
|
623
|
-
/**
|
|
624
|
-
* Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
|
|
625
|
-
*
|
|
626
|
-
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
627
|
-
*
|
|
628
|
-
* @param pathOrId - The path or id to check.
|
|
629
|
-
* @returns Whether the path or id corresponds to a virtual file.
|
|
630
|
-
*/
|
|
631
|
-
isTsconfigPath: (pathOrId: string) => boolean;
|
|
632
658
|
/**
|
|
633
659
|
* Checks if a file exists in the virtual file system (VFS).
|
|
634
660
|
*
|
|
@@ -642,7 +668,7 @@ interface VirtualFileSystemInterface {
|
|
|
642
668
|
* @param pathOrId - The path or id of the file.
|
|
643
669
|
* @returns The metadata of the file if it exists, otherwise undefined.
|
|
644
670
|
*/
|
|
645
|
-
getMetadata: (pathOrId: PathLike) =>
|
|
671
|
+
getMetadata: (pathOrId: PathLike) => VirtualFileMetadata | undefined;
|
|
646
672
|
/**
|
|
647
673
|
* Gets the stats of a file in the virtual file system (VFS).
|
|
648
674
|
*
|
|
@@ -850,23 +876,12 @@ interface VirtualFileSystemInterface {
|
|
|
850
876
|
*/
|
|
851
877
|
resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
|
|
852
878
|
/**
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
|
-
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
879
|
+
* Formats a path to match the virtual file system (VFS) structure.
|
|
856
880
|
*
|
|
857
|
-
* @param path - The path to
|
|
858
|
-
* @returns The
|
|
881
|
+
* @param path - The path to format.
|
|
882
|
+
* @returns The formatted path.
|
|
859
883
|
*/
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* Resolves a package name based on TypeScript's `tsconfig.json` paths.
|
|
863
|
-
*
|
|
864
|
-
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
865
|
-
*
|
|
866
|
-
* @param path - The path to check.
|
|
867
|
-
* @returns The resolved package name if it exists, otherwise undefined.
|
|
868
|
-
*/
|
|
869
|
-
resolveTsconfigPathPackage: (path: string) => string | false;
|
|
884
|
+
formatPath: (path: string) => string;
|
|
870
885
|
/**
|
|
871
886
|
* Resolves a path or id to a file path in the virtual file system.
|
|
872
887
|
*
|
|
@@ -875,23 +890,9 @@ interface VirtualFileSystemInterface {
|
|
|
875
890
|
*/
|
|
876
891
|
realpathSync: (pathOrId: string) => string;
|
|
877
892
|
/**
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
* @returns A record mapping file paths to their partial metadata.
|
|
881
|
-
*/
|
|
882
|
-
getPartialMeta: () => Record<string, Partial<VirtualFileSystemMetadata>>;
|
|
883
|
-
/**
|
|
884
|
-
* A map of cached file paths to their underlying file content.
|
|
885
|
-
*/
|
|
886
|
-
[__VFS_CACHE__]: Map<string, string>;
|
|
887
|
-
/**
|
|
888
|
-
* A reference to the underlying virtual file system.
|
|
893
|
+
* Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
|
|
889
894
|
*/
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* A reference to the underlying unified file system.
|
|
893
|
-
*/
|
|
894
|
-
[__VFS_UNIFIED__]: IUnionFs;
|
|
895
|
+
dispose: () => Promise<void>;
|
|
895
896
|
}
|
|
896
897
|
|
|
897
898
|
interface MetaInfo {
|
|
@@ -919,14 +920,6 @@ interface MetaInfo {
|
|
|
919
920
|
* A hash that represents the path to the project root directory
|
|
920
921
|
*/
|
|
921
922
|
configHash: string;
|
|
922
|
-
/**
|
|
923
|
-
* A mapping of runtime ids to their corresponding file paths
|
|
924
|
-
*/
|
|
925
|
-
builtinIdMap: Record<string, string>;
|
|
926
|
-
/**
|
|
927
|
-
* A mapping of virtual file paths to their corresponding file contents
|
|
928
|
-
*/
|
|
929
|
-
virtualFiles: Record<string, string | null>;
|
|
930
923
|
}
|
|
931
924
|
interface Resolver extends Jiti {
|
|
932
925
|
plugin: Jiti;
|
|
@@ -1295,6 +1288,13 @@ interface BaseConfig {
|
|
|
1295
1288
|
* This configuration will be used by the documentation generation plugins during the `docs` command.
|
|
1296
1289
|
*/
|
|
1297
1290
|
docs?: Record<string, any>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Configuration for deploying the source code
|
|
1293
|
+
*
|
|
1294
|
+
* @remarks
|
|
1295
|
+
* If set to `false`, the deployment will be disabled.
|
|
1296
|
+
*/
|
|
1297
|
+
deploy?: Record<string, any> | false;
|
|
1298
1298
|
/**
|
|
1299
1299
|
* The path to the tsconfig file to be used by the compiler
|
|
1300
1300
|
*
|
|
@@ -1408,7 +1408,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
1408
1408
|
override?: Partial<TBuildResolvedConfig>;
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
-
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "
|
|
1411
|
+
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1412
1412
|
/**
|
|
1413
1413
|
* The configuration provided while executing Powerlines commands.
|
|
1414
1414
|
*/
|
|
@@ -1419,4 +1419,4 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
|
|
|
1419
1419
|
command: PowerlinesCommand;
|
|
1420
1420
|
};
|
|
1421
1421
|
|
|
1422
|
-
export type { BuildVariant as B,
|
|
1422
|
+
export type { BuildVariant as B, ConfigResult as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -15,9 +15,7 @@ import { ArrayValues } from '@stryke/types/array';
|
|
|
15
15
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
16
16
|
import ts from 'typescript';
|
|
17
17
|
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
18
|
-
import { Volume } from 'memfs';
|
|
19
18
|
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
20
|
-
import { IUnionFs } from 'unionfs';
|
|
21
19
|
|
|
22
20
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
23
21
|
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
@@ -28,6 +26,20 @@ interface BuildConfig {
|
|
|
28
26
|
* @defaultValue "neutral"
|
|
29
27
|
*/
|
|
30
28
|
platform?: "node" | "browser" | "neutral";
|
|
29
|
+
/**
|
|
30
|
+
* Array of strings indicating the polyfills to include for the build.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* {
|
|
38
|
+
* polyfill: ['{projectRoot}/custom-polyfill.ts']
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
polyfill?: string[];
|
|
31
43
|
/**
|
|
32
44
|
* Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
|
|
33
45
|
*
|
|
@@ -113,7 +125,10 @@ interface BuildConfig {
|
|
|
113
125
|
*
|
|
114
126
|
* @see https://github.com/rollup/plugins/tree/master/packages/alias
|
|
115
127
|
*/
|
|
116
|
-
alias?: Record<string, string
|
|
128
|
+
alias?: Record<string, string> | Array<{
|
|
129
|
+
find: string | RegExp;
|
|
130
|
+
replacement: string;
|
|
131
|
+
}>;
|
|
117
132
|
/**
|
|
118
133
|
* A list of modules that should not be bundled, even if they are external dependencies.
|
|
119
134
|
*
|
|
@@ -139,7 +154,7 @@ interface BuildConfig {
|
|
|
139
154
|
}
|
|
140
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
141
156
|
|
|
142
|
-
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "
|
|
157
|
+
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
143
158
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
144
159
|
|
|
145
160
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
@@ -169,7 +184,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
169
184
|
/**
|
|
170
185
|
* The resolved options for the Powerlines project configuration.
|
|
171
186
|
*/
|
|
172
|
-
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">> & {
|
|
187
|
+
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">> & {
|
|
173
188
|
/**
|
|
174
189
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
175
190
|
*/
|
|
@@ -507,11 +522,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
507
522
|
tsconfigFilePath: string;
|
|
508
523
|
};
|
|
509
524
|
|
|
510
|
-
declare const
|
|
511
|
-
declare const __VFS_REVERT__
|
|
512
|
-
declare const __VFS_CACHE__ = "__VFS_CACHE__";
|
|
513
|
-
declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
|
|
514
|
-
declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
|
|
525
|
+
declare const __VFS_PATCH__: unique symbol;
|
|
526
|
+
declare const __VFS_REVERT__: unique symbol;
|
|
515
527
|
type OutputModeType = "fs" | "virtual";
|
|
516
528
|
interface VirtualFile {
|
|
517
529
|
/**
|
|
@@ -551,7 +563,24 @@ interface VirtualFile {
|
|
|
551
563
|
*/
|
|
552
564
|
code: string | NodeJS.ArrayBufferView;
|
|
553
565
|
}
|
|
554
|
-
|
|
566
|
+
interface VirtualFileMetadata {
|
|
567
|
+
/**
|
|
568
|
+
* The identifier for the file data.
|
|
569
|
+
*/
|
|
570
|
+
id: string;
|
|
571
|
+
/**
|
|
572
|
+
* The variant of the file.
|
|
573
|
+
*/
|
|
574
|
+
variant: string;
|
|
575
|
+
/**
|
|
576
|
+
* The output mode of the file.
|
|
577
|
+
*/
|
|
578
|
+
mode: string;
|
|
579
|
+
/**
|
|
580
|
+
* Additional metadata associated with the file.
|
|
581
|
+
*/
|
|
582
|
+
properties: Record<string, string>;
|
|
583
|
+
}
|
|
555
584
|
interface ResolveFSOptions {
|
|
556
585
|
mode?: OutputModeType;
|
|
557
586
|
}
|
|
@@ -580,12 +609,18 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
580
609
|
type?: "file" | "directory";
|
|
581
610
|
}
|
|
582
611
|
interface VirtualFileSystemInterface {
|
|
583
|
-
|
|
612
|
+
/**
|
|
613
|
+
* Patches the File System to include the virtual file system (VFS) contents.
|
|
614
|
+
*/
|
|
615
|
+
[__VFS_PATCH__]: () => void;
|
|
616
|
+
/**
|
|
617
|
+
* Reverts the virtual file system (VFS) to its previous state.
|
|
618
|
+
*/
|
|
584
619
|
[__VFS_REVERT__]: () => void;
|
|
585
620
|
/**
|
|
586
621
|
* The underlying file metadata.
|
|
587
622
|
*/
|
|
588
|
-
|
|
623
|
+
metadata: Record<string, VirtualFileMetadata | undefined>;
|
|
589
624
|
/**
|
|
590
625
|
* A map of module ids to their file paths.
|
|
591
626
|
*/
|
|
@@ -605,7 +640,7 @@ interface VirtualFileSystemInterface {
|
|
|
605
640
|
* @param options - Optional parameters for resolving the path.
|
|
606
641
|
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
607
642
|
*/
|
|
608
|
-
|
|
643
|
+
isPhysical: (pathOrId: string, options?: ResolvePathOptions) => boolean;
|
|
609
644
|
/**
|
|
610
645
|
* Checks if a file exists in the virtual file system (VFS).
|
|
611
646
|
*
|
|
@@ -620,15 +655,6 @@ interface VirtualFileSystemInterface {
|
|
|
620
655
|
* @returns `true` if the directory exists, otherwise `false`.
|
|
621
656
|
*/
|
|
622
657
|
isDirectory: (path: string) => boolean;
|
|
623
|
-
/**
|
|
624
|
-
* Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
|
|
625
|
-
*
|
|
626
|
-
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
627
|
-
*
|
|
628
|
-
* @param pathOrId - The path or id to check.
|
|
629
|
-
* @returns Whether the path or id corresponds to a virtual file.
|
|
630
|
-
*/
|
|
631
|
-
isTsconfigPath: (pathOrId: string) => boolean;
|
|
632
658
|
/**
|
|
633
659
|
* Checks if a file exists in the virtual file system (VFS).
|
|
634
660
|
*
|
|
@@ -642,7 +668,7 @@ interface VirtualFileSystemInterface {
|
|
|
642
668
|
* @param pathOrId - The path or id of the file.
|
|
643
669
|
* @returns The metadata of the file if it exists, otherwise undefined.
|
|
644
670
|
*/
|
|
645
|
-
getMetadata: (pathOrId: PathLike) =>
|
|
671
|
+
getMetadata: (pathOrId: PathLike) => VirtualFileMetadata | undefined;
|
|
646
672
|
/**
|
|
647
673
|
* Gets the stats of a file in the virtual file system (VFS).
|
|
648
674
|
*
|
|
@@ -850,23 +876,12 @@ interface VirtualFileSystemInterface {
|
|
|
850
876
|
*/
|
|
851
877
|
resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
|
|
852
878
|
/**
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
|
-
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
879
|
+
* Formats a path to match the virtual file system (VFS) structure.
|
|
856
880
|
*
|
|
857
|
-
* @param path - The path to
|
|
858
|
-
* @returns The
|
|
881
|
+
* @param path - The path to format.
|
|
882
|
+
* @returns The formatted path.
|
|
859
883
|
*/
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* Resolves a package name based on TypeScript's `tsconfig.json` paths.
|
|
863
|
-
*
|
|
864
|
-
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
865
|
-
*
|
|
866
|
-
* @param path - The path to check.
|
|
867
|
-
* @returns The resolved package name if it exists, otherwise undefined.
|
|
868
|
-
*/
|
|
869
|
-
resolveTsconfigPathPackage: (path: string) => string | false;
|
|
884
|
+
formatPath: (path: string) => string;
|
|
870
885
|
/**
|
|
871
886
|
* Resolves a path or id to a file path in the virtual file system.
|
|
872
887
|
*
|
|
@@ -875,23 +890,9 @@ interface VirtualFileSystemInterface {
|
|
|
875
890
|
*/
|
|
876
891
|
realpathSync: (pathOrId: string) => string;
|
|
877
892
|
/**
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
* @returns A record mapping file paths to their partial metadata.
|
|
881
|
-
*/
|
|
882
|
-
getPartialMeta: () => Record<string, Partial<VirtualFileSystemMetadata>>;
|
|
883
|
-
/**
|
|
884
|
-
* A map of cached file paths to their underlying file content.
|
|
885
|
-
*/
|
|
886
|
-
[__VFS_CACHE__]: Map<string, string>;
|
|
887
|
-
/**
|
|
888
|
-
* A reference to the underlying virtual file system.
|
|
893
|
+
* Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
|
|
889
894
|
*/
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* A reference to the underlying unified file system.
|
|
893
|
-
*/
|
|
894
|
-
[__VFS_UNIFIED__]: IUnionFs;
|
|
895
|
+
dispose: () => Promise<void>;
|
|
895
896
|
}
|
|
896
897
|
|
|
897
898
|
interface MetaInfo {
|
|
@@ -919,14 +920,6 @@ interface MetaInfo {
|
|
|
919
920
|
* A hash that represents the path to the project root directory
|
|
920
921
|
*/
|
|
921
922
|
configHash: string;
|
|
922
|
-
/**
|
|
923
|
-
* A mapping of runtime ids to their corresponding file paths
|
|
924
|
-
*/
|
|
925
|
-
builtinIdMap: Record<string, string>;
|
|
926
|
-
/**
|
|
927
|
-
* A mapping of virtual file paths to their corresponding file contents
|
|
928
|
-
*/
|
|
929
|
-
virtualFiles: Record<string, string | null>;
|
|
930
923
|
}
|
|
931
924
|
interface Resolver extends Jiti {
|
|
932
925
|
plugin: Jiti;
|
|
@@ -1295,6 +1288,13 @@ interface BaseConfig {
|
|
|
1295
1288
|
* This configuration will be used by the documentation generation plugins during the `docs` command.
|
|
1296
1289
|
*/
|
|
1297
1290
|
docs?: Record<string, any>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Configuration for deploying the source code
|
|
1293
|
+
*
|
|
1294
|
+
* @remarks
|
|
1295
|
+
* If set to `false`, the deployment will be disabled.
|
|
1296
|
+
*/
|
|
1297
|
+
deploy?: Record<string, any> | false;
|
|
1298
1298
|
/**
|
|
1299
1299
|
* The path to the tsconfig file to be used by the compiler
|
|
1300
1300
|
*
|
|
@@ -1408,7 +1408,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
1408
1408
|
override?: Partial<TBuildResolvedConfig>;
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
-
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "
|
|
1411
|
+
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1412
1412
|
/**
|
|
1413
1413
|
* The configuration provided while executing Powerlines commands.
|
|
1414
1414
|
*/
|
|
@@ -1419,4 +1419,4 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
|
|
|
1419
1419
|
command: PowerlinesCommand;
|
|
1420
1420
|
};
|
|
1421
1421
|
|
|
1422
|
-
export type { BuildVariant as B,
|
|
1422
|
+
export type { BuildVariant as B, ConfigResult as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkDZZPNO5H_cjs = require('./chunk-DZZPNO5H.cjs');
|
|
4
|
+
require('./chunk-ECFS7DPV.cjs');
|
|
5
|
+
require('./chunk-UNAGYQRB.cjs');
|
|
6
|
+
require('./chunk-F65J5WOX.cjs');
|
|
7
7
|
require('./chunk-USNT2KNT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "enforceVariant", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDZZPNO5H_cjs.enforceVariant; }
|
|
14
14
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './config-
|
|
1
|
+
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './config-BzVVjChJ.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -16,9 +16,7 @@ import '@stryke/types/array';
|
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
18
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
19
|
import 'node:fs';
|
|
21
|
-
import 'unionfs';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Enforces a specific build variant for a plugin.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './config-
|
|
1
|
+
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './config-BzVVjChJ.js';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -16,9 +16,7 @@ import '@stryke/types/array';
|
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
18
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
19
|
import 'node:fs';
|
|
21
|
-
import 'unionfs';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Enforces a specific build variant for a plugin.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { enforceVariant } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { enforceVariant } from './chunk-XIXI67PY.js';
|
|
2
|
+
import './chunk-GV7O3E7P.js';
|
|
3
|
+
import './chunk-QKMG6ZAU.js';
|
|
4
|
+
import './chunk-L277XSSN.js';
|
|
5
5
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkECFS7DPV_cjs = require('./chunk-ECFS7DPV.cjs');
|
|
4
|
+
require('./chunk-UNAGYQRB.cjs');
|
|
5
|
+
require('./chunk-F65J5WOX.cjs');
|
|
6
6
|
require('./chunk-USNT2KNT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "extend", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkECFS7DPV_cjs.extend; }
|
|
13
13
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-BzVVjChJ.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -16,9 +16,7 @@ import '@stryke/types/array';
|
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
18
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
19
|
import 'node:fs';
|
|
21
|
-
import 'unionfs';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Adds additional helper functionality to a plugin via a plugin builder function.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-BzVVjChJ.js';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -16,9 +16,7 @@ import '@stryke/types/array';
|
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
18
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
19
|
import 'node:fs';
|
|
21
|
-
import 'unionfs';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Adds additional helper functionality to a plugin via a plugin builder function.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { extend } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { extend } from './chunk-GV7O3E7P.js';
|
|
2
|
+
import './chunk-QKMG6ZAU.js';
|
|
3
|
+
import './chunk-L277XSSN.js';
|
|
4
4
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5MO4BCOW_cjs = require('./chunk-5MO4BCOW.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "getConfigPath", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk5MO4BCOW_cjs.getConfigPath; }
|
|
11
11
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UnresolvedContext } from './config-
|
|
1
|
+
import { U as UnresolvedContext } from './config-BzVVjChJ.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -16,9 +16,7 @@ import '@stryke/types/array';
|
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
18
|
import '@stryke/json/types';
|
|
19
|
-
import 'memfs';
|
|
20
19
|
import 'node:fs';
|
|
21
|
-
import 'unionfs';
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* Get the configuration file path for a given name.
|