diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-16 17:17:16 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-16 17:19:42 +0100 |
commit | 41e5b788d9890a5bcb562e36f5a89a843d1e50fd (patch) | |
tree | ca1e01f8f62b0afcaaf2839a81a7f8d22a281106 | |
parent | b8a4afa4c2ba8ed8ebfc4530f002f0e5037a0cf3 (diff) | |
download | PeerTube-41e5b788d9890a5bcb562e36f5a89a843d1e50fd.tar.gz PeerTube-41e5b788d9890a5bcb562e36f5a89a843d1e50fd.tar.zst PeerTube-41e5b788d9890a5bcb562e36f5a89a843d1e50fd.zip |
Fix generate types package script
-rw-r--r-- | support/doc/development/lib.md | 2 | ||||
-rw-r--r-- | types/generate-package.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/support/doc/development/lib.md b/support/doc/development/lib.md index 097afa4fb..0c77cff56 100644 --- a/support/doc/development/lib.md +++ b/support/doc/development/lib.md | |||
@@ -18,7 +18,7 @@ The complete types package is generated via: | |||
18 | 18 | ||
19 | ``` | 19 | ``` |
20 | $ npm run generate-types-package | 20 | $ npm run generate-types-package |
21 | $ cd dist | 21 | $ cd types/dist |
22 | $ npm publish --access=public | 22 | $ npm publish --access=public |
23 | ``` | 23 | ``` |
24 | 24 | ||
diff --git a/types/generate-package.ts b/types/generate-package.ts index ae7937430..e20e9b624 100644 --- a/types/generate-package.ts +++ b/types/generate-package.ts | |||
@@ -12,7 +12,7 @@ run() | |||
12 | }) | 12 | }) |
13 | 13 | ||
14 | async function run () { | 14 | async function run () { |
15 | execSync('npm run build:types', { stdio: 'inherit' }) | 15 | execSync('npm run tsc -- -b --verbose types', { stdio: 'inherit' }) |
16 | 16 | ||
17 | const typesPath = resolve(cwd(), './types/') | 17 | const typesPath = resolve(cwd(), './types/') |
18 | const typesDistPath = resolve(cwd(), typesPath, './dist/') | 18 | const typesDistPath = resolve(cwd(), typesPath, './dist/') |