mirror of https://github.com/Chocobozzz/PeerTube
Add version to generate types packages
parent
6627dbc957
commit
21d68e6803
|
@ -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 } = mainPackageJson
|
||||
const typesPackageJson = {
|
||||
name: '@peertube/peertube-types',
|
||||
description,
|
||||
|
|
|
@ -41,7 +41,7 @@ findTestFiles () {
|
|||
}
|
||||
|
||||
if [ "$1" = "types-package" ]; then
|
||||
npm run generate-types-package
|
||||
npm run generate-types-package 0.0.0
|
||||
npm run tsc -- --noEmit --esModuleInterop packages/types/tests/test.ts
|
||||
elif [ "$1" = "client" ]; then
|
||||
npm run build
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ Typescript definition files generation is controlled by the various `tsconfig.ty
|
|||
The 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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue