Package Exports
- broccoli-typescript-compiler
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (broccoli-typescript-compiler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
broccoli-typescript-compiler
A Broccoli plugin which compiles TypeScript files.
How to install?
$ npm install broccoli-typescript-compiler --save-devHow to use?
var typescript = require('broccoli-typescript-compiler').typescript;
var cjsTree = typescript(inputTree, {
tsconfig: {,
compilerOptions: {
module: "commonjs",
target: "es5",
moduleResolution: "node",
newLine: "LF",
rootDir: "src",
outDir: "dist",
sourceMap: true,
declaration: true
},
files: [
"src/index.ts",
"src/tests/**"
]
},
annotation: "compile program"
});The broccoli plugin class
var TypeScript = require('broccoli-typescript-compiler').TypeScript;Legacy filter behavior (compile all .ts files and only .ts and passthrough everything else).
var filter = require('broccoli-typescript-compiler');
var scriptTree = filter(inputTree);