Closed
Description
Given:
// tsconfig.json
{
"compilerOptions": {
"noImplicitAny": true,
"module": "commonjs"
}
}
// main.ts
/// <reference path="./node_modules/immutable/dist/immutable.d.ts" />
import * as Im from 'immutable';
// package.json
{
"private": true,
"dependencies": {
"immutable": "^3.7.5",
"typescript": "^1.6.2"
}
}
My tsconfig.json
doesn't appear to be read by tsc
:
$ ./node_modules/.bin/tsc main.ts
main.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided.
Am I missing something?