diff --git a/.changeset/cold-years-listen.md b/.changeset/cold-years-listen.md new file mode 100644 index 00000000..933b011e --- /dev/null +++ b/.changeset/cold-years-listen.md @@ -0,0 +1,5 @@ +--- +"@openstapps/easy-ast": patch +--- + +Fixed docs generation diff --git a/package.json b/package.json index 2b410f53..314e5d22 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "deploy": "dotenv -c -- turbo run deploy --concurrency=1", "dev": "dotenv -c -- turbo run dev", "docs": "dotenv -c -- turbo run docs && typedoc && mkdir docs/api && cp packages/core/lib/api-doc.html docs/api/index.html && cp packages/core/lib/openapi.json docs/api/openapi.json && cp -r packages/core/lib/schema docs/api/schema", + "docs:serve": "http-server docs -p 8080 -o", "format": "dotenv -c -- turbo run format", "format:fix": "dotenv -c -- turbo run format:fix", "lint": "dotenv -c -- turbo run lint", @@ -34,6 +35,7 @@ "deepmerge": "4.3.1", "dotenv-cli": "7.2.1", "glob": "10.3.10", + "http-server": "14.1.1", "junit-report-merger": "6.0.3", "prettier": "3.1.1", "syncpack": "12.3.0", diff --git a/packages/easy-ast/test/project/alias-like.ast-test.ts b/packages/easy-ast/test/project/alias-like.ast-test.ts index 6339ebac..2d762c33 100644 --- a/packages/easy-ast/test/project/alias-like.ast-test.ts +++ b/packages/easy-ast/test/project/alias-like.ast-test.ts @@ -17,10 +17,8 @@ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; import {TypeFlags} from 'typescript'; -// @ts-expect-error unused type type TestTypeAlias = number | string; -// @ts-expect-error unused type enum TestEnum { Foo, Bar, diff --git a/packages/easy-ast/test/project/array-like.ast-test.ts b/packages/easy-ast/test/project/array-like.ast-test.ts index 45dd05a7..ac636df1 100644 --- a/packages/easy-ast/test/project/array-like.ast-test.ts +++ b/packages/easy-ast/test/project/array-like.ast-test.ts @@ -18,13 +18,9 @@ import {LightweightDefinitionKind} from '../../src/index.js'; interface Random {} -// @ts-expect-error unused type type TestArrayGeneric = Array; -// @ts-expect-error unused type type TestArrayLiteral = number[]; -// @ts-expect-error unused type type TestArrayReferenceGeneric = Array; -// @ts-expect-error unused type type TestArrayReferenceLiteral = Random[]; export const testConfig: EasyAstSpecType = { diff --git a/packages/easy-ast/test/project/class-like.ast-test.ts b/packages/easy-ast/test/project/class-like.ast-test.ts index 5df79e98..b4a8a50e 100644 --- a/packages/easy-ast/test/project/class-like.ast-test.ts +++ b/packages/easy-ast/test/project/class-like.ast-test.ts @@ -16,12 +16,10 @@ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; -// @ts-expect-error unused type interface TestInterface { foo: number; } -// @ts-expect-error unused type class TestClass { bar: string = 'test'; } diff --git a/packages/easy-ast/test/project/comment.ast-test.ts b/packages/easy-ast/test/project/comment.ast-test.ts index cb28a281..6a004a9d 100644 --- a/packages/easy-ast/test/project/comment.ast-test.ts +++ b/packages/easy-ast/test/project/comment.ast-test.ts @@ -22,10 +22,8 @@ import {LightweightDefinitionKind} from '../../src/index.js'; * Class description * * More description - * * @classTag classParameter1 classParameter2 */ -// @ts-expect-error unused type interface TestInterface { /** * Property comment @@ -33,7 +31,6 @@ interface TestInterface { * Property description * * More description - * * @propertyTag propertyParameter1 propertyParameter2 */ foo: string; @@ -45,10 +42,8 @@ interface TestInterface { * Class description * * More description - * * @classTag classParameter1 classParameter2 */ -// @ts-expect-error unused type class TestClass { /** * Property comment @@ -56,7 +51,6 @@ class TestClass { * Property description * * More description - * * @propertyTag propertyParameter1 propertyParameter2 */ foo = 1; @@ -68,10 +62,8 @@ class TestClass { * Enum description * * More description - * * @enumTag enumParameter1 */ -// @ts-expect-error unused type enum TestAlias {} export const testConfig: EasyAstSpecType = { diff --git a/packages/easy-ast/test/project/default-generics.ast-test.ts b/packages/easy-ast/test/project/default-generics.ast-test.ts index eaffac2f..5f3a46c6 100644 --- a/packages/easy-ast/test/project/default-generics.ast-test.ts +++ b/packages/easy-ast/test/project/default-generics.ast-test.ts @@ -20,7 +20,6 @@ interface Test1 { foo: T; } -// @ts-expect-error unused type interface Test2 { bar: Test1; } diff --git a/packages/easy-ast/test/project/enum-specified-value.ast-test.ts b/packages/easy-ast/test/project/enum-specified-value.ast-test.ts index dc7d2950..72da7258 100644 --- a/packages/easy-ast/test/project/enum-specified-value.ast-test.ts +++ b/packages/easy-ast/test/project/enum-specified-value.ast-test.ts @@ -17,13 +17,11 @@ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; import {TypeFlags} from 'typescript'; -// @ts-expect-error unused type enum TestAuto { Foo, Bar, } -// @ts-expect-error unused type enum TestSpecified { YES = 'yes', NO = 'no', diff --git a/packages/easy-ast/test/project/generics.ast-test.ts b/packages/easy-ast/test/project/generics.ast-test.ts index dd8a20a5..ad74081f 100644 --- a/packages/easy-ast/test/project/generics.ast-test.ts +++ b/packages/easy-ast/test/project/generics.ast-test.ts @@ -18,7 +18,6 @@ import {LightweightDefinitionKind} from '../../src/index.js'; interface $Random {} -// @ts-expect-error unused type interface Generics { baz: Foo; } diff --git a/packages/easy-ast/test/project/index-signature.ast-test.ts b/packages/easy-ast/test/project/index-signature.ast-test.ts index 201660ca..d9ce71ea 100644 --- a/packages/easy-ast/test/project/index-signature.ast-test.ts +++ b/packages/easy-ast/test/project/index-signature.ast-test.ts @@ -18,12 +18,10 @@ import {LightweightDefinitionKind} from '../../src/index.js'; interface $Random {} -// @ts-expect-error unused interface IndexSignatureObject { [key: string]: $Random; } -// @ts-expect-error unused interface IndexSignaturePrimitive { [key: string]: number; } diff --git a/packages/easy-ast/test/project/ineritance.ast-test.ts b/packages/easy-ast/test/project/ineritance.ast-test.ts index 76ce7ec3..7ff81508 100644 --- a/packages/easy-ast/test/project/ineritance.ast-test.ts +++ b/packages/easy-ast/test/project/ineritance.ast-test.ts @@ -26,7 +26,6 @@ interface $BaseInterface2 { class $BaseClass {} -// @ts-expect-error unused class InheritingClass extends $BaseClass implements $BaseInterface, $BaseInterface2 { bar: string = ''; diff --git a/packages/easy-ast/test/project/nested.ast-test.ts b/packages/easy-ast/test/project/nested.ast-test.ts index a85c740a..9399b70b 100644 --- a/packages/easy-ast/test/project/nested.ast-test.ts +++ b/packages/easy-ast/test/project/nested.ast-test.ts @@ -16,7 +16,6 @@ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; -// @ts-expect-error unused interface NestedObject { nested: { deeplyNested: { diff --git a/packages/easy-ast/test/project/primitive-types.ast-test.ts b/packages/easy-ast/test/project/primitive-types.ast-test.ts index ace09bc1..ea478727 100644 --- a/packages/easy-ast/test/project/primitive-types.ast-test.ts +++ b/packages/easy-ast/test/project/primitive-types.ast-test.ts @@ -17,7 +17,6 @@ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; import {TypeFlags} from 'typescript'; -// @ts-expect-error unused interface Test { number_type: number; string_type: string; diff --git a/packages/easy-ast/test/project/stack-overflow.ast-test.ts b/packages/easy-ast/test/project/stack-overflow.ast-test.ts index 60a532a2..d2b4dd9c 100644 --- a/packages/easy-ast/test/project/stack-overflow.ast-test.ts +++ b/packages/easy-ast/test/project/stack-overflow.ast-test.ts @@ -16,7 +16,6 @@ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; -// @ts-expect-error unused interface Foo> { bar: T; } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7070167e..b745a89d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ importers: glob: specifier: 10.3.10 version: 10.3.10 + http-server: + specifier: 14.1.1 + version: 14.1.1 junit-report-merger: specifier: 6.0.3 version: 6.0.3 @@ -11751,6 +11754,7 @@ packages: peerDependenciesMeta: debug: optional: true + dev: false /follow-redirects@1.15.6: resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} @@ -12655,7 +12659,7 @@ packages: engines: {node: '>=8.0.0'} dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.15.3 + follow-redirects: 1.15.6 requires-port: 1.0.0 transitivePeerDependencies: - debug