diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-24 13:16:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-24 13:28:33 +0100 |
commit | b969539c838ae3012d7a7040c5e310bb9c834e95 (patch) | |
tree | 821495c8457b19f5595c73e5778e30f6bc6a6cc7 /types/generate-package.ts | |
parent | 499be42ca2e03d73fef2f9501d121d830137bd6b (diff) | |
download | PeerTube-b969539c838ae3012d7a7040c5e310bb9c834e95.tar.gz PeerTube-b969539c838ae3012d7a7040c5e310bb9c834e95.tar.zst PeerTube-b969539c838ae3012d7a7040c5e310bb9c834e95.zip |
Fix types dist paths
Diffstat (limited to 'types/generate-package.ts')
-rw-r--r-- | types/generate-package.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/types/generate-package.ts b/types/generate-package.ts index a4f049a31..ae061f9b0 100644 --- a/types/generate-package.ts +++ b/types/generate-package.ts | |||
@@ -23,6 +23,7 @@ async function run () { | |||
23 | 23 | ||
24 | await remove(typesDistPath) | 24 | await remove(typesDistPath) |
25 | execSync('npm run tsc -- -b --verbose types', { stdio: 'inherit' }) | 25 | execSync('npm run tsc -- -b --verbose types', { stdio: 'inherit' }) |
26 | execSync(`npm run resolve-tspaths -- --project ${distTsConfigPath} --src ${typesDistPath} --out ${typesDistPath}`, { stdio: 'inherit' }) | ||
26 | 27 | ||
27 | const allDependencies = Object.assign( | 28 | const allDependencies = Object.assign( |
28 | mainPackageJson.dependencies, | 29 | mainPackageJson.dependencies, |
@@ -69,9 +70,5 @@ async function run () { | |||
69 | console.log(`Writing git ignore to ${typesDistGitIgnorePath}`) | 70 | console.log(`Writing git ignore to ${typesDistGitIgnorePath}`) |
70 | await writeFile(typesDistGitIgnorePath, '*.tsbuildinfo') | 71 | await writeFile(typesDistGitIgnorePath, '*.tsbuildinfo') |
71 | 72 | ||
72 | console.log('Copying tsconfig files') | ||
73 | await copyFile(distTsConfigPath, resolve(typesDistPath, './tsconfig.json')) | ||
74 | await copyFile(resolve(cwd(), './tsconfig.base.json'), resolve(typesDistPath, './tsconfig.base.json')) | ||
75 | |||
76 | await copyFile(resolve(typesPath, './README.md'), resolve(typesDistPath, './README.md')) | 73 | await copyFile(resolve(typesPath, './README.md'), resolve(typesDistPath, './README.md')) |
77 | } | 74 | } |