@powerlines/plugin-tsdown 0.1.441 → 0.1.442
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 +3 -4
- package/dist/index.d.cts +3 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -27,11 +27,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
let _powerlines_core = require("@powerlines/core");
|
|
30
|
-
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
31
|
-
let _powerlines_core_plugin_utils_format_package_json = require("@powerlines/core/plugin-utils/format-package-json");
|
|
32
30
|
let _powerlines_unplugin_tsdown = require("@powerlines/unplugin/tsdown");
|
|
33
31
|
let defu = require("defu");
|
|
34
32
|
defu = __toESM(defu, 1);
|
|
33
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
35
34
|
let tsdown = require("tsdown");
|
|
36
35
|
let unplugin = require("unplugin");
|
|
37
36
|
|
|
@@ -67,10 +66,10 @@ const plugin = (options = {}) => {
|
|
|
67
66
|
});
|
|
68
67
|
this.debug({
|
|
69
68
|
meta: { category: "config" },
|
|
70
|
-
message: `Resolved Tsdown configuration: \n${(0,
|
|
69
|
+
message: `Resolved Tsdown configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
|
|
71
70
|
});
|
|
72
71
|
await (0, tsdown.build)(options);
|
|
73
|
-
await (0,
|
|
72
|
+
await (0, powerlines_plugin_utils.formatPackageJson)(this);
|
|
74
73
|
}
|
|
75
74
|
};
|
|
76
75
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩTsdownOptions, t as TsdownOptions } from "./build-DGSkbjen.cjs";
|
|
2
2
|
import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
-
import { Plugin } from "
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "powerlines" {
|
|
7
7
|
interface Config {
|
|
8
8
|
tsdown?: TsdownPluginOptions;
|
|
9
9
|
}
|
|
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { TsdownOptions, TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownOptions, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, plugin as default, plugin };
|
|
16
|
+
export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, type __ΩTsdownOptions, type __ΩTsdownPluginContext, type __ΩTsdownPluginOptions, type __ΩTsdownPluginResolvedConfig, type __ΩTsdownPluginUserConfig, plugin as default, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAmB;EAAA;AAAA;;;;cAOnB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩTsdownOptions, t as TsdownOptions } from "./build-CFHXlkSV.mjs";
|
|
2
2
|
import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
-
import { Plugin } from "
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "powerlines" {
|
|
7
7
|
interface Config {
|
|
8
8
|
tsdown?: TsdownPluginOptions;
|
|
9
9
|
}
|
|
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { TsdownOptions, TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownOptions, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, plugin as default, plugin };
|
|
16
|
+
export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, type __ΩTsdownOptions, type __ΩTsdownPluginContext, type __ΩTsdownPluginOptions, type __ΩTsdownPluginResolvedConfig, type __ΩTsdownPluginUserConfig, plugin as default, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAmB;EAAA;AAAA;;;;cAOnB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createUnplugin } from "@powerlines/core";
|
|
2
|
-
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
3
|
-
import { formatPackageJson } from "@powerlines/core/plugin-utils/format-package-json";
|
|
4
2
|
import { resolveOptions } from "@powerlines/unplugin/tsdown";
|
|
5
3
|
import defu from "defu";
|
|
4
|
+
import { formatConfig, formatPackageJson } from "powerlines/plugin-utils";
|
|
6
5
|
import { build } from "tsdown";
|
|
7
6
|
import { createRolldownPlugin } from "unplugin";
|
|
8
7
|
|
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 { createUnplugin
|
|
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 } from \"@powerlines/core\";\nimport { resolveOptions } from \"@powerlines/unplugin/tsdown\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig, formatPackageJson } from \"powerlines/plugin-utils\";\nimport { build, InlineConfig } from \"tsdown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport type { TsdownPluginContext, TsdownPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\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.debug(\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 };\n },\n configResolved() {\n this.debug(\n \"Checking for Tsdown related dependencies required by the project.\"\n );\n\n if (this.config.tsdown?.attw) {\n this.devDependencies[\"@arethetypeswrong/core\"] = \"^0.18.2\";\n }\n\n if (this.config.tsdown?.publint) {\n this.devDependencies.publint = \"^0.3.18\";\n }\n },\n async build() {\n this.debug(\"Starting Tsdown build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.tsdown, {\n ...resolved,\n config: false,\n plugins: [\n createRolldownPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"tsdown\"\n })\n )()\n ]\n }) as InlineConfig;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsdown configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAsCA,MAAa,UAGX,UAA+B,CAAC,MACX;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,2EACF;GAEA,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,QAAQ,EACN,GAAG,QACL;GACF;EACF;EACA,iBAAiB;GACf,KAAK,MACH,mEACF;GAEA,IAAI,KAAK,OAAO,QAAQ,MACtB,KAAK,gBAAgB,4BAA4B;GAGnD,IAAI,KAAK,OAAO,QAAQ,SACtB,KAAK,gBAAgB,UAAU;EAEnC;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,kCAAkC;GAE7C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,QAAQ;IACvC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,qBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,oCAAoC,aAAa,OAAO;GACnE,CAAC;GAED,MAAM,MAAM,OAAO;GACnB,MAAM,kBAAkB,IAAI;EAC9B;CACF;AACF"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsdownOptions } from "../build-DGSkbjen.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type TsdownPluginOptions = Partial<TsdownOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAO,CAAC,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAU;EACxD,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAc;EAChE,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsdownOptions } from "../build-CFHXlkSV.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type TsdownPluginOptions = Partial<TsdownOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAO,CAAC,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAU;EACxD,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAc;EAChE,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.442",
|
|
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"],
|
|
@@ -73,14 +73,15 @@
|
|
|
73
73
|
"typings": "dist/index.d.mts",
|
|
74
74
|
"files": ["dist"],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@powerlines/core": "^0.15.
|
|
77
|
-
"@powerlines/unplugin": "^0.0.
|
|
76
|
+
"@powerlines/core": "^0.15.19",
|
|
77
|
+
"@powerlines/unplugin": "^0.0.34",
|
|
78
78
|
"@stryke/convert": "^0.7.7",
|
|
79
79
|
"@stryke/helpers": "^0.10.16",
|
|
80
80
|
"defu": "^6.1.7",
|
|
81
|
+
"powerlines": "^0.47.41",
|
|
81
82
|
"unplugin": "^3.0.0"
|
|
82
83
|
},
|
|
83
|
-
"devDependencies": { "@types/node": "^25.8.0", "tsdown": "^0.
|
|
84
|
+
"devDependencies": { "@types/node": "^25.8.0", "tsdown": "^0.22.0" },
|
|
84
85
|
"peerDependencies": {
|
|
85
86
|
"@arethetypeswrong/core": ">=0.18.2",
|
|
86
87
|
"publint": ">=0.3.18",
|
|
@@ -92,5 +93,5 @@
|
|
|
92
93
|
"tsdown": { "optional": false }
|
|
93
94
|
},
|
|
94
95
|
"publishConfig": { "access": "public" },
|
|
95
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
96
97
|
}
|