@powerlines/plugin-tsup 0.12.673 → 0.12.674

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.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -74,6 +74,40 @@ A package containing a Powerlines plugin to assist in running Tsup builds on Pow
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Runs [tsup](https://tsup.egoist.dev/) builds on Powerlines projects
80
+ - Supplies default tsup build configuration through the `config` hook
81
+ - Runs the build through the `build` hook
82
+ - Accepts `Partial<TsupOptions>` (for example `dts: true`)
83
+
84
+ ## Usage
85
+
86
+ Install the plugin:
87
+
88
+ ```bash
89
+ pnpm add @powerlines/plugin-tsup
90
+ ```
91
+
92
+ Register it in `powerlines.config.ts`:
93
+
94
+ ```ts
95
+ import { plugin as tsup } from "@powerlines/plugin-tsup";
96
+ import { defineConfig } from "powerlines/config";
97
+
98
+ export default defineConfig({
99
+ plugins: [tsup()]
100
+ });
101
+ ```
102
+
103
+ Run the build with the Powerlines CLI. To pass options inline:
104
+
105
+ ```ts
106
+ export default defineConfig({
107
+ plugins: [tsup({ dts: true })]
108
+ });
109
+ ```
110
+
77
111
  ## Installing
78
112
 
79
113
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsup",
3
- "version": "0.12.673",
3
+ "version": "0.12.674",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["tsup", "powerlines", "storm-software", "powerlines-plugin"],
@@ -68,20 +68,20 @@
68
68
  "typings": "dist/index.d.mts",
69
69
  "files": ["dist"],
70
70
  "dependencies": {
71
- "@powerlines/core": "^0.48.135",
72
- "@powerlines/unplugin": "^0.0.183",
73
- "@storm-software/build-tools": "^0.158.311",
71
+ "@powerlines/core": "^0.48.136",
72
+ "@powerlines/unplugin": "^0.0.184",
73
+ "@storm-software/build-tools": "^0.158.314",
74
74
  "@stryke/convert": "^0.7.47",
75
75
  "@stryke/helpers": "^0.10.56",
76
76
  "@stryke/path": "^0.29.43",
77
77
  "@stryke/type-checks": "^0.6.49",
78
78
  "@stryke/types": "^0.12.44",
79
79
  "defu": "^6.1.7",
80
- "powerlines": "^0.47.216",
80
+ "powerlines": "^0.47.217",
81
81
  "unplugin": "^3.4.0"
82
82
  },
83
83
  "devDependencies": {
84
- "@storm-software/tsup": "^0.2.309",
84
+ "@storm-software/tsup": "^0.2.312",
85
85
  "@types/node": "^25.9.9",
86
86
  "tsup": "8.4.0"
87
87
  },
@@ -91,5 +91,5 @@
91
91
  "tsup": { "optional": false }
92
92
  },
93
93
  "publishConfig": { "access": "public" },
94
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
94
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
95
95
  }