@powerlines/plugin-tsdown 0.1.610 → 0.1.612
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 +1 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -75,5 +75,4 @@ const plugin = (options = {}) => {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
//#endregion
|
|
78
|
-
exports.default = plugin;
|
|
79
78
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -13,5 +13,5 @@ declare module "powerlines" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, plugin
|
|
16
|
+
export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -13,5 +13,5 @@ declare module "powerlines" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, plugin
|
|
16
|
+
export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// @ts-nocheck\n/* -------------------------------------------------------------------\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 Build configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// @ts-nocheck\n/* -------------------------------------------------------------------\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 Build configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n"],"mappings":";;;;;;;;;;;AAuCA,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,CAAC,CAAC,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,0CAA0C,aAAa,OAAO;GACzE,CAAC;GAED,MAAM,MAAM,OAAO;GACnB,MAAM,kBAAkB,IAAI;EAC9B;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.612",
|
|
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"],
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"typings": "dist/index.d.mts",
|
|
69
69
|
"files": ["dist"],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@powerlines/core": "^0.48.
|
|
72
|
-
"@powerlines/unplugin": "^0.0.
|
|
71
|
+
"@powerlines/core": "^0.48.130",
|
|
72
|
+
"@powerlines/unplugin": "^0.0.178",
|
|
73
73
|
"@stryke/convert": "^0.7.39",
|
|
74
74
|
"@stryke/helpers": "^0.10.48",
|
|
75
75
|
"defu": "^6.1.7",
|
|
76
|
-
"powerlines": "^0.47.
|
|
76
|
+
"powerlines": "^0.47.211",
|
|
77
77
|
"unplugin": "^3.3.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"tsdown": { "optional": false }
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": { "access": "public" },
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "b009e583e12f04c70454ada388ceaae84d7ae6db"
|
|
97
97
|
}
|