@ankhorage/paradox 0.1.13 → 0.1.14
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/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/paradox
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Deterministic documentation generator for TypeScript packages.
|
|
9
9
|
|
package/dist/docsSurface.d.ts
CHANGED
|
@@ -16,5 +16,11 @@ declare const _default: {
|
|
|
16
16
|
readonly summary: "Check package documentation generation.";
|
|
17
17
|
readonly capability: "docs.check";
|
|
18
18
|
}];
|
|
19
|
+
handlers: {
|
|
20
|
+
path: readonly ["docs"] | readonly ["docs", "write"] | readonly ["docs", "check"];
|
|
21
|
+
handler(): {
|
|
22
|
+
exitCode: number;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
19
25
|
};
|
|
20
26
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test';
|
|
2
|
+
import surface from './docsSurface.js';
|
|
3
|
+
describe('docs surface handlers', () => {
|
|
4
|
+
test('declares handlers for every command', () => {
|
|
5
|
+
expect(surface.handlers).toHaveLength(surface.commands.length);
|
|
6
|
+
});
|
|
7
|
+
});
|
package/dist/docsSurface.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
1
2
|
const packageName = '@ankhorage/paradox';
|
|
2
|
-
const packageVersion = '0.1.
|
|
3
|
+
const packageVersion = '0.1.13';
|
|
3
4
|
const commandList = [
|
|
4
5
|
{
|
|
5
6
|
path: ['docs'],
|
|
@@ -17,10 +18,18 @@ const commandList = [
|
|
|
17
18
|
capability: 'docs.check',
|
|
18
19
|
},
|
|
19
20
|
];
|
|
21
|
+
const handlers = commandList.map((command) => ({
|
|
22
|
+
path: command.path,
|
|
23
|
+
handler() {
|
|
24
|
+
const result = spawnSync('paradox', [], { stdio: 'inherit' });
|
|
25
|
+
return { exitCode: result.status ?? 1 };
|
|
26
|
+
},
|
|
27
|
+
}));
|
|
20
28
|
export default {
|
|
21
29
|
id: packageName,
|
|
22
30
|
category: 'docs',
|
|
23
31
|
version: packageVersion,
|
|
24
32
|
capabilities: ['docs.generate', 'docs.check'],
|
|
25
33
|
commands: commandList,
|
|
34
|
+
handlers,
|
|
26
35
|
};
|