mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add version to generate types packages
This commit is contained in:
parent
6627dbc957
commit
21d68e6803
4 changed files with 13 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue