@powerlines/plugin-id 0.9.687 → 0.9.688

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 +31 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -74,6 +74,37 @@ A Powerlines plugin that provides unique identifier generation capabilities at r
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Adds the `id` builtin module for runtime unique-identifier generation
80
+ - Emits the selected ID module (e.g. `nanoid` component) as the `id` builtin during `prepare`
81
+ - Resolved config requires `type`; typed options via `./types/plugin`
82
+
83
+ ## Usage
84
+
85
+ Install the plugin:
86
+
87
+ ```bash
88
+ pnpm add @powerlines/plugin-id
89
+ ```
90
+
91
+ Register it in `powerlines.config.ts`:
92
+
93
+ ```ts
94
+ import { defineConfig } from "powerlines";
95
+ import { plugin as id } from "@powerlines/plugin-id";
96
+
97
+ export default defineConfig({
98
+ plugins: [
99
+ id({
100
+ type: "nanoid"
101
+ })
102
+ ]
103
+ });
104
+ ```
105
+
106
+ Run the Powerlines build for your project to activate the plugin.
107
+
77
108
  ## Installing
78
109
 
79
110
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-id",
3
- "version": "0.9.687",
3
+ "version": "0.9.688",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin that provides unique identifier generation capabilities at runtime by adding the `id` builtin module.",
6
6
  "repository": {
@@ -114,18 +114,18 @@
114
114
  "files": ["dist/**/*"],
115
115
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
116
116
  "dependencies": {
117
- "@storm-software/config-tools": "^1.190.151",
117
+ "@storm-software/config-tools": "^1.190.154",
118
118
  "@stryke/path": "^0.29.43",
119
119
  "defu": "^6.1.7",
120
- "powerlines": "^0.47.216"
120
+ "powerlines": "^0.47.217"
121
121
  },
122
122
  "devDependencies": {
123
- "@powerlines/plugin-plugin": "^0.12.629",
123
+ "@powerlines/plugin-plugin": "^0.12.630",
124
124
  "@types/node": "^25.9.9"
125
125
  },
126
126
  "publishConfig": { "access": "public" },
127
127
  "main": "./dist/index.cjs",
128
128
  "module": "./dist/index.mjs",
129
129
  "types": "./dist/index.d.cts",
130
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
130
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
131
131
  }