-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b671a94
commit 865dd9a
Showing
11 changed files
with
299 additions
and
88 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
Empty file.
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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
const { parseTsconfig } = require('get-tsconfig'); | ||
const tests = [ | ||
() => parseTsconfig('./tsconfig.package.json'), | ||
() => parseTsconfig('./tsconfig.package-path.json'), | ||
() => parseTsconfig('./tsconfig.package-path-directory.json'), | ||
() => parseTsconfig('./tsconfig.org-package.json'), | ||
() => parseTsconfig('./tsconfig.missing-extends.json'), | ||
() => parseTsconfig('./tsconfig.invalid-extends.json'), | ||
]; | ||
|
||
for (const test of tests) { | ||
try { | ||
console.log(test()); | ||
} catch (error) { | ||
console.log('Error:', error.message); | ||
process.exitCode = 1; | ||
} | ||
const tsconfigPath = process.argv[2]; | ||
|
||
try { | ||
const parsed = parseTsconfig(tsconfigPath); | ||
console.log(JSON.stringify(parsed)); | ||
} catch (error) { | ||
console.error(error); | ||
} |
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
Oops, something went wrong.