-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make type checking faster, type check entire repo at once
- Loading branch information
1 parent
22549d9
commit 00c5769
Showing
11 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ README.md | |
test | ||
ci | ||
docs | ||
/index.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as fs from 'fs-extra'; | ||
import * as path from 'path'; | ||
|
||
const BASE_DIR = path.resolve(__dirname, '..'); | ||
const DIST_DIR = path.resolve(BASE_DIR, 'dist'); | ||
const PACKAGES_DIR = path.resolve(BASE_DIR, 'packages'); | ||
|
||
(async () => { | ||
const dirsToLink = []; | ||
|
||
for (const subDir of await fs.readdir(PACKAGES_DIR)) { | ||
for (const packageDir of await fs.readdir(path.resolve(PACKAGES_DIR, subDir))) { | ||
dirsToLink.push(path.join(subDir, packageDir)); | ||
} | ||
} | ||
|
||
for (const dir of dirsToLink) { | ||
const targetDir = path.resolve(BASE_DIR, 'packages', dir, 'dist'); | ||
await fs.mkdirp(targetDir); | ||
await fs.copy(path.resolve(DIST_DIR, dir, 'src'), targetDir); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"test" | ||
"test", | ||
"index.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "packages" | ||
}, | ||
"exclude": [ | ||
"dist", | ||
"node_modules", | ||
"ci", | ||
"tools", | ||
"**/dist", | ||
"**/node_modules", | ||
"**/test", | ||
"packages/installer/**/typings/ambient.d.ts", | ||
"packages/maker/wix/typings/ambient.d.ts", | ||
] | ||
} |