ActivityPub-federated video streaming platform using P2P directly in your web browser
Add version to generate types packages
Chocobozzz21d68e68039a
diff --git a/packages/types/generate-package.ts b/packages/types/generate-package.tsindex 0c14514e7f..853989d684 100644--- a/packages/types/generate-package.ts+++ b/packages/types/generate-package.ts@@ -4,6 +4,14 @@ import { copyFile, readJson, remove, writeFile, writeJSON } from 'fs-extra'import { resolve } from 'path'import { cwd } from 'process'+if (!process.argv[2]) {+ console.error('Need version as argument')+ process.exit(-1)+}++const version = process.argv[2]+console.log('Will generate package version %s.', version)+run().then(() => process.exit(0)).catch(err => {@@ -52,7 +60,7 @@ async function run () {return dependencies}, {})- const { description, version, licence, engines, author, repository } = mainPackageJson+ const { description, licence, engines, author, repository } = mainPackageJsonconst typesPackageJson = {name: '@peertube/peertube-types',description,diff --git a/scripts/ci.sh b/scripts/ci.shindex 5b757d94b3..b0b76ca99e 100755--- a/scripts/ci.sh+++ b/scripts/ci.sh@@ -41,7 +41,7 @@ findTestFiles () {}if [ "$1" = "types-package" ]; then- npm run generate-types-package+ npm run generate-types-package 0.0.0npm run tsc -- --noEmit --esModuleInterop packages/types/tests/test.tselif [ "$1" = "client" ]; thennpm run builddiff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.tsindex bb3024617f..0bd474c09d 100644--- a/server/tests/api/notifications/user-notifications.ts+++ b/server/tests/api/notifications/user-notifications.ts@@ -125,7 +125,7 @@ describe('Test user notifications', function () {})it('Should not send a notification before the video is published', async function () {- this.timeout(50000)+ this.timeout(150000)const updateAt = new Date(new Date().getTime() + 1000000)diff --git a/support/doc/development/lib.md b/support/doc/development/lib.mdindex 0c77cff563..c43edbacc7 100644--- a/support/doc/development/lib.md+++ b/support/doc/development/lib.md@@ -17,8 +17,8 @@ Typescript definition files generation is controlled by the various `tsconfig.tyThe complete types package is generated via:```-$ npm run generate-types-package-$ cd types/dist+$ npm run generate-types-package 4.x.x+$ cd packages/types/dist$ npm publish --access=public```