diff --git a/bin/mastarm b/bin/mastarm index 75a99bf..6852948 100755 --- a/bin/mastarm +++ b/bin/mastarm @@ -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) diff --git a/bin/mastarm-flow b/bin/mastarm-flow deleted file mode 100755 index b09ca77..0000000 --- a/bin/mastarm-flow +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -$(dirname $0)/../node_modules/.bin/flow diff --git a/bin/mastarm-ts b/bin/mastarm-ts new file mode 100755 index 0000000..36b1785 --- /dev/null +++ b/bin/mastarm-ts @@ -0,0 +1,3 @@ +#!/bin/bash + +$(dirname $0)/../node_modules/.bin/tsc --jsx react diff --git a/tsconfig.json b/tsconfig.json index 194d0d1..6904c05 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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. */ @@ -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. */