@powerlines/plugin-unbuild 0.5.311 → 0.5.312
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/helpers/index.d.cts +1 -1
- package/dist/helpers/index.d.mts +1 -1
- package/dist/helpers/resolve-options.d.cts +1 -1
- package/dist/helpers/resolve-options.d.mts +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-CXxxQ0lD.d.cts → plugin-DeNRjk0Q.d.cts} +2 -2
- package/dist/{plugin-CXxxQ0lD.d.cts.map → plugin-DeNRjk0Q.d.cts.map} +1 -1
- package/dist/{plugin-Dt6qEKIr.d.mts → plugin-hgKpZHhf.d.mts} +2 -2
- package/dist/{plugin-Dt6qEKIr.d.mts.map → plugin-hgKpZHhf.d.mts.map} +1 -1
- package/dist/{resolve-options-DPRrB4Qj.d.cts → resolve-options-BF6hy5ew.d.cts} +2 -2
- package/dist/{resolve-options-DPRrB4Qj.d.cts.map → resolve-options-BF6hy5ew.d.cts.map} +1 -1
- package/dist/resolve-options-CpHtoivj.mjs.map +1 -1
- package/dist/{resolve-options-DRA_XDDs.d.mts → resolve-options-_lPqr8Vd.d.mts} +2 -2
- package/dist/{resolve-options-DRA_XDDs.d.mts.map → resolve-options-_lPqr8Vd.d.mts.map} +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +4 -4
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-
|
|
1
|
+
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-BF6hy5ew.cjs";
|
|
2
2
|
export { DEFAULT_UNBUILD_CONFIG, resolveOptions, unbuildLoader };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-
|
|
1
|
+
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-_lPqr8Vd.mjs";
|
|
2
2
|
export { DEFAULT_UNBUILD_CONFIG, resolveOptions, unbuildLoader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-
|
|
1
|
+
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-BF6hy5ew.cjs";
|
|
2
2
|
export { DEFAULT_UNBUILD_CONFIG, resolveOptions, unbuildLoader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-
|
|
1
|
+
import { n as resolveOptions, r as unbuildLoader, t as DEFAULT_UNBUILD_CONFIG } from "../resolve-options-_lPqr8Vd.mjs";
|
|
2
2
|
export { DEFAULT_UNBUILD_CONFIG, resolveOptions, unbuildLoader };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { n as __ΩUnbuildOptions, t as UnbuildOptions } from "./build-D-HKMVs4.cjs";
|
|
2
|
-
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "./plugin-
|
|
2
|
+
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "./plugin-DeNRjk0Q.cjs";
|
|
3
3
|
import "./index-BR1oNnaF.cjs";
|
|
4
|
-
import { Plugin } from "@powerlines/core
|
|
4
|
+
import { Plugin } from "@powerlines/core";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
7
|
+
declare module "@powerlines/core" {
|
|
8
|
+
interface BaseConfig {
|
|
9
|
+
unbuild?: UnbuildPluginOptions;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
13
|
* A Powerlines plugin to build projects using Unbuild.
|
|
9
14
|
*/
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAkCc;EAJU;;;;;AAWX,cAAA,MAsBZ,EAAA,CAAA,iBArBkB,oBAqBlB,GArByC,oBAqBzC,CAAA,CAAA,OAAA,CAAA,EAnBU,oBAmBV,EAAA,GAlBE,MAkBF,CAlBS,QAkBT,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { n as __ΩUnbuildOptions, t as UnbuildOptions } from "./build-BGmzCfG9.mjs";
|
|
2
|
-
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "./plugin-
|
|
2
|
+
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "./plugin-hgKpZHhf.mjs";
|
|
3
3
|
import "./index-DEHBdV_z.mjs";
|
|
4
|
-
import { Plugin } from "@powerlines/core
|
|
4
|
+
import { Plugin } from "@powerlines/core";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
7
|
+
declare module "@powerlines/core" {
|
|
8
|
+
interface BaseConfig {
|
|
9
|
+
unbuild?: UnbuildPluginOptions;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
13
|
* A Powerlines plugin to build projects using Unbuild.
|
|
9
14
|
*/
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAkCc;EAJU;;;;;AAWX,cAAA,MAsBZ,EAAA,CAAA,iBArBkB,oBAqBlB,GArByC,oBAqBzC,CAAA,CAAA,OAAA,CAAA,EAnBU,oBAmBV,EAAA,GAlBE,MAkBF,CAlBS,QAkBT,CAAA"}
|
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\nimport { Plugin } from \"@powerlines/core
|
|
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\nimport { Plugin } from \"@powerlines/core\";\nimport { build } from \"@storm-software/unbuild\";\nimport {\n DEFAULT_UNBUILD_CONFIG,\n resolveOptions\n} from \"./helpers/resolve-options\";\nimport {\n UnbuildPluginContext,\n UnbuildPluginOptions,\n UnbuildPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n unbuild?: UnbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to build projects using Unbuild.\n */\nexport const plugin = <\n TContext extends UnbuildPluginContext = UnbuildPluginContext\n>(\n options: UnbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"unbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n unbuild: {\n ...DEFAULT_UNBUILD_CONFIG,\n ...options\n }\n } as Partial<UnbuildPluginResolvedConfig>;\n },\n async build() {\n await build(resolveOptions(this));\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AAyCA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,MAAM,EAChB;IACD,SAAS;KACP,GAAG;KACH,GAAG;KACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,SAAM,MAAM,eAAe,KAAK,CAAC;;EAEpC;;AAGH,kBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UnbuildOptions } from "./build-D-HKMVs4.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type UnbuildPluginOptions = Partial<UnbuildOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩUnbuildPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩUnbuildPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩUnbuildPluginContext as a, __ΩUnbuildPluginUserConfig as c, UnbuildPluginUserConfig as i, UnbuildPluginOptions as n, __ΩUnbuildPluginOptions as o, UnbuildPluginResolvedConfig as r, __ΩUnbuildPluginResolvedConfig as s, UnbuildPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-DeNRjk0Q.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-DeNRjk0Q.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;UAE1B,uBAAA,SAAgC;EAFrC,OAAA,CAAA,EAGA,oBAHoB;AAEhC;AAIiB,UAAA,2BAAA,SAAoC,cAAA,CAAA;EAIzC,OAAA,EAHD,cAGqB;;AAE5B,KAFQ,oBAER,CAAA,wBADsB,2BACtB,GAAA,2BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,uCAAA,GAAA,EAAA;AAAd,0CAAA,GAAA,EAAA;AAAa,8CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UnbuildOptions } from "./build-BGmzCfG9.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type UnbuildPluginOptions = Partial<UnbuildOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩUnbuildPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩUnbuildPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩUnbuildPluginContext as a, __ΩUnbuildPluginUserConfig as c, UnbuildPluginUserConfig as i, UnbuildPluginOptions as n, __ΩUnbuildPluginOptions as o, UnbuildPluginResolvedConfig as r, __ΩUnbuildPluginResolvedConfig as s, UnbuildPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-hgKpZHhf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-hgKpZHhf.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;UAE1B,uBAAA,SAAgC;EAFrC,OAAA,CAAA,EAGA,oBAHoB;AAEhC;AAIiB,UAAA,2BAAA,SAAoC,cAAA,CAAA;EAIzC,OAAA,EAHD,cAGqB;;AAE5B,KAFQ,oBAER,CAAA,wBADsB,2BACtB,GAAA,2BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,uCAAA,GAAA,EAAA;AAAd,0CAAA,GAAA,EAAA;AAAa,8CAAA,GAAA,EAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { Context } from "@powerlines/core";
|
|
2
2
|
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
3
|
import { Loader, UnbuildOptions } from "@storm-software/unbuild/types";
|
|
4
4
|
|
|
@@ -14,4 +14,4 @@ declare const unbuildLoader: (context: UNSAFE_PluginContext) => Loader;
|
|
|
14
14
|
declare function resolveOptions(context: Context): UnbuildOptions;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { resolveOptions as n, unbuildLoader as r, DEFAULT_UNBUILD_CONFIG as t };
|
|
17
|
-
//# sourceMappingURL=resolve-options-
|
|
17
|
+
//# sourceMappingURL=resolve-options-BF6hy5ew.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-BF6hy5ew.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;cAkCa,wBAqBR,QAAQ;cAEA,yBAA0B,yBAAuB;AAvB9D;AAuBA;AA0HA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-CpHtoivj.mjs","names":["output: LoaderResult","extension","transformed: TransformResult | string","resolveOptions","resolveRollupOptions"],"sources":["../src/helpers/resolve-options.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 {
|
|
1
|
+
{"version":3,"file":"resolve-options-CpHtoivj.mjs","names":["output: LoaderResult","extension","transformed: TransformResult | string","resolveOptions","resolveRollupOptions"],"sources":["../src/helpers/resolve-options.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 { Context } from \"@powerlines/core\";\nimport { getString } from \"@powerlines/core/lib/utilities/source-file\";\nimport { UNSAFE_PluginContext } from \"@powerlines/core/types/_internal\";\nimport { resolveOptions as resolveRollupOptions } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport type {\n UnbuildOptions as ExternalUnbuildOptions,\n Loader,\n LoaderResult\n} from \"@storm-software/unbuild/types\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport defu from \"defu\";\nimport { transform } from \"esbuild\";\nimport { TransformResult } from \"unplugin\";\nimport { UnbuildPluginResolvedConfig } from \"../types\";\n\nexport const DEFAULT_UNBUILD_CONFIG = {\n dts: true,\n clean: false,\n includeSrc: false,\n treeShaking: true,\n splitting: true,\n stub: false,\n watchOptions: {},\n outputPath: \"dist\",\n generatePackageJson: true,\n banner: \" \",\n rollup: {\n dts: {},\n emitCJS: true,\n replace: {},\n resolve: {},\n json: {},\n esbuild: { target: \"es2020\" },\n commonjs: {},\n alias: {}\n }\n} as Partial<ExternalUnbuildOptions>;\n\nexport const unbuildLoader = (context: UNSAFE_PluginContext): Loader => {\n return async (input, { options }) => {\n if (\n !/\\.(?:c|m)?[jt]sx?$/.test(input.path) ||\n /\\.d\\.[cm]?ts$/.test(input.path)\n ) {\n return;\n }\n\n const output: LoaderResult = [];\n\n let contents = await input.getContents();\n\n // declaration\n if (options.declaration && !input.srcPath?.match(/\\.d\\.[cm]?ts$/)) {\n const cm = input.srcPath?.match(/(?<=\\.)(?:c|m)(?=[jt]s$)/)?.[0] || \"\";\n const extension = `.d.${cm}ts`;\n output.push({\n contents,\n srcPath: input.srcPath,\n path: input.path,\n extension,\n declaration: true\n });\n }\n\n let transformed: TransformResult | string = contents;\n\n let result = await context.$$internal.callHook(\n \"transform\",\n {\n sequential: true,\n order: \"pre\"\n },\n transformed,\n input.path\n );\n if (result) {\n transformed = result;\n }\n\n result = await context.$$internal.callHook(\n \"transform\",\n {\n sequential: true,\n order: \"normal\"\n },\n getString(transformed),\n input.path\n );\n if (result) {\n transformed = result;\n }\n\n result = await context.$$internal.callHook(\n \"transform\",\n {\n sequential: true,\n order: \"post\"\n },\n getString(transformed),\n input.path\n );\n if (result) {\n transformed = result;\n }\n\n // typescript => js\n if ([\".ts\", \".mts\", \".cts\"].includes(input.extension)) {\n contents = await transform(getString(transformed), {\n ...Object.fromEntries(\n Object.entries(options.esbuild ?? {}).filter(\n ([key]) => key !== \"absPaths\"\n )\n ),\n loader: \"ts\"\n }).then(r => r.code);\n } else if ([\".tsx\", \".jsx\"].includes(input.extension)) {\n contents = await transform(getString(transformed), {\n loader: input.extension === \".tsx\" ? \"tsx\" : \"jsx\",\n ...Object.fromEntries(\n Object.entries(options.esbuild ?? {}).filter(\n ([key]) => key !== \"absPaths\"\n )\n )\n }).then(r => r.code);\n }\n\n // esm => cjs\n const isCjs = options.format === \"cjs\";\n if (isCjs) {\n contents = context.resolver\n .transform({\n source: contents,\n retainLines: false\n })\n .replace(/^exports.default = /gm, \"module.exports = \")\n .replace(/^var _default = exports.default = /gm, \"module.exports = \")\n .replace(\"module.exports = void 0;\", \"\");\n }\n\n let extension = isCjs ? \".js\" : \".mjs\"; // TODO: Default to .cjs in next major version\n if (options.ext) {\n extension = options.ext.startsWith(\".\") ? options.ext : `.${options.ext}`;\n }\n\n output.push({\n contents,\n path: input.path,\n extension\n });\n\n return output;\n };\n};\n\n/**\n * Extracts the unbuild configuration from the context.\n *\n * @param context - The build context.\n * @returns The resolved unbuild configuration.\n */\nexport function resolveOptions(context: Context): ExternalUnbuildOptions {\n return defu(\n {\n alias: context.alias\n },\n (context.config as UnbuildPluginResolvedConfig).unbuild\n ? (context.config as UnbuildPluginResolvedConfig).unbuild\n : {},\n {\n projectName: context.config.name,\n name: context.config.name,\n orgName: isObject(context.workspaceConfig.organization)\n ? context.workspaceConfig.organization.name\n : context.workspaceConfig.organization,\n sourceRoot: joinPaths(context.config.root, \"src\"),\n projectRoot: context.config.root,\n outputPath: context.config.output.buildPath || \"dist\",\n platform: context.config.platform,\n external: context.builtins.reduce((ret, id) => {\n if (!ret.includes(id)) {\n ret.push(id);\n }\n\n return ret;\n }, context.config.resolve.external ?? []),\n loaders: [unbuildLoader(context as UNSAFE_PluginContext)],\n jiti: {\n interopDefault: true,\n fsCache: joinPaths(context.envPaths.cache, \"jiti\"),\n moduleCache: true\n },\n rollup: resolveRollupOptions(context) as any,\n debug: context.config.mode === \"development\",\n minify: context.config.mode !== \"development\",\n sourcemap: context.config.mode === \"development\"\n },\n DEFAULT_UNBUILD_CONFIG\n );\n}\n"],"mappings":";;;;;;;;AAkCA,MAAa,yBAAyB;CACpC,KAAK;CACL,OAAO;CACP,YAAY;CACZ,aAAa;CACb,WAAW;CACX,MAAM;CACN,cAAc,EAAE;CAChB,YAAY;CACZ,qBAAqB;CACrB,QAAQ;CACR,QAAQ;EACN,KAAK,EAAE;EACP,SAAS;EACT,SAAS,EAAE;EACX,SAAS,EAAE;EACX,MAAM,EAAE;EACR,SAAS,EAAE,QAAQ,UAAU;EAC7B,UAAU,EAAE;EACZ,OAAO,EAAE;EACV;CACF;AAED,MAAa,iBAAiB,YAA0C;AACtE,QAAO,OAAO,OAAO,EAAE,cAAc;AACnC,MACE,CAAC,qBAAqB,KAAK,MAAM,KAAK,IACtC,gBAAgB,KAAK,MAAM,KAAK,CAEhC;EAGF,MAAMA,SAAuB,EAAE;EAE/B,IAAI,WAAW,MAAM,MAAM,aAAa;AAGxC,MAAI,QAAQ,eAAe,CAAC,MAAM,SAAS,MAAM,gBAAgB,EAAE;GAEjE,MAAMC,cAAY,MADP,MAAM,SAAS,MAAM,2BAA2B,GAAG,MAAM,GACzC;AAC3B,UAAO,KAAK;IACV;IACA,SAAS,MAAM;IACf,MAAM,MAAM;IACZ;IACA,aAAa;IACd,CAAC;;EAGJ,IAAIC,cAAwC;EAE5C,IAAI,SAAS,MAAM,QAAQ,WAAW,SACpC,aACA;GACE,YAAY;GACZ,OAAO;GACR,EACD,aACA,MAAM,KACP;AACD,MAAI,OACF,eAAc;AAGhB,WAAS,MAAM,QAAQ,WAAW,SAChC,aACA;GACE,YAAY;GACZ,OAAO;GACR,EACD,UAAU,YAAY,EACtB,MAAM,KACP;AACD,MAAI,OACF,eAAc;AAGhB,WAAS,MAAM,QAAQ,WAAW,SAChC,aACA;GACE,YAAY;GACZ,OAAO;GACR,EACD,UAAU,YAAY,EACtB,MAAM,KACP;AACD,MAAI,OACF,eAAc;AAIhB,MAAI;GAAC;GAAO;GAAQ;GAAO,CAAC,SAAS,MAAM,UAAU,CACnD,YAAW,MAAM,UAAU,UAAU,YAAY,EAAE;GACjD,GAAG,OAAO,YACR,OAAO,QAAQ,QAAQ,WAAW,EAAE,CAAC,CAAC,QACnC,CAAC,SAAS,QAAQ,WACpB,CACF;GACD,QAAQ;GACT,CAAC,CAAC,MAAK,MAAK,EAAE,KAAK;WACX,CAAC,QAAQ,OAAO,CAAC,SAAS,MAAM,UAAU,CACnD,YAAW,MAAM,UAAU,UAAU,YAAY,EAAE;GACjD,QAAQ,MAAM,cAAc,SAAS,QAAQ;GAC7C,GAAG,OAAO,YACR,OAAO,QAAQ,QAAQ,WAAW,EAAE,CAAC,CAAC,QACnC,CAAC,SAAS,QAAQ,WACpB,CACF;GACF,CAAC,CAAC,MAAK,MAAK,EAAE,KAAK;EAItB,MAAM,QAAQ,QAAQ,WAAW;AACjC,MAAI,MACF,YAAW,QAAQ,SAChB,UAAU;GACT,QAAQ;GACR,aAAa;GACd,CAAC,CACD,QAAQ,yBAAyB,oBAAoB,CACrD,QAAQ,wCAAwC,oBAAoB,CACpE,QAAQ,4BAA4B,GAAG;EAG5C,IAAI,YAAY,QAAQ,QAAQ;AAChC,MAAI,QAAQ,IACV,aAAY,QAAQ,IAAI,WAAW,IAAI,GAAG,QAAQ,MAAM,IAAI,QAAQ;AAGtE,SAAO,KAAK;GACV;GACA,MAAM,MAAM;GACZ;GACD,CAAC;AAEF,SAAO;;;;;;;;;AAUX,SAAgBC,iBAAe,SAA0C;AACvE,QAAO,KACL,EACE,OAAO,QAAQ,OAChB,EACA,QAAQ,OAAuC,UAC3C,QAAQ,OAAuC,UAChD,EAAE,EACN;EACE,aAAa,QAAQ,OAAO;EAC5B,MAAM,QAAQ,OAAO;EACrB,SAAS,SAAS,QAAQ,gBAAgB,aAAa,GACnD,QAAQ,gBAAgB,aAAa,OACrC,QAAQ,gBAAgB;EAC5B,YAAY,UAAU,QAAQ,OAAO,MAAM,MAAM;EACjD,aAAa,QAAQ,OAAO;EAC5B,YAAY,QAAQ,OAAO,OAAO,aAAa;EAC/C,UAAU,QAAQ,OAAO;EACzB,UAAU,QAAQ,SAAS,QAAQ,KAAK,OAAO;AAC7C,OAAI,CAAC,IAAI,SAAS,GAAG,CACnB,KAAI,KAAK,GAAG;AAGd,UAAO;KACN,QAAQ,OAAO,QAAQ,YAAY,EAAE,CAAC;EACzC,SAAS,CAAC,cAAc,QAAgC,CAAC;EACzD,MAAM;GACJ,gBAAgB;GAChB,SAAS,UAAU,QAAQ,SAAS,OAAO,OAAO;GAClD,aAAa;GACd;EACD,QAAQC,eAAqB,QAAQ;EACrC,OAAO,QAAQ,OAAO,SAAS;EAC/B,QAAQ,QAAQ,OAAO,SAAS;EAChC,WAAW,QAAQ,OAAO,SAAS;EACpC,EACD,uBACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { Context } from "@powerlines/core";
|
|
2
2
|
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
3
|
import { Loader, UnbuildOptions } from "@storm-software/unbuild/types";
|
|
4
4
|
|
|
@@ -14,4 +14,4 @@ declare const unbuildLoader: (context: UNSAFE_PluginContext) => Loader;
|
|
|
14
14
|
declare function resolveOptions(context: Context): UnbuildOptions;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { resolveOptions as n, unbuildLoader as r, DEFAULT_UNBUILD_CONFIG as t };
|
|
17
|
-
//# sourceMappingURL=resolve-options-
|
|
17
|
+
//# sourceMappingURL=resolve-options-_lPqr8Vd.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-_lPqr8Vd.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;cAkCa,wBAqBR,QAAQ;cAEA,yBAA0B,yBAAuB;AAvB9D;AAuBA;AA0HA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as __ΩUnbuildOptions, t as UnbuildOptions } from "../build-D-HKMVs4.cjs";
|
|
2
|
-
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-DeNRjk0Q.cjs";
|
|
3
3
|
import "../index-BR1oNnaF.cjs";
|
|
4
4
|
export { UnbuildOptions, UnbuildPluginContext, UnbuildPluginOptions, UnbuildPluginResolvedConfig, UnbuildPluginUserConfig, __ΩUnbuildOptions, __ΩUnbuildPluginContext, __ΩUnbuildPluginOptions, __ΩUnbuildPluginResolvedConfig, __ΩUnbuildPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as __ΩUnbuildOptions, t as UnbuildOptions } from "../build-BGmzCfG9.mjs";
|
|
2
|
-
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-hgKpZHhf.mjs";
|
|
3
3
|
import "../index-DEHBdV_z.mjs";
|
|
4
4
|
export { UnbuildOptions, UnbuildPluginContext, UnbuildPluginOptions, UnbuildPluginResolvedConfig, UnbuildPluginUserConfig, __ΩUnbuildOptions, __ΩUnbuildPluginContext, __ΩUnbuildPluginOptions, __ΩUnbuildPluginResolvedConfig, __ΩUnbuildPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-D-HKMVs4.cjs";
|
|
2
|
-
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-DeNRjk0Q.cjs";
|
|
3
3
|
export { UnbuildPluginContext, UnbuildPluginOptions, UnbuildPluginResolvedConfig, UnbuildPluginUserConfig, __ΩUnbuildPluginContext, __ΩUnbuildPluginOptions, __ΩUnbuildPluginResolvedConfig, __ΩUnbuildPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-BGmzCfG9.mjs";
|
|
2
|
-
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩUnbuildPluginContext, c as __ΩUnbuildPluginUserConfig, i as UnbuildPluginUserConfig, n as UnbuildPluginOptions, o as __ΩUnbuildPluginOptions, r as UnbuildPluginResolvedConfig, s as __ΩUnbuildPluginResolvedConfig, t as UnbuildPluginContext } from "../plugin-hgKpZHhf.mjs";
|
|
3
3
|
export { UnbuildPluginContext, UnbuildPluginOptions, UnbuildPluginResolvedConfig, UnbuildPluginUserConfig, __ΩUnbuildPluginContext, __ΩUnbuildPluginOptions, __ΩUnbuildPluginResolvedConfig, __ΩUnbuildPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-unbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.312",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Unbuild.",
|
|
6
6
|
"keywords": ["unbuild", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"typings": "dist/index.d.mts",
|
|
70
70
|
"files": ["dist/**/*"],
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@powerlines/core": "^0.0
|
|
73
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
72
|
+
"@powerlines/core": "^0.1.0",
|
|
73
|
+
"@powerlines/plugin-rollup": "^0.7.312",
|
|
74
74
|
"@stryke/path": "^0.26.6",
|
|
75
75
|
"@stryke/type-checks": "^0.5.25",
|
|
76
76
|
"defu": "^6.1.4",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"peerDependencies": { "@storm-software/unbuild": ">=0.57.0" },
|
|
85
85
|
"peerDependenciesMeta": { "@storm-software/unbuild": { "optional": false } },
|
|
86
86
|
"publishConfig": { "access": "public" },
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
|
|
88
88
|
}
|