Skip to content

Commit

Permalink
improvement(flow): change type checker from flow to typescript
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Flow is no longer supported

works towards conveyal#318
  • Loading branch information
miles-grant-ibigroup committed Jul 7, 2021
1 parent e7eb59a commit 431cee7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/mastarm
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ commander
)
.command('test [patterns...]', 'Run tests using Jest')
// TODO: this should exist
.command('typescript', 'Run typescript on the current directory.')
.command('ts', 'Run tsc on the current directory.')
.parse(process.argv)
3 changes: 0 additions & 3 deletions bin/mastarm-flow

This file was deleted.

3 changes: 3 additions & 0 deletions bin/mastarm-ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

$(dirname $0)/../node_modules/.bin/tsc --jsx react
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
Expand All @@ -22,7 +22,8 @@
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
"isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
"emitDeclarationOnly": true, /* Babel will convert the file */

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
Expand Down

0 comments on commit 431cee7

Please sign in to comment.