From 8b03e2ce1a2098261de2f729f660b1ae2a320b65 Mon Sep 17 00:00:00 2001 From: lutangar Date: Tue, 9 Nov 2021 13:49:08 +0100 Subject: feat(types): create peertube-types package Create dedicated Typescript "types" configuration file for each "projects". Create a types folder which includes every useful ts definition: - client - server - shared Add tooling to create a proper package, extract dependencies, etc... Add CI Github task. refactor(types): publish types package in release script --- support/doc/development/lib.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'support/doc/development') diff --git a/support/doc/development/lib.md b/support/doc/development/lib.md index 6b0372150..9c67a39dd 100644 --- a/support/doc/development/lib.md +++ b/support/doc/development/lib.md @@ -8,3 +8,16 @@ $ cd client/src/standalone/player/ $ npm run build ``` + +## @peertube/peertube-types + +Typescript definition files generation is controlled by the various `tsconfig.types.json` files, see: +``` +yarn tsc -b --verbose tsconfig.types.json +``` + +But the complete types package is generated via: +``` +yarn generate-types-package +``` +> See [scripts/generate-types-package.ts](scripts/generate-types-package.ts) for details. -- cgit v1.2.3