@powerlines/plugin-tsdown 0.1.290 → 0.1.292
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.cjs +1 -1
- package/dist/helpers/index.d.mts +1 -1
- package/dist/helpers/resolve-options.cjs +1 -1
- package/dist/helpers/resolve-options.d.mts +1 -1
- package/dist/helpers/resolve-options.mjs +1 -1
- package/dist/helpers/unplugin.cjs +2 -2
- package/dist/helpers/unplugin.mjs +1 -1
- package/dist/index.cjs +8 -2
- 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 +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{resolve-options-BS9JkZAF.d.mts → resolve-options-YuzWT3WT.d.mts} +4 -4
- package/dist/{resolve-options-BS9JkZAF.d.mts.map → resolve-options-YuzWT3WT.d.mts.map} +1 -1
- package/dist/{resolve-options-C-QiHQuJ.cjs → resolve-options-zRmpZ1kt.cjs} +1 -1
- package/package.json +6 -6
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_resolve_options = require('../resolve-options-
|
|
2
|
+
const require_resolve_options = require('../resolve-options-zRmpZ1kt.cjs');
|
|
3
3
|
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
4
4
|
|
|
5
5
|
exports.DEFAULT_TSDOWN_CONFIG = require_resolve_options.DEFAULT_TSDOWN_CONFIG;
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as resolveOptions, n as resolveFormat, r as resolveFromFormat, t as DEFAULT_TSDOWN_CONFIG } from "../resolve-options-
|
|
1
|
+
import { i as resolveOptions, n as resolveFormat, r as resolveFromFormat, t as DEFAULT_TSDOWN_CONFIG } from "../resolve-options-YuzWT3WT.mjs";
|
|
2
2
|
import { t as createTsdownPlugin } from "../unplugin-B4lJrjNj.mjs";
|
|
3
3
|
export { DEFAULT_TSDOWN_CONFIG, createTsdownPlugin, resolveFormat, resolveFromFormat, resolveOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_resolve_options = require('../resolve-options-
|
|
2
|
+
const require_resolve_options = require('../resolve-options-zRmpZ1kt.cjs');
|
|
3
3
|
|
|
4
4
|
exports.DEFAULT_TSDOWN_CONFIG = require_resolve_options.DEFAULT_TSDOWN_CONFIG;
|
|
5
5
|
exports.resolveFormat = require_resolve_options.resolveFormat;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as resolveOptions, n as resolveFormat, r as resolveFromFormat, t as DEFAULT_TSDOWN_CONFIG } from "../resolve-options-
|
|
1
|
+
import { i as resolveOptions, n as resolveFormat, r as resolveFromFormat, t as DEFAULT_TSDOWN_CONFIG } from "../resolve-options-YuzWT3WT.mjs";
|
|
2
2
|
export { DEFAULT_TSDOWN_CONFIG, resolveFormat, resolveFromFormat, resolveOptions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getDependencyConfig } from "@powerlines/core/plugin-utils";
|
|
1
2
|
import { toArray } from "@stryke/convert/to-array";
|
|
2
3
|
import defu from "defu";
|
|
3
|
-
import { getDependencyConfig } from "@powerlines/core/plugin-utils";
|
|
4
4
|
import { appendPath } from "@stryke/path/append";
|
|
5
5
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
6
6
|
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_resolve_options = require('../resolve-options-
|
|
3
|
-
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
2
|
+
const require_resolve_options = require('../resolve-options-zRmpZ1kt.cjs');
|
|
4
3
|
let unplugin = require("unplugin");
|
|
4
|
+
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/unplugin.ts
|
|
7
7
|
function createTsdownPlugin(context) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_resolve_options = require('./resolve-options-
|
|
2
|
+
const require_resolve_options = require('./resolve-options-zRmpZ1kt.cjs');
|
|
3
3
|
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
4
4
|
require('./helpers/index.cjs');
|
|
5
|
+
let _powerlines_core = require("@powerlines/core");
|
|
6
|
+
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
5
7
|
let _powerlines_core_plugin_utils_format_package_json = require("@powerlines/core/plugin-utils/format-package-json");
|
|
6
8
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
7
9
|
let defu = require("defu");
|
|
8
10
|
defu = require_resolve_options.__toESM(defu);
|
|
9
11
|
let tsdown = require("tsdown");
|
|
12
|
+
let unplugin = require("unplugin");
|
|
10
13
|
|
|
11
14
|
//#region src/index.ts
|
|
12
15
|
/**
|
|
@@ -26,7 +29,10 @@ const plugin = (options = {}) => {
|
|
|
26
29
|
this.trace("Starting Tsdown build process...");
|
|
27
30
|
await (0, tsdown.build)((0, defu.default)({
|
|
28
31
|
config: false,
|
|
29
|
-
plugins: (0,
|
|
32
|
+
plugins: await (0, _powerlines_core_plugin_utils.combinePlugins)({
|
|
33
|
+
name: "powerlines-tsdown",
|
|
34
|
+
plugins: (0, _stryke_convert_to_array.toArray)((0, unplugin.createRolldownPlugin)((0, _powerlines_core.createUnplugin)(this)))
|
|
35
|
+
}).rolldown()
|
|
30
36
|
}, require_resolve_options.resolveOptions(this)));
|
|
31
37
|
await (0, _powerlines_core_plugin_utils_format_package_json.formatPackageJson)(this);
|
|
32
38
|
}
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAoCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;AAJgB;;;AAAA,cAWhB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveOptions, n as resolveFormat, r as resolveFromFormat, t as DEFAULT_TSDOWN_CONFIG } from "./resolve-options-
|
|
1
|
+
import { i as resolveOptions, n as resolveFormat, r as resolveFromFormat, t as DEFAULT_TSDOWN_CONFIG } from "./resolve-options-YuzWT3WT.mjs";
|
|
2
2
|
import { n as __ΩTsdownOptions, t as TsdownOptions } from "./build-0MluyGwY.mjs";
|
|
3
3
|
import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-T43KOEy-.mjs";
|
|
4
4
|
import { t as createTsdownPlugin } from "./unplugin-B4lJrjNj.mjs";
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAoCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;AAJgB;;;AAAA,cAWhB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { DEFAULT_TSDOWN_CONFIG, resolveFormat, resolveFromFormat, resolveOptions } from "./helpers/resolve-options.mjs";
|
|
2
2
|
import { createTsdownPlugin } from "./helpers/unplugin.mjs";
|
|
3
3
|
import "./helpers/index.mjs";
|
|
4
|
+
import { createUnplugin } from "@powerlines/core";
|
|
5
|
+
import { combinePlugins } from "@powerlines/core/plugin-utils";
|
|
4
6
|
import { formatPackageJson } from "@powerlines/core/plugin-utils/format-package-json";
|
|
5
7
|
import { toArray } from "@stryke/convert/to-array";
|
|
6
8
|
import defu from "defu";
|
|
7
9
|
import { build } from "tsdown";
|
|
10
|
+
import { createRolldownPlugin } from "unplugin";
|
|
8
11
|
|
|
9
12
|
//#region src/index.ts
|
|
10
13
|
/**
|
|
@@ -24,7 +27,10 @@ const plugin = (options = {}) => {
|
|
|
24
27
|
this.trace("Starting Tsdown build process...");
|
|
25
28
|
await build(defu({
|
|
26
29
|
config: false,
|
|
27
|
-
plugins:
|
|
30
|
+
plugins: await combinePlugins({
|
|
31
|
+
name: "powerlines-tsdown",
|
|
32
|
+
plugins: toArray(createRolldownPlugin(createUnplugin(this)))
|
|
33
|
+
}).rolldown()
|
|
28
34
|
}, resolveOptions(this)));
|
|
29
35
|
await formatPackageJson(this);
|
|
30
36
|
}
|
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 { formatPackageJson } from \"@powerlines/core/plugin-utils/format-package-json\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { build } from \"tsdown\";\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 { createUnplugin, Plugin } from \"@powerlines/core\";\nimport { combinePlugins } from \"@powerlines/core/plugin-utils\";\nimport { formatPackageJson } from \"@powerlines/core/plugin-utils/format-package-json\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { build } from \"tsdown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport {\n TsdownPluginContext,\n TsdownPluginOptions,\n TsdownPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport type * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n tsdown?: TsdownPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to use Tsdown to build the project.\n */\nexport const plugin = <\n TContext extends TsdownPluginContext = TsdownPluginContext\n>(\n options: TsdownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsdown\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `tsdown` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsdown: {\n ...options\n }\n } as Partial<TsdownPluginResolvedConfig>;\n },\n async build() {\n this.trace(\"Starting Tsdown build process...\");\n\n await build(\n defu(\n {\n config: false,\n plugins: await combinePlugins({\n name: \"powerlines-tsdown\",\n plugins: toArray(createRolldownPlugin(createUnplugin(this)))\n }).rolldown()\n },\n resolveOptions(this)\n )\n );\n\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AA4CA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,4EACD;AAED,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,QAAQ,EACN,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;AAE9C,SAAM,MACJ,KACE;IACE,QAAQ;IACR,SAAS,MAAM,eAAe;KAC5B,MAAM;KACN,SAAS,QAAQ,qBAAqB,eAAe,KAAK,CAAC,CAAC;KAC7D,CAAC,CAAC,UAAU;IACd,EACD,eAAe,KAAK,CACrB,CACF;AAED,SAAM,kBAAkB,KAAK;;EAEhC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Format, UserConfig } from "tsdown";
|
|
2
1
|
import { Context } from "@powerlines/core";
|
|
2
|
+
import { Format, UserConfig as UserConfig$1 } from "tsdown";
|
|
3
3
|
import { Format as Format$1 } from "@storm-software/build-tools/types";
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/resolve-options.d.ts
|
|
6
|
-
declare const DEFAULT_TSDOWN_CONFIG: Partial<UserConfig>;
|
|
6
|
+
declare const DEFAULT_TSDOWN_CONFIG: Partial<UserConfig$1>;
|
|
7
7
|
/**
|
|
8
8
|
* Resolves the entry options for [tsdown](https://github.com/rolldown/tsdown).
|
|
9
9
|
*
|
|
@@ -24,7 +24,7 @@ declare function resolveFromFormat(formats?: Format | Format[]): Format$1[];
|
|
|
24
24
|
* @param context - The build context.
|
|
25
25
|
* @returns The resolved options.
|
|
26
26
|
*/
|
|
27
|
-
declare function resolveOptions(context: Context): UserConfig;
|
|
27
|
+
declare function resolveOptions(context: Context): UserConfig$1;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { resolveOptions as i, resolveFormat as n, resolveFromFormat as r, DEFAULT_TSDOWN_CONFIG as t };
|
|
30
|
-
//# sourceMappingURL=resolve-options-
|
|
30
|
+
//# sourceMappingURL=resolve-options-YuzWT3WT.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-YuzWT3WT.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;cAgCa,qBAAA,EAAuB,OAAA,CAAQ,YAAA;;AAA5C;;;;;iBAcgB,aAAA,CAAc,OAAA,GAAU,QAAA,GAAS,QAAA,KAAW,MAAA;;;;;;;iBAoB5C,iBAAA,CACd,OAAA,GAAU,MAAA,GAAe,MAAA,KACxB,QAAA;;;;;;;iBAiCa,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,YAAA"}
|
|
@@ -25,10 +25,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
+
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
28
29
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
29
30
|
let defu = require("defu");
|
|
30
31
|
defu = __toESM(defu);
|
|
31
|
-
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
32
32
|
let _stryke_path_append = require("@stryke/path/append");
|
|
33
33
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
34
34
|
let _stryke_path_replace = require("@stryke/path/replace");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.292",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["tsdown", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"import": "./dist/helpers/unplugin.mjs",
|
|
54
54
|
"require": "./dist/helpers/unplugin.cjs"
|
|
55
55
|
},
|
|
56
|
-
"./resolve-options-
|
|
56
|
+
"./resolve-options-zRmpZ1kt": "./dist/resolve-options-zRmpZ1kt.cjs",
|
|
57
57
|
"./types": {
|
|
58
58
|
"import": "./dist/types/index.mjs",
|
|
59
59
|
"require": "./dist/types/index.cjs"
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"typings": "dist/index.d.mts",
|
|
75
75
|
"files": ["dist/**/*"],
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@powerlines/core": "^0.
|
|
78
|
-
"@powerlines/plugin-rolldown": "^0.7.
|
|
77
|
+
"@powerlines/core": "^0.3.1",
|
|
78
|
+
"@powerlines/plugin-rolldown": "^0.7.349",
|
|
79
79
|
"@stryke/convert": "^0.6.53",
|
|
80
80
|
"defu": "^6.1.4",
|
|
81
81
|
"unplugin": "^3.0.0"
|
|
82
82
|
},
|
|
83
|
-
"devDependencies": { "@types/node": "^25.
|
|
83
|
+
"devDependencies": { "@types/node": "^25.5.0", "tsdown": "^0.21.2" },
|
|
84
84
|
"peerDependencies": { "tsdown": ">=0.21.2" },
|
|
85
85
|
"peerDependenciesMeta": { "tsdown": { "optional": false } },
|
|
86
86
|
"publishConfig": { "access": "public" },
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "74a26c533ea4d67ba1b3e297256309c2e23f6e62"
|
|
88
88
|
}
|