@powerlines/plugin-unbuild 0.5.453 → 0.5.455
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/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_helpers_resolve_options = require('./helpers/resolve-options.cjs');
|
|
4
|
+
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
4
5
|
let _storm_software_unbuild = require("@storm-software/unbuild");
|
|
5
|
-
let _stryke_helpers_omit = require("@stryke/helpers/omit");
|
|
6
6
|
|
|
7
7
|
//#region src/index.ts
|
|
8
8
|
/**
|
|
@@ -25,7 +25,7 @@ const plugin = (options = {}) => {
|
|
|
25
25
|
const options = require_helpers_resolve_options.resolveOptions(this);
|
|
26
26
|
this.debug({
|
|
27
27
|
meta: { category: "config" },
|
|
28
|
-
message: `Resolved Unbuild configuration: \n${
|
|
28
|
+
message: `Resolved Unbuild configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
|
|
29
29
|
});
|
|
30
30
|
await (0, _storm_software_unbuild.build)(options);
|
|
31
31
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_UNBUILD_CONFIG, resolveOptions } from "./helpers/resolve-options.mjs";
|
|
2
|
+
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
2
3
|
import { build } from "@storm-software/unbuild";
|
|
3
|
-
import { omit } from "@stryke/helpers/omit";
|
|
4
4
|
|
|
5
5
|
//#region src/index.ts
|
|
6
6
|
/**
|
|
@@ -23,7 +23,7 @@ const plugin = (options = {}) => {
|
|
|
23
23
|
const options = resolveOptions(this);
|
|
24
24
|
this.debug({
|
|
25
25
|
meta: { category: "config" },
|
|
26
|
-
message: `Resolved Unbuild configuration: \n${
|
|
26
|
+
message: `Resolved Unbuild configuration: \n${formatConfig(options)}`
|
|
27
27
|
});
|
|
28
28
|
await build(options);
|
|
29
29
|
}
|
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\";\nimport {
|
|
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 { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { build } from \"@storm-software/unbuild\";\nimport {\n DEFAULT_UNBUILD_CONFIG,\n resolveOptions\n} from \"./helpers/resolve-options\";\nimport { UnbuildPluginContext, UnbuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\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 };\n },\n async build() {\n this.debug(\"Starting Unbuild build process...\");\n\n const options = resolveOptions(this);\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Unbuild configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;AAsCA,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,QAAK,MAAM,oCAAoC;GAE/C,MAAM,UAAU,eAAe,KAAK;AAEpC,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,qCAAqC,aAAa,QAAQ;IACpE,CAAC;AAEF,SAAM,MAAM,QAAQ;;EAEvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-unbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.455",
|
|
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.46.
|
|
73
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
72
|
+
"@powerlines/core": "^0.46.6",
|
|
73
|
+
"@powerlines/plugin-rollup": "^0.7.454",
|
|
74
74
|
"@stryke/helpers": "^0.10.12",
|
|
75
75
|
"@stryke/path": "^0.28.2",
|
|
76
76
|
"@stryke/type-checks": "^0.6.5",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"peerDependencies": { "@storm-software/unbuild": ">=0.57.0" },
|
|
86
86
|
"peerDependenciesMeta": { "@storm-software/unbuild": { "optional": false } },
|
|
87
87
|
"publishConfig": { "access": "public" },
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "610c4c943933458c5f433b9002d8c187625b2d3f"
|
|
89
89
|
}
|