-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typings): set correct typing for
tsconfig
/tsConfig
- Loading branch information
Showing
8 changed files
with
17,420 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ docs/ | |
presets/index.d.ts | ||
*.config.js | ||
.eslintrc.js | ||
src/tsconfig-raw.d.ts |
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const fs = require('fs') | ||
const { removeSync } = require('fs-extra') | ||
const { compile } = require('json-schema-to-typescript') | ||
const fetch = require('node-fetch') | ||
const path = require('path') | ||
|
||
const Paths = require('./lib/paths') | ||
|
||
const tsconfigRawPath = path.join(process.cwd(), 'src', 'tsconfig-raw.d.ts') | ||
removeSync(Paths.distDir) | ||
removeSync(tsconfigRawPath) | ||
|
||
void (async () => { | ||
const response = await fetch('https://json.schemastore.org/tsconfig') | ||
const tsconfigSchema = await response.json() | ||
const rawTsconfig = await compile(tsconfigSchema) | ||
fs.writeFileSync(tsconfigRawPath, rawTsconfig) | ||
})() |
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.