@hia-doc/profiles 0.1.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.
@@ -0,0 +1,104 @@
1
+ {
2
+ "schemaVersion": "0.1.0-draft",
3
+ "profileId": "ts-jsdoc-bridge",
4
+ "profileVersion": "0.1.0-draft",
5
+ "displayName": "TypeScript to JSDoc Bridge",
6
+ "layer": "bridge",
7
+ "extends": ["jsdoc", "doc-source-map"],
8
+ "contracts": [
9
+ {
10
+ "name": "jsdoc-integration",
11
+ "version": "0.1.0",
12
+ "role": "produces"
13
+ },
14
+ {
15
+ "name": "doc-source-map",
16
+ "version": "0.1.0-draft",
17
+ "role": "produces"
18
+ }
19
+ ],
20
+ "targets": ["typescript-source", "generated-javascript", "jsdoc-doclet", "jsdoc-integration", "doc-source-map-manifest"],
21
+ "tags": [
22
+ {
23
+ "name": "typeParam",
24
+ "status": "experimental",
25
+ "scope": ["block"],
26
+ "targets": ["typescript-symbol", "jsdoc-doclet"],
27
+ "repeatable": true,
28
+ "valueGrammar": "type-parameter-name [description]",
29
+ "mapsTo": { "field": "typeParameters" },
30
+ "metadata": { "bridgeOnly": true }
31
+ }
32
+ ],
33
+ "rules": [
34
+ {
35
+ "ruleId": "ts-jsdoc/type-only-symbol-policy",
36
+ "category": "bridge",
37
+ "defaultSeverity": "info",
38
+ "optionsSchema": {
39
+ "type": "object",
40
+ "properties": {
41
+ "typeOnlySymbolPolicy": { "enum": ["artifact-only", "metadata", "core-symbol"] }
42
+ },
43
+ "additionalProperties": false
44
+ },
45
+ "appliesTo": ["typescript-symbol"],
46
+ "messages": { "default": "Type-only symbols stay in TS extraction artifact or metadata in P1." },
47
+ "fixable": false,
48
+ "hasSuggestions": false
49
+ },
50
+ {
51
+ "ruleId": "ts-jsdoc/generated-js-linkage",
52
+ "category": "source-map",
53
+ "defaultSeverity": "warning",
54
+ "optionsSchema": { "type": "object", "additionalProperties": false },
55
+ "appliesTo": ["doc-source-map-entry", "ordinary-source-map"],
56
+ "messages": { "default": "TypeScript to JSDoc bridge should preserve generated JS linkage." },
57
+ "fixable": false,
58
+ "hasSuggestions": true
59
+ }
60
+ ],
61
+ "mappings": [
62
+ {
63
+ "from": "typescript-symbol",
64
+ "to": "jsdoc-doclet",
65
+ "conditions": ["runtime-symbol-or-exported-declaration"],
66
+ "confidence": "high",
67
+ "sourcePolicy": "prefer-typescript-source-range",
68
+ "metadataPolicy": "preserve-type-metadata",
69
+ "diagnostics": []
70
+ },
71
+ {
72
+ "from": "typescript-type-only-symbol",
73
+ "to": "adapter-metadata:type-only-symbol",
74
+ "conditions": ["not-runtime-symbol"],
75
+ "confidence": "medium",
76
+ "sourcePolicy": "preserve-typescript-source-range",
77
+ "metadataPolicy": "do-not-promote-to-core-kind",
78
+ "diagnostics": ["TS_JSDOC_TYPE_ONLY_SYMBOL_DEFERRED"]
79
+ }
80
+ ],
81
+ "diagnostics": [
82
+ {
83
+ "code": "TS_JSDOC_TYPE_ONLY_SYMBOL_DEFERRED",
84
+ "severity": "info",
85
+ "messageKey": "tsJsdoc.typeOnlySymbolDeferred",
86
+ "defaultMessage": "Type-only symbol is kept in TS extraction artifact or adapter metadata in P1.",
87
+ "target": "bridge"
88
+ },
89
+ {
90
+ "code": "TS_JSDOC_GENERATED_LINKAGE_MISSING",
91
+ "severity": "warning",
92
+ "messageKey": "tsJsdoc.generatedLinkageMissing",
93
+ "defaultMessage": "Generated JS linkage is missing for a TypeScript documentation entry.",
94
+ "target": "doc-source-map-entry"
95
+ }
96
+ ],
97
+ "capabilities": {
98
+ "completion": { "tags": true },
99
+ "hover": { "tags": true, "entries": true },
100
+ "diagnostics": ["TS_JSDOC_TYPE_ONLY_SYMBOL_DEFERRED", "TS_JSDOC_GENERATED_LINKAGE_MISSING"],
101
+ "sourceMap": { "index": true, "locations": true },
102
+ "renderer": { "views": ["js", "all"] }
103
+ }
104
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@hia-doc/profiles",
3
+ "version": "0.1.0",
4
+ "description": "Official documentation profile distribution for HIA documentation tools.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/mandolin/HIA-Documentation.git",
9
+ "directory": "packages/profiles"
10
+ },
11
+ "engines": {
12
+ "node": ">=20.19.0"
13
+ },
14
+ "type": "module",
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./catalog.json": "./dist/catalog.json",
23
+ "./cssdoc.profile.json": "./dist/profiles/cssdoc.profile.json",
24
+ "./doc-source-map.profile.json": "./dist/profiles/doc-source-map.profile.json",
25
+ "./htmdoc.profile.json": "./dist/profiles/htmdoc.profile.json",
26
+ "./jsdoc.profile.json": "./dist/profiles/jsdoc.profile.json",
27
+ "./pug-htmdoc-bridge.profile.json": "./dist/profiles/pug-htmdoc-bridge.profile.json",
28
+ "./sass-cssdoc-bridge.profile.json": "./dist/profiles/sass-cssdoc-bridge.profile.json",
29
+ "./ts-jsdoc-bridge.profile.json": "./dist/profiles/ts-jsdoc-bridge.profile.json",
30
+ "./package.json": "./package.json"
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "README.md",
35
+ "LICENSE"
36
+ ],
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "dependencies": {
41
+ "@hia-doc/profile": "0.1.0"
42
+ },
43
+ "sideEffects": false,
44
+ "scripts": {
45
+ "build": "tsc -p tsconfig.json",
46
+ "test": "vitest run --root ../.. packages/profiles/src/index.test.ts"
47
+ }
48
+ }