@walkeros/config 2.2.0-next-1773136823705 → 3.0.0

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/package.json +1 -1
  2. package/tsup/index.mjs +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/config",
3
- "version": "2.2.0-next-1773136823705",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "description": "Shared development configuration for walkerOS packages (TypeScript, ESLint, Jest, tsup)",
6
6
  "license": "MIT",
package/tsup/index.mjs CHANGED
@@ -160,7 +160,25 @@ const buildDev = (customConfig = {}) => {
160
160
  if (walkerOS.platform) meta.platform = walkerOS.platform;
161
161
  if (walkerOS.renderer) meta.renderer = walkerOS.renderer;
162
162
 
163
+ // Docs URL (manual, from walkerOS.docs in package.json)
164
+ if (walkerOS.docs) meta.docs = walkerOS.docs;
165
+
166
+ // Source URL (auto-derived from repository.directory)
167
+ const repo = pkg.repository;
168
+ if (repo?.directory) {
169
+ const repoUrl = (repo.url || '').replace(/^git\+/, '').replace(/\.git$/, '');
170
+ if (repoUrl) meta.source = `${repoUrl}/tree/main/${repo.directory}/src`;
171
+ }
172
+
173
+ // Extract hints (optional)
174
+ const hints = devModule.hints
175
+ ? toSerializable(devModule.hints)
176
+ : undefined;
177
+
163
178
  const output = { $meta: meta, schemas, examples };
179
+ if (hints && Object.keys(hints).length > 0) {
180
+ output.hints = hints;
181
+ }
164
182
 
165
183
  // Validate
166
184
  if (Object.keys(schemas).length === 0) {