Skip to content

Commit 668a046

Browse files
committed
build: remove tsconfig for all packages
We should rely on having a single tsconfig which builds everything, and using the build logic to only get what we want in the right places.
1 parent 5e97cd4 commit 668a046

File tree

10 files changed

+1658
-79
lines changed

10 files changed

+1658
-79
lines changed

lib/packages.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88
'use strict';
99

10-
import * as fs from 'fs';
1110
import * as glob from 'glob';
1211
import * as path from 'path';
1312

@@ -22,7 +21,7 @@ export interface PackageInfo {
2221
relative: string;
2322
main: string;
2423
dist: string;
25-
tsConfig?: string;
24+
build: string;
2625
packageJson: string;
2726
dependencies: string[];
2827
}
@@ -52,19 +51,14 @@ export const packages: PackageMap =
5251
bin[binName] = path.resolve(pkg.root, pkgJson['bin'][binName]);
5352
});
5453

55-
let tsConfig: string | undefined = path.resolve(pkgRoot, 'tsconfig.json');
56-
if (!fs.existsSync(tsConfig)) {
57-
tsConfig = undefined;
58-
}
59-
6054
packages[name] = {
55+
build: path.join(distRoot, pkgRoot.substr(path.dirname(__dirname).length)),
6156
dist: path.join(distRoot, name),
6257
packageJson: path.join(pkgRoot, 'package.json'),
6358
root: pkgRoot,
6459
relative: path.relative(path.dirname(__dirname), pkgRoot),
6560
main: path.resolve(pkgRoot, 'src/index.ts'),
6661
bin,
67-
tsConfig,
6862
name,
6963
dependencies: []
7064
};

0 commit comments

Comments
 (0)