@powerlines/plugin-unbuild 0.5.672 → 0.5.673

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 +6 -6
package/README.md CHANGED
@@ -74,6 +74,40 @@ A package containing a Powerlines plugin to build projects using Unbuild.
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Runs [unbuild](https://unjs.io/packages/unbuild) builds on Powerlines projects
80
+ - Supplies default unbuild configuration through the `config` hook
81
+ - Runs the build through the `build` hook
82
+ - Accepts `Partial<UnbuildOptions>` (for example `clean: true`)
83
+
84
+ ## Usage
85
+
86
+ Install the plugin:
87
+
88
+ ```bash
89
+ pnpm add @powerlines/plugin-unbuild
90
+ ```
91
+
92
+ Register it in `powerlines.config.ts`:
93
+
94
+ ```ts
95
+ import { plugin as unbuild } from "@powerlines/plugin-unbuild";
96
+ import { defineConfig } from "powerlines/config";
97
+
98
+ export default defineConfig({
99
+ plugins: [unbuild()]
100
+ });
101
+ ```
102
+
103
+ Run the build with the Powerlines CLI. To pass options inline:
104
+
105
+ ```ts
106
+ export default defineConfig({
107
+ plugins: [unbuild({ clean: 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-unbuild",
3
- "version": "0.5.672",
3
+ "version": "0.5.673",
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"],
@@ -78,22 +78,22 @@
78
78
  "typings": "dist/index.d.mts",
79
79
  "files": ["dist"],
80
80
  "dependencies": {
81
- "@powerlines/core": "^0.48.135",
82
- "@powerlines/unplugin": "^0.0.183",
81
+ "@powerlines/core": "^0.48.136",
82
+ "@powerlines/unplugin": "^0.0.184",
83
83
  "@stryke/helpers": "^0.10.56",
84
84
  "@stryke/path": "^0.29.43",
85
85
  "@stryke/type-checks": "^0.6.49",
86
86
  "defu": "^6.1.7",
87
87
  "esbuild": "^0.28.2",
88
- "powerlines": "^0.47.216",
88
+ "powerlines": "^0.47.217",
89
89
  "unplugin": "^3.4.0"
90
90
  },
91
91
  "devDependencies": {
92
- "@storm-software/unbuild": "^0.57.312",
92
+ "@storm-software/unbuild": "^0.57.315",
93
93
  "@types/node": "^25.9.9"
94
94
  },
95
95
  "peerDependencies": { "@storm-software/unbuild": ">=0.57.0" },
96
96
  "peerDependenciesMeta": { "@storm-software/unbuild": { "optional": false } },
97
97
  "publishConfig": { "access": "public" },
98
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
98
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
99
99
  }