powerlines 0.42.26 → 0.42.28
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-C4dPy8XP.mjs +901 -0
- package/dist/api-C4dPy8XP.mjs.map +1 -0
- package/dist/api-LEq5A1pG.cjs +922 -0
- package/dist/api-LEq5A1pG.cjs.map +1 -0
- package/dist/{api-CvAosB7E.cjs → api-context-BSrRdlnu.cjs} +103 -1070
- package/dist/api-context-BSrRdlnu.cjs.map +1 -0
- package/dist/{api-Dtr_u8iv.mjs → api-context-p1enWkF-.mjs} +102 -1058
- package/dist/api-context-p1enWkF-.mjs.map +1 -0
- package/dist/context/index.cjs +5 -5
- package/dist/context/index.d.cts +3 -3
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +4 -4
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.mjs +1 -1
- package/dist/farm.cjs +2 -2
- package/dist/farm.cjs.map +1 -1
- package/dist/farm.mjs +1 -1
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.cjs.map +1 -1
- package/dist/rolldown.mjs +1 -1
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.cjs.map +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.cjs.map +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.mjs +1 -1
- package/dist/ts-morph-B85ZbV1Q.mjs +102 -0
- package/dist/ts-morph-B85ZbV1Q.mjs.map +1 -0
- package/dist/ts-morph-Cf4wz3E0.cjs +115 -0
- package/dist/ts-morph-Cf4wz3E0.cjs.map +1 -0
- package/dist/{tsconfig-BC3TZxD4.cjs → tsconfig-ChmbpAO7.cjs} +1 -111
- package/dist/tsconfig-ChmbpAO7.cjs.map +1 -0
- package/dist/{tsconfig-CXwGIrfR.mjs → tsconfig-DoV1dUYg.mjs} +2 -100
- package/dist/tsconfig-DoV1dUYg.mjs.map +1 -0
- package/dist/{types-ro7jWCtL.d.mts → types-9O-s0Fpu.d.mts} +1 -1
- package/dist/types-9O-s0Fpu.d.mts.map +1 -0
- package/dist/typescript/index.cjs +4 -3
- package/dist/typescript/index.mjs +2 -1
- package/dist/unloader.cjs +2 -2
- package/dist/unloader.cjs.map +1 -1
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +98 -2
- package/dist/unplugin.cjs.map +1 -0
- package/dist/unplugin.mjs +96 -2
- package/dist/unplugin.mjs.map +1 -0
- package/dist/{virtual-BvouNuwf.cjs → virtual-BNy8T32w.cjs} +1 -1
- package/dist/{virtual-BvouNuwf.cjs.map → virtual-BNy8T32w.cjs.map} +1 -1
- package/dist/{virtual-B0n7dKeA.mjs → virtual-PaZGNIrj.mjs} +1 -1
- package/dist/{virtual-B0n7dKeA.mjs.map → virtual-PaZGNIrj.mjs.map} +1 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +2 -2
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +19 -19
- package/dist/api-CvAosB7E.cjs.map +0 -1
- package/dist/api-Dtr_u8iv.mjs.map +0 -1
- package/dist/tsconfig-BC3TZxD4.cjs.map +0 -1
- package/dist/tsconfig-CXwGIrfR.mjs.map +0 -1
- package/dist/types-ro7jWCtL.d.mts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/context/context.ts","../../src/context/api-context.ts","../../src/context/environment-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA6Ja,iBAAA,yBACa,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,aAC9B,eAAA,CAAA,OAAA,CAAQ,eAAA;EAAA;EAFR;;;;;;;EAAA,OAsFS,IAAA,yBACM,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CAEzC,aAAA,UACA,MAAA,EAAQ,eAAA,CAAA,iBAAA,CAAkB,eAAA,kBACzB,OAAA,CAAQ,eAAA,CAAA,OAAA,CAAQ,eAAA;EADS;;;EAoBrB,YAAA,EAAc,MAAA,kBAAwB,KAAA;EAnB1C;;;EAwBI,eAAA,EAAiB,MAAA,kBAAwB,KAAA;EAAxB;;;EAKjB,aAAA,EAAe,eAAA,CAAA,QAAA;EAoBJ;;;EAfX,cAAA;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/context/context.ts","../../src/context/api-context.ts","../../src/context/environment-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA6Ja,iBAAA,yBACa,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,aAC9B,eAAA,CAAA,OAAA,CAAQ,eAAA;EAAA;EAFR;;;;;;;EAAA,OAsFS,IAAA,yBACM,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CAEzC,aAAA,UACA,MAAA,EAAQ,eAAA,CAAA,iBAAA,CAAkB,eAAA,kBACzB,OAAA,CAAQ,eAAA,CAAA,OAAA,CAAQ,eAAA;EADS;;;EAoBrB,YAAA,EAAc,MAAA,kBAAwB,KAAA;EAnB1C;;;EAwBI,eAAA,EAAiB,MAAA,kBAAwB,KAAA;EAAxB;;;EAKjB,aAAA,EAAe,eAAA,CAAA,QAAA;EAoBJ;;;EAfX,cAAA;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,CAAU,eAAA,CAAA,aAAA,CAAc,eAAA;EFoKL;;;;;;;;EEvJC,KAAA,CAAA,GAAS,OAAA,CAAQ,eAAA,CAAA,kBAAA,CAAmB,eAAA;EAW7C,SAAA,CAAU,MAAA,EAAQ,eAAA,CAAA,MAAA,CAAO,eAAA,CAAA,aAAA,CAAc,eAAA,KAAiB,OAAA;EFqMf;;;EEzJ/C,WAAA,qBAAA,CACL,GAAA,EAAK,IAAA,EACL,OAAA,GAAU,eAAA,CAAA,kBAAA,GACT,eAAA,CAAA,gBAAA,CAAiB,eAAA,CAAA,aAAA,CAAc,eAAA,GAAkB,IAAA;EAAA,UAoD3C,WAAA,CACP,MAAA,EAAQ,eAAA,EACR,eAAA,EAAiB,eAAA,CAAA,eAAA;EF8IF;;;;;;;;EAAA,UE/HE,MAAA,CACjB,OAAA,EAAS,eAAA,CAAA,kBAAA,CAAmB,eAAA,IAC3B,eAAA,CAAA,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;iBC1MR,mBAAA,yBACU,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CAEzC,MAAA,EAAQ,eAAA,CAAA,MAAA,CAAO,eAAA,CAAA,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
|
package/dist/context/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as types_d_exports } from "../types-
|
|
1
|
+
import { t as types_d_exports } from "../types-9O-s0Fpu.mjs";
|
|
2
2
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
3
3
|
import { FlatCache } from "flat-cache";
|
|
4
4
|
import { ParseResult } from "oxc-parser";
|
|
@@ -48,9 +48,9 @@ declare class PowerlinesContext<TResolvedConfig extends types_d_exports.Resolved
|
|
|
48
48
|
*/
|
|
49
49
|
resolver: types_d_exports.Resolver;
|
|
50
50
|
/**
|
|
51
|
-
* The resolved
|
|
51
|
+
* The resolved tsconfig file paths for the project
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
resolvePatterns: RegExp[];
|
|
54
54
|
/**
|
|
55
55
|
* Internal context fields and methods
|
|
56
56
|
*
|
|
@@ -535,7 +535,7 @@ declare class PowerlinesEnvironmentContext<TResolvedConfig extends types_d_expor
|
|
|
535
535
|
* The resolved configuration options
|
|
536
536
|
*/
|
|
537
537
|
get config(): TResolvedConfig;
|
|
538
|
-
get hooks(): types_d_exports.HooksList<types_d_exports.PluginContext<TResolvedConfig
|
|
538
|
+
get hooks(): Record<string, types_d_exports.HooksList<types_d_exports.PluginContext<TResolvedConfig>>>;
|
|
539
539
|
/**
|
|
540
540
|
* Creates a clone of the current context with the same configuration and workspace settings. This can be useful for running multiple builds in parallel or for creating isolated contexts for different parts of the build process.
|
|
541
541
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/context/context.ts","../../src/context/api-context.ts","../../src/context/environment-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA6Ja,iBAAA,yBACa,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,aAC9B,eAAA,CAAA,OAAA,CAAQ,eAAA;EAAA;EAFR;;;;;;;EAAA,OAsFS,IAAA,yBACM,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CAEzC,aAAA,UACA,MAAA,EAAQ,eAAA,CAAA,iBAAA,CAAkB,eAAA,kBACzB,OAAA,CAAQ,eAAA,CAAA,OAAA,CAAQ,eAAA;EADS;;;EAoBrB,YAAA,EAAc,MAAA,kBAAwB,KAAA;EAnB1C;;;EAwBI,eAAA,EAAiB,MAAA,kBAAwB,KAAA;EAAxB;;;EAKjB,aAAA,EAAe,eAAA,CAAA,QAAA;EAoBJ;;;EAfX,cAAA;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/context/context.ts","../../src/context/api-context.ts","../../src/context/environment-context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AA,CAAA,MAAA,CAAO,eAAA,CAAA,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
|
package/dist/context/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as PowerlinesContext, n as PowerlinesEnvironmentContext, r as createPluginContext, t as PowerlinesAPIContext } from "../api-context-p1enWkF-.mjs";
|
|
2
2
|
|
|
3
3
|
export { PowerlinesAPIContext, PowerlinesContext, PowerlinesEnvironmentContext, createPluginContext };
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
let _powerlines_plugin_esbuild_helpers_resolve_options = require("@powerlines/plugin-esbuild/helpers/resolve-options");
|
|
6
6
|
let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
@@ -24,7 +24,7 @@ _powerlines_plugin_esbuild = require_chunk.__toESM(_powerlines_plugin_esbuild);
|
|
|
24
24
|
*
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
const unplugin$1 = (0, unplugin.createEsbuildPlugin)(
|
|
27
|
+
const unplugin$1 = (0, unplugin.createEsbuildPlugin)(require_unplugin.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
28
28
|
return {
|
|
29
29
|
...plugin,
|
|
30
30
|
esbuild: {
|
package/dist/esbuild.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/esbuild.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginUserConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<Partial<EsbuildPluginUserConfig>>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {} as BuildOptions;\n\n const result = resolveOptions(api.context);\n for (const key in result) {\n if (\n isUndefined(options[key as keyof BuildOptions]) &&\n !isUndefined(result[key as keyof BuildOptions])\n ) {\n options[key as keyof BuildOptions] = result[\n key as keyof BuildOptions\n ] as any;\n }\n }\n },\n setup: async (build: PluginBuild) => {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"esbuild:setup\", { environment }, build);\n }\n }\n };\n })\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAaA,+CACXC,
|
|
1
|
+
{"version":3,"file":"esbuild.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/esbuild.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginUserConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<Partial<EsbuildPluginUserConfig>>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {} as BuildOptions;\n\n const result = resolveOptions(api.context);\n for (const key in result) {\n if (\n isUndefined(options[key as keyof BuildOptions]) &&\n !isUndefined(result[key as keyof BuildOptions])\n ) {\n options[key as keyof BuildOptions] = result[\n key as keyof BuildOptions\n ] as any;\n }\n }\n },\n setup: async (build: PluginBuild) => {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"esbuild:setup\", { environment }, build);\n }\n }\n };\n })\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAaA,+CACXC,uCAAsB,YAAY,KAAK,WAAW;AAChD,QAAO;EACL,GAAG;EACH,SAAS;GACP,SAAQ,YAAW;AACjB,gBAAY,EAAE;IAEd,MAAM,gFAAwB,IAAI,QAAQ;AAC1C,SAAK,MAAM,OAAO,OAChB,uDACc,QAAQ,KAA2B,IAC/C,mDAAa,OAAO,KAA2B,CAE/C,SAAQ,OAA6B,OACnC;;GAKR,OAAO,OAAO,UAAuB;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,iBAAiB,EAAE,aAAa,EAAE,MAAM;;GAE/D;EACF;EACD,CACH"}
|
package/dist/esbuild.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnpluginFactory } from "./unplugin.mjs";
|
|
2
2
|
import { createEsbuildPlugin } from "unplugin";
|
|
3
3
|
import { resolveOptions } from "@powerlines/plugin-esbuild/helpers/resolve-options";
|
|
4
4
|
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
package/dist/farm.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
|
|
6
6
|
//#region src/farm.ts
|
|
@@ -21,7 +21,7 @@ let unplugin = require("unplugin");
|
|
|
21
21
|
*
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
const farm = (0, unplugin.createFarmPlugin)(
|
|
24
|
+
const farm = (0, unplugin.createFarmPlugin)(require_unplugin.createUnpluginFactory("farm"));
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
exports.default = farm;
|
package/dist/farm.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.cjs","names":["createUnpluginFactory"],"sources":["../src/farm.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createFarmPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\n/**\n * A Farm plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://farmjs.dev/plugins/writing-plugins\n *\n * @example\n * ```ts\n * // farm.config.ts\n * import powerlines from \"powerlines/farm\";\n * import { defineConfig } from \"@farmfe/core\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const farm = createFarmPlugin(createUnpluginFactory(\"farm\"));\n\nexport default farm;\nexport { farm as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAa,sCAAwBA,
|
|
1
|
+
{"version":3,"file":"farm.cjs","names":["createUnpluginFactory"],"sources":["../src/farm.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createFarmPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\n/**\n * A Farm plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://farmjs.dev/plugins/writing-plugins\n *\n * @example\n * ```ts\n * // farm.config.ts\n * import powerlines from \"powerlines/farm\";\n * import { defineConfig } from \"@farmfe/core\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const farm = createFarmPlugin(createUnpluginFactory(\"farm\"));\n\nexport default farm;\nexport { farm as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAa,sCAAwBA,uCAAsB,OAAO,CAAC"}
|
package/dist/farm.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-LEq5A1pG.cjs');
|
|
4
|
+
const require_api_context = require('./api-context-BSrRdlnu.cjs');
|
|
4
5
|
let _stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
|
|
5
6
|
|
|
6
7
|
//#region src/index.ts
|
|
@@ -26,13 +27,13 @@ async function createPowerlines(options = {}) {
|
|
|
26
27
|
var src_default = require_api.PowerlinesAPI;
|
|
27
28
|
|
|
28
29
|
//#endregion
|
|
29
|
-
exports.FileId =
|
|
30
|
-
exports.FileMetadata =
|
|
31
|
-
exports.FileMetadata_KeyValuePair =
|
|
32
|
-
exports.FileStorage =
|
|
33
|
-
exports.FileSystem =
|
|
30
|
+
exports.FileId = require_api_context.FileId;
|
|
31
|
+
exports.FileMetadata = require_api_context.FileMetadata;
|
|
32
|
+
exports.FileMetadata_KeyValuePair = require_api_context.FileMetadata_KeyValuePair;
|
|
33
|
+
exports.FileStorage = require_api_context.FileStorage;
|
|
34
|
+
exports.FileSystem = require_api_context.FileSystem;
|
|
34
35
|
exports.PowerlinesAPI = require_api.PowerlinesAPI;
|
|
35
|
-
exports._capnpFileId =
|
|
36
|
+
exports._capnpFileId = require_api_context._capnpFileId;
|
|
36
37
|
exports.createPowerlines = createPowerlines;
|
|
37
38
|
exports.default = src_default;
|
|
38
39
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["PowerlinesAPI"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { PowerlinesAPI } from \"./api\";\nimport { UserConfig } from \"./types\";\n\nexport * from \"../schemas/fs\";\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesAPI} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesAPI} instance.\n */\nexport async function createPowerlines(\n options: Partial<UserConfig> = {}\n): Promise<PowerlinesAPI> {\n options.root ??= process.cwd();\n const workspaceRoot = getWorkspaceRoot(options.root);\n\n return PowerlinesAPI.from(\n workspaceRoot,\n options as Parameters<typeof PowerlinesAPI.from>[1]\n );\n}\n\nexport { PowerlinesAPI };\nexport default PowerlinesAPI;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["PowerlinesAPI"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { PowerlinesAPI } from \"./api\";\nimport { UserConfig } from \"./types\";\n\nexport * from \"../schemas/fs\";\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesAPI} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesAPI} instance.\n */\nexport async function createPowerlines(\n options: Partial<UserConfig> = {}\n): Promise<PowerlinesAPI> {\n options.root ??= process.cwd();\n const workspaceRoot = getWorkspaceRoot(options.root);\n\n return PowerlinesAPI.from(\n workspaceRoot,\n options as Parameters<typeof PowerlinesAPI.from>[1]\n );\n}\n\nexport { PowerlinesAPI };\nexport default PowerlinesAPI;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwCA,eAAsB,iBACpB,UAA+B,EAAE,EACT;AACxB,SAAQ,SAAS,QAAQ,KAAK;CAC9B,MAAM,oEAAiC,QAAQ,KAAK;AAEpD,QAAOA,0BAAc,KACnB,eACA,QACD;;AAIH,kBAAeA"}
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/api.ts","../schemas/fs.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/api.ts","../schemas/fs.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;AA0GA;;;cAAa,aAAA,yBACa,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,aAE9B,eAAA,CAAA,GAAA,CAAI,eAAA,GAAkB,eAAA;EAAA;EAAlB;;;EAAA,IAUJ,OAAA,CAAA,GAAW,eAAA,CAAA,UAAA,CAAW,eAAA;EAqBU;;;;;EAAA,QAZpC,WAAA,CAAA;EA8DqB;;;;;;;EAAA,OAnDR,IAAA,yBACM,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CAEzC,aAAA,UACA,MAAA,EAAQ,eAAA,CAAA,iBAAA,CAAkB,eAAA,kBACzB,OAAA,CAAQ,aAAA,CAAc,eAAA;EAiMnB;;;;;;;;EApJO,KAAA,CACX,YAAA,GAAc,WAAA,CAAY,eAAA,CAAA,iBAAA,eAEzB,OAAA;EAsJe;;;;;;;;EATL,OAAA,CACX,YAAA,GACI,WAAA,CAAY,eAAA,CAAA,mBAAA,eACZ,WAAA,CAAY,eAAA,CAAA,iBAAA,eACZ,WAAA,CAAY,eAAA,CAAA,eAAA,eACZ,WAAA,CAAY,eAAA,CAAA,iBAAA,eACZ,WAAA,CAAY,eAAA,CAAA,iBAAA,eACZ,WAAA,CAAY,eAAA,CAAA,gBAAA,eACZ,WAAA,CAAY,eAAA,CAAA,gBAAA,eACZ,WAAA,CAAY,eAAA,CAAA,kBAAA,eAAuD,OAAA;EAsNnE;;;;;;;;;EArFO,GAAA,CAAI,YAAA,EAAc,WAAA,CAAY,eAAA,CA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AGA,aAAA,CAAc,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAGlC,QAAA,CAAS,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGX,QAAA,CAAA;AAAA;AAAA;;;;;;;ADtGlB;;iBElEsB,gBAAA,CACpB,OAAA,GAAS,OAAA,CAAQ,eAAA,CAAA,UAAA,IAChB,OAAA,CAAQ,aAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as types_d_exports } from "./types-
|
|
1
|
+
import { t as types_d_exports } from "./types-9O-s0Fpu.mjs";
|
|
2
2
|
import * as $ from "@stryke/capnp";
|
|
3
3
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
4
4
|
import { PartialKeys } from "@stryke/types/base";
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/api.ts","../schemas/fs.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/api.ts","../schemas/fs.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;;AA0GA;;cAAa,aAAA,yBACa,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,aAE9B,eAAA,CAAA,GAAA,CAAI,eAAA,GAAkB,eAAA;EAAA;EAFQ;;;EAAA,IAY9B,OAAA,CAAA,GAAW,eAAA,CAAA,UAAA,CAAW,eAAA;EAqBP;;;;;EAAA,QAZnB,WAAA,CAAA;EAgBJ;;;;;;;EAAA,OALiB,IAAA,yBACM,eAAA,CAAA,cAAA,GAAiB,eAAA,CAAA,cAAA,CAAA,CAEzC,aAAA,UACA,MAAA,EAAQ,eAAA,CAAA,iBAAA,CAAkB,eAAA,kBACzB,OAAA,CAAQ,aAAA,CAAc,eAAA;EAiMP;;;;;;;;EApJL,KAAA,CACX,YAAA,GAAc,WAAA,CA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,OAAA,CAAA,GAAW,CAAA,CAAE,IAAA,CAAK,WAAA;EAGtB,WAAA,CAAA;EAGA,YAAA,CAAa,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,WAAA;EAAA,IAGjC,OAAA,CAAQ,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,WAAA;EAG1B,cAAA,CAAe,KAAA,EAAO,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGtC,eAAA,CAAA,GAAmB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAG/B,QAAA,CAAA,GAAY,CAAA,CAAE,IAAA,CAAK,YAAA;EAGvB,YAAA,CAAA;EAGA,aAAA,CAAc,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAGlC,QAAA,CAAS,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGX,QAAA,CAAA;AAAA;AAAA;;;;;;;;ADtGlB;iBElEsB,gBAAA,CACpB,OAAA,GAAS,OAAA,CAAQ,eAAA,CAAA,UAAA,IAChB,OAAA,CAAQ,aAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as PowerlinesAPI } from "./api-C4dPy8XP.mjs";
|
|
2
|
+
import { a as FileId, c as FileStorage, l as FileSystem, o as FileMetadata, s as FileMetadata_KeyValuePair, u as _capnpFileId } from "./api-context-p1enWkF-.mjs";
|
|
2
3
|
import { getWorkspaceRoot } from "@stryke/fs/get-workspace-root";
|
|
3
4
|
|
|
4
5
|
//#region src/index.ts
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { PowerlinesAPI } from \"./api\";\nimport { UserConfig } from \"./types\";\n\nexport * from \"../schemas/fs\";\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesAPI} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesAPI} instance.\n */\nexport async function createPowerlines(\n options: Partial<UserConfig> = {}\n): Promise<PowerlinesAPI> {\n options.root ??= process.cwd();\n const workspaceRoot = getWorkspaceRoot(options.root);\n\n return PowerlinesAPI.from(\n workspaceRoot,\n options as Parameters<typeof PowerlinesAPI.from>[1]\n );\n}\n\nexport { PowerlinesAPI };\nexport default PowerlinesAPI;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The powerlines library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A build toolkit and runtime used by Storm Software in TypeScript applications\n *\n * @packageDocumentation\n */\n\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { PowerlinesAPI } from \"./api\";\nimport { UserConfig } from \"./types\";\n\nexport * from \"../schemas/fs\";\nexport type * from \"./types\";\n\n/**\n * Creates a new {@link PowerlinesAPI} instance.\n *\n * @param options - The user configuration options.\n * @returns A promise that resolves to a {@link PowerlinesAPI} instance.\n */\nexport async function createPowerlines(\n options: Partial<UserConfig> = {}\n): Promise<PowerlinesAPI> {\n options.root ??= process.cwd();\n const workspaceRoot = getWorkspaceRoot(options.root);\n\n return PowerlinesAPI.from(\n workspaceRoot,\n options as Parameters<typeof PowerlinesAPI.from>[1]\n );\n}\n\nexport { PowerlinesAPI };\nexport default PowerlinesAPI;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAwCA,eAAsB,iBACpB,UAA+B,EAAE,EACT;AACxB,SAAQ,SAAS,QAAQ,KAAK;CAC9B,MAAM,gBAAgB,iBAAiB,QAAQ,KAAK;AAEpD,QAAO,cAAc,KACnB,eACA,QACD;;AAIH,kBAAe"}
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-LEq5A1pG.cjs');
|
|
4
4
|
const require_vite = require('./vite.cjs');
|
|
5
5
|
const require_webpack = require('./webpack.cjs');
|
|
6
6
|
let _nuxt_kit = require("@nuxt/kit");
|
package/dist/nuxt.d.mts
CHANGED
package/dist/nuxt.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as name, r as version } from "./api-C4dPy8XP.mjs";
|
|
2
2
|
import unplugin from "./vite.mjs";
|
|
3
3
|
import unplugin$1 from "./webpack.mjs";
|
|
4
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
package/dist/rolldown.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let defu = require("defu");
|
|
5
5
|
let unplugin = require("unplugin");
|
|
6
6
|
let _powerlines_plugin_rolldown_helpers_resolve_options = require("@powerlines/plugin-rolldown/helpers/resolve-options");
|
|
@@ -23,7 +23,7 @@ _powerlines_plugin_rolldown = require_chunk.__toESM(_powerlines_plugin_rolldown)
|
|
|
23
23
|
* })
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
const unplugin$1 = (0, unplugin.createRolldownPlugin)(
|
|
26
|
+
const unplugin$1 = (0, unplugin.createRolldownPlugin)(require_unplugin.createUnpluginFactory("rolldown", (api, plugin) => {
|
|
27
27
|
return {
|
|
28
28
|
...plugin,
|
|
29
29
|
rolldown: { async options(options) {
|
package/dist/rolldown.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolldown.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/rolldown.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport {\n RolldownPluginContext,\n RolldownPluginUserConfig\n} from \"@powerlines/plugin-rolldown/types/plugin\";\nimport { defu } from \"defu\";\nimport type { InputOptions } from \"rolldown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rolldown\n} from \"@powerlines/plugin-rolldown\";\n\n/**\n * A Rolldown plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRolldownPlugin<Partial<RolldownPluginUserConfig>>(\n createUnpluginFactory<RolldownPluginContext>(\"rolldown\", (api, plugin) => {\n return {\n ...plugin,\n rolldown: {\n async options(options: InputOptions) {\n const merged = defu(await api.context.getEnvironment(), this);\n\n return defu(\n resolveOptions(merged),\n options,\n api.callHook(\n \"rolldown:options\",\n { environment: merged },\n options\n ) ?? {}\n );\n }\n }\n };\n })\n);\n\nexport { unplugin as \"module.exports\" };\n\nexport default unplugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAaA,gDACXC,
|
|
1
|
+
{"version":3,"file":"rolldown.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/rolldown.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport {\n RolldownPluginContext,\n RolldownPluginUserConfig\n} from \"@powerlines/plugin-rolldown/types/plugin\";\nimport { defu } from \"defu\";\nimport type { InputOptions } from \"rolldown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rolldown\n} from \"@powerlines/plugin-rolldown\";\n\n/**\n * A Rolldown plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRolldownPlugin<Partial<RolldownPluginUserConfig>>(\n createUnpluginFactory<RolldownPluginContext>(\"rolldown\", (api, plugin) => {\n return {\n ...plugin,\n rolldown: {\n async options(options: InputOptions) {\n const merged = defu(await api.context.getEnvironment(), this);\n\n return defu(\n resolveOptions(merged),\n options,\n api.callHook(\n \"rolldown:options\",\n { environment: merged },\n options\n ) ?? {}\n );\n }\n }\n };\n })\n);\n\nexport { unplugin as \"module.exports\" };\n\nexport default unplugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAaA,gDACXC,uCAA6C,aAAa,KAAK,WAAW;AACxE,QAAO;EACL,GAAG;EACH,UAAU,EACR,MAAM,QAAQ,SAAuB;GACnC,MAAM,wBAAc,MAAM,IAAI,QAAQ,gBAAgB,EAAE,KAAK;AAE7D,iGACiB,OAAO,EACtB,SACA,IAAI,SACF,oBACA,EAAE,aAAa,QAAQ,EACvB,QACD,IAAI,EAAE,CACR;KAEJ;EACF;EACD,CACH"}
|
package/dist/rolldown.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnpluginFactory } from "./unplugin.mjs";
|
|
2
2
|
import { defu } from "defu";
|
|
3
3
|
import { createRolldownPlugin } from "unplugin";
|
|
4
4
|
import { resolveOptions } from "@powerlines/plugin-rolldown/helpers/resolve-options";
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
let _powerlines_plugin_rollup = require("@powerlines/plugin-rollup");
|
|
6
6
|
_powerlines_plugin_rollup = require_chunk.__toESM(_powerlines_plugin_rollup);
|
|
@@ -22,7 +22,7 @@ _powerlines_plugin_rollup = require_chunk.__toESM(_powerlines_plugin_rollup);
|
|
|
22
22
|
* })
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
const unplugin$1 = (0, unplugin.createRollupPlugin)(
|
|
25
|
+
const unplugin$1 = (0, unplugin.createRollupPlugin)(require_unplugin.createUnpluginFactory("rollup"));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
28
|
exports.default = unplugin$1;
|
package/dist/rollup.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/rollup.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { RollupPluginUserConfig } from \"@powerlines/plugin-rollup/types/plugin\";\nimport { createRollupPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rollup\n} from \"@powerlines/plugin-rollup\";\n\n/**\n * A Rollup plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n *\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRollupPlugin<Partial<RollupPluginUserConfig>>(\n createUnpluginFactory(\"rollup\")\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAaA,8CACXC,
|
|
1
|
+
{"version":3,"file":"rollup.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/rollup.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { RollupPluginUserConfig } from \"@powerlines/plugin-rollup/types/plugin\";\nimport { createRollupPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rollup\n} from \"@powerlines/plugin-rollup\";\n\n/**\n * A Rollup plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n *\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRollupPlugin<Partial<RollupPluginUserConfig>>(\n createUnpluginFactory(\"rollup\")\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAaA,8CACXC,uCAAsB,SAAS,CAChC"}
|
package/dist/rollup.mjs
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
let _powerlines_plugin_rspack = require("@powerlines/plugin-rspack");
|
|
6
6
|
_powerlines_plugin_rspack = require_chunk.__toESM(_powerlines_plugin_rspack);
|
|
@@ -22,7 +22,7 @@ _powerlines_plugin_rspack = require_chunk.__toESM(_powerlines_plugin_rspack);
|
|
|
22
22
|
* }
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
const unplugin$1 = (0, unplugin.createRspackPlugin)(
|
|
25
|
+
const unplugin$1 = (0, unplugin.createRspackPlugin)(require_unplugin.createUnpluginFactory("rspack"));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
28
|
exports.default = unplugin$1;
|
package/dist/rspack.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rspack.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/rspack.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { RspackPluginUserConfig } from \"@powerlines/plugin-rspack/types/plugin\";\nimport { createRspackPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rspack\n} from \"@powerlines/plugin-rspack\";\n\n/**\n * An Rspack plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rspack.dev/concepts/plugins\n *\n * @example\n * ```ts\n * // rspack.config.ts\n *\n * import powerlines from \"powerlines/rspack\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * }\n * ```\n */\nexport const unplugin = createRspackPlugin<Partial<RspackPluginUserConfig>>(\n createUnpluginFactory(\"rspack\")\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAaA,8CACXC,
|
|
1
|
+
{"version":3,"file":"rspack.cjs","names":["unplugin","createUnpluginFactory"],"sources":["../src/rspack.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { RspackPluginUserConfig } from \"@powerlines/plugin-rspack/types/plugin\";\nimport { createRspackPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rspack\n} from \"@powerlines/plugin-rspack\";\n\n/**\n * An Rspack plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rspack.dev/concepts/plugins\n *\n * @example\n * ```ts\n * // rspack.config.ts\n *\n * import powerlines from \"powerlines/rspack\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * }\n * ```\n */\nexport const unplugin = createRspackPlugin<Partial<RspackPluginUserConfig>>(\n createUnpluginFactory(\"rspack\")\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAaA,8CACXC,uCAAsB,SAAS,CAChC"}
|
package/dist/rspack.mjs
CHANGED
package/dist/storage/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_virtual = require('../virtual-
|
|
2
|
+
const require_virtual = require('../virtual-BNy8T32w.cjs');
|
|
3
3
|
|
|
4
4
|
exports.BaseStorageAdapter = require_virtual.BaseStorageAdapter;
|
|
5
5
|
exports.FileSystemStorageAdapter = require_virtual.FileSystemStorageAdapter;
|
package/dist/storage/index.d.mts
CHANGED
package/dist/storage/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as isFileError, i as ignoreNotfound, n as FileSystemStorageAdapter, o as BaseStorageAdapter, r as ignoreExists, t as VirtualStorageAdapter } from "../virtual-
|
|
1
|
+
import { a as isFileError, i as ignoreNotfound, n as FileSystemStorageAdapter, o as BaseStorageAdapter, r as ignoreExists, t as VirtualStorageAdapter } from "../virtual-PaZGNIrj.mjs";
|
|
2
2
|
|
|
3
3
|
export { BaseStorageAdapter, FileSystemStorageAdapter, VirtualStorageAdapter, ignoreExists, ignoreNotfound, isFileError };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import defu$1 from "defu";
|
|
2
|
+
import { InMemoryFileSystemHost, Project } from "ts-morph";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/ts-morph.ts
|
|
5
|
+
var VirtualFileSystemHost = class extends InMemoryFileSystemHost {
|
|
6
|
+
#context;
|
|
7
|
+
constructor(context) {
|
|
8
|
+
super();
|
|
9
|
+
this.#context = context;
|
|
10
|
+
}
|
|
11
|
+
deleteSync(path) {
|
|
12
|
+
this.#context.fs.removeSync(path);
|
|
13
|
+
}
|
|
14
|
+
readDirSync(dirPath) {
|
|
15
|
+
if (!this.#context.fs.isDirectorySync(dirPath)) return [];
|
|
16
|
+
return this.#context.fs.listSync(dirPath).reduce((ret, entry) => {
|
|
17
|
+
const fullPath = this.#context.fs.resolveSync(entry);
|
|
18
|
+
if (fullPath) ret.push({
|
|
19
|
+
name: entry,
|
|
20
|
+
isDirectory: this.#context.fs.isDirectorySync(fullPath),
|
|
21
|
+
isFile: this.#context.fs.isFileSync(fullPath),
|
|
22
|
+
isSymlink: false
|
|
23
|
+
});
|
|
24
|
+
return ret;
|
|
25
|
+
}, []);
|
|
26
|
+
}
|
|
27
|
+
async readFile(filePath) {
|
|
28
|
+
if (!this.#context.fs.isFileSync(filePath)) return "";
|
|
29
|
+
return await this.#context.fs.read(filePath);
|
|
30
|
+
}
|
|
31
|
+
readFileSync(filePath) {
|
|
32
|
+
if (!this.#context.fs.isFileSync(filePath)) return "";
|
|
33
|
+
return this.#context.fs.readSync(filePath);
|
|
34
|
+
}
|
|
35
|
+
async writeFile(filePath, fileText) {
|
|
36
|
+
return this.#context.fs.write(filePath, fileText);
|
|
37
|
+
}
|
|
38
|
+
writeFileSync(filePath, fileText) {
|
|
39
|
+
this.#context.fs.writeSync(filePath, fileText);
|
|
40
|
+
}
|
|
41
|
+
async mkdir(dirPath) {
|
|
42
|
+
await this.#context.fs.mkdir(dirPath);
|
|
43
|
+
}
|
|
44
|
+
mkdirSync(dirPath) {
|
|
45
|
+
this.#context.fs.mkdirSync(dirPath);
|
|
46
|
+
}
|
|
47
|
+
async move(srcPath, destPath) {
|
|
48
|
+
await this.#context.fs.move(srcPath, destPath);
|
|
49
|
+
}
|
|
50
|
+
moveSync(srcPath, destPath) {
|
|
51
|
+
this.#context.fs.moveSync(srcPath, destPath);
|
|
52
|
+
}
|
|
53
|
+
async copy(srcPath, destPath) {
|
|
54
|
+
await this.#context.fs.copy(srcPath, destPath);
|
|
55
|
+
}
|
|
56
|
+
copySync(srcPath, destPath) {
|
|
57
|
+
this.#context.fs.copySync(srcPath, destPath);
|
|
58
|
+
}
|
|
59
|
+
async fileExists(filePath) {
|
|
60
|
+
return this.#context.fs.isFile(filePath);
|
|
61
|
+
}
|
|
62
|
+
fileExistsSync(filePath) {
|
|
63
|
+
return this.#context.fs.isFileSync(filePath);
|
|
64
|
+
}
|
|
65
|
+
async directoryExists(dirPath) {
|
|
66
|
+
return this.#context.fs.isDirectory(dirPath);
|
|
67
|
+
}
|
|
68
|
+
directoryExistsSync(dirPath) {
|
|
69
|
+
return this.#context.fs.isDirectorySync(dirPath);
|
|
70
|
+
}
|
|
71
|
+
realpathSync(path) {
|
|
72
|
+
return this.#context.fs.resolveSync(path) || path;
|
|
73
|
+
}
|
|
74
|
+
getCurrentDirectory() {
|
|
75
|
+
return this.#context.workspaceConfig.workspaceRoot;
|
|
76
|
+
}
|
|
77
|
+
async glob(patterns) {
|
|
78
|
+
return this.#context.fs.glob(patterns);
|
|
79
|
+
}
|
|
80
|
+
globSync(patterns) {
|
|
81
|
+
return this.#context.fs.globSync(patterns);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Create a ts-morph {@link Project} instance used for type reflection and module manipulation during processing
|
|
86
|
+
*
|
|
87
|
+
* @param context - The Powerlines context
|
|
88
|
+
* @returns A ts-morph {@link Project} instance
|
|
89
|
+
*/
|
|
90
|
+
function createProgram(context, override) {
|
|
91
|
+
context.debug(`Creating ts-morph Project instance with configuration from: ${context.tsconfig.tsconfigFilePath}.`);
|
|
92
|
+
return new Project(defu$1(override ?? {}, {
|
|
93
|
+
skipAddingFilesFromTsConfig: false,
|
|
94
|
+
tsConfigFilePath: context.tsconfig.tsconfigFilePath,
|
|
95
|
+
fileSystem: new VirtualFileSystemHost(context),
|
|
96
|
+
compilerOptions: defu$1(context.tsconfig.options ?? {}, { lib: ["lib.esnext.full.d.ts"] })
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
//#endregion
|
|
101
|
+
export { createProgram as n, VirtualFileSystemHost as t };
|
|
102
|
+
//# sourceMappingURL=ts-morph-B85ZbV1Q.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts-morph-B85ZbV1Q.mjs","names":["#context","defu"],"sources":["../src/typescript/ts-morph.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Context } from \"@powerlines/core\";\nimport defu from \"defu\";\nimport {\n CompilerOptions,\n FileSystemHost,\n InMemoryFileSystemHost,\n Project,\n ProjectOptions,\n RuntimeDirEntry\n} from \"ts-morph\";\n\nexport class VirtualFileSystemHost\n extends InMemoryFileSystemHost\n implements FileSystemHost\n{\n #context: Context;\n\n public constructor(context: Context) {\n super();\n\n this.#context = context;\n }\n\n public override deleteSync(path: string) {\n this.#context.fs.removeSync(path);\n }\n\n public override readDirSync(dirPath: string): RuntimeDirEntry[] {\n if (!this.#context.fs.isDirectorySync(dirPath)) {\n return [];\n }\n\n return this.#context.fs.listSync(dirPath).reduce((ret, entry) => {\n const fullPath = this.#context.fs.resolveSync(entry);\n if (fullPath) {\n ret.push({\n name: entry,\n isDirectory: this.#context.fs.isDirectorySync(fullPath),\n isFile: this.#context.fs.isFileSync(fullPath),\n isSymlink: false\n });\n }\n\n return ret;\n }, [] as RuntimeDirEntry[]);\n }\n\n public override async readFile(filePath: string) {\n if (!this.#context.fs.isFileSync(filePath)) {\n return \"\";\n }\n\n return (await this.#context.fs.read(filePath))!;\n }\n\n public override readFileSync(filePath: string) {\n if (!this.#context.fs.isFileSync(filePath)) {\n return \"\";\n }\n\n return this.#context.fs.readSync(filePath)!;\n }\n\n public override async writeFile(filePath: string, fileText: string) {\n return this.#context.fs.write(filePath, fileText);\n }\n\n public override writeFileSync(filePath: string, fileText: string) {\n this.#context.fs.writeSync(filePath, fileText);\n }\n\n public override async mkdir(dirPath: string) {\n await this.#context.fs.mkdir(dirPath);\n }\n\n public override mkdirSync(dirPath: string) {\n this.#context.fs.mkdirSync(dirPath);\n }\n\n public override async move(srcPath: string, destPath: string) {\n await this.#context.fs.move(srcPath, destPath);\n }\n\n public override moveSync(srcPath: string, destPath: string) {\n this.#context.fs.moveSync(srcPath, destPath);\n }\n\n public override async copy(srcPath: string, destPath: string) {\n await this.#context.fs.copy(srcPath, destPath);\n }\n\n public override copySync(srcPath: string, destPath: string) {\n this.#context.fs.copySync(srcPath, destPath);\n }\n\n public override async fileExists(filePath: string) {\n return this.#context.fs.isFile(filePath);\n }\n\n public override fileExistsSync(filePath: string) {\n return this.#context.fs.isFileSync(filePath);\n }\n\n public override async directoryExists(dirPath: string) {\n return this.#context.fs.isDirectory(dirPath);\n }\n\n public override directoryExistsSync(dirPath: string): boolean {\n return this.#context.fs.isDirectorySync(dirPath);\n }\n\n public override realpathSync(path: string) {\n return this.#context.fs.resolveSync(path) || path;\n }\n\n public override getCurrentDirectory() {\n return this.#context.workspaceConfig.workspaceRoot;\n }\n\n public override async glob(\n patterns: ReadonlyArray<string>\n ): Promise<string[]> {\n return this.#context.fs.glob(patterns as string[]);\n }\n\n public override globSync(patterns: ReadonlyArray<string>): string[] {\n return this.#context.fs.globSync(patterns as string[]);\n }\n}\n\n/**\n * Create a ts-morph {@link Project} instance used for type reflection and module manipulation during processing\n *\n * @param context - The Powerlines context\n * @returns A ts-morph {@link Project} instance\n */\nexport function createProgram(\n context: Context,\n override: Partial<ProjectOptions>\n): Project {\n context.debug(\n `Creating ts-morph Project instance with configuration from: ${\n context.tsconfig.tsconfigFilePath\n }.`\n );\n\n const project = new Project(\n defu(override ?? {}, {\n skipAddingFilesFromTsConfig: false,\n tsConfigFilePath: context.tsconfig.tsconfigFilePath,\n fileSystem: new VirtualFileSystemHost(context),\n compilerOptions: defu(context.tsconfig.options ?? {}, {\n lib: [\"lib.esnext.full.d.ts\"]\n }) as CompilerOptions\n })\n );\n\n return project;\n}\n"],"mappings":";;;;AA6BA,IAAa,wBAAb,cACU,uBAEV;CACE;CAEA,AAAO,YAAY,SAAkB;AACnC,SAAO;AAEP,QAAKA,UAAW;;CAGlB,AAAgB,WAAW,MAAc;AACvC,QAAKA,QAAS,GAAG,WAAW,KAAK;;CAGnC,AAAgB,YAAY,SAAoC;AAC9D,MAAI,CAAC,MAAKA,QAAS,GAAG,gBAAgB,QAAQ,CAC5C,QAAO,EAAE;AAGX,SAAO,MAAKA,QAAS,GAAG,SAAS,QAAQ,CAAC,QAAQ,KAAK,UAAU;GAC/D,MAAM,WAAW,MAAKA,QAAS,GAAG,YAAY,MAAM;AACpD,OAAI,SACF,KAAI,KAAK;IACP,MAAM;IACN,aAAa,MAAKA,QAAS,GAAG,gBAAgB,SAAS;IACvD,QAAQ,MAAKA,QAAS,GAAG,WAAW,SAAS;IAC7C,WAAW;IACZ,CAAC;AAGJ,UAAO;KACN,EAAE,CAAsB;;CAG7B,MAAsB,SAAS,UAAkB;AAC/C,MAAI,CAAC,MAAKA,QAAS,GAAG,WAAW,SAAS,CACxC,QAAO;AAGT,SAAQ,MAAM,MAAKA,QAAS,GAAG,KAAK,SAAS;;CAG/C,AAAgB,aAAa,UAAkB;AAC7C,MAAI,CAAC,MAAKA,QAAS,GAAG,WAAW,SAAS,CACxC,QAAO;AAGT,SAAO,MAAKA,QAAS,GAAG,SAAS,SAAS;;C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