{"_id":"ts-compiler","_rev":"3348552","name":"ts-compiler","description":"TypeScript compilation via the typescript-api","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"time":{"modified":"2024-08-07T03:56:42.000Z","created":"2014-01-25T18:00:09.310Z","2.0.0":"2014-04-03T05:50:08.811Z","1.1.0":"2014-02-26T05:40:29.365Z","1.0.5":"2014-02-22T01:06:28.976Z","1.0.4":"2014-02-22T01:00:43.051Z","1.0.3":"2014-02-22T00:51:20.238Z","1.0.2":"2014-02-15T20:40:09.169Z","1.0.1":"2014-02-15T17:49:05.258Z","1.0.0":"2014-02-15T17:41:07.682Z","0.1.0":"2014-01-25T18:00:09.310Z"},"users":{},"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"versions":{"2.0.0":{"name":"ts-compiler","version":"2.0.0","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~1.0","typescript-api":"~1.0"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@2.0.0","dist":{"shasum":"5869214abba21ee861a0e84c7b495c13d19a2ef5","size":5383,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-2.0.0.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v2.0.0.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v2.0.0.tar.gz","_npmVersion":"1.4.3","_npmUser":{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1396504208811,"_hasShrinkwrap":false,"_cnpm_publish_time":1396504208811,"_cnpmcore_publish_time":"2021-12-16T18:38:53.576Z"},"1.1.0":{"name":"ts-compiler","version":"1.1.0","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.7","typescript-api":"~0.9.7"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.1.0","dist":{"shasum":"bdaa7da36db7304157ac2eb485b8163b8f2f7e32","size":5502,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.1.0.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.1.0.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.1.0.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1393393229365,"_hasShrinkwrap":false,"_cnpm_publish_time":1393393229365,"_cnpmcore_publish_time":"2021-12-16T18:38:53.767Z"},"1.0.5":{"name":"ts-compiler","version":"1.0.5","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.0.5","dist":{"shasum":"e0afc9740017359c8438ea23096eec67a04bb15d","size":5502,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.0.5.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.0.5.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.0.5.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1393031188976,"_hasShrinkwrap":false,"_cnpm_publish_time":1393031188976,"_cnpmcore_publish_time":"2021-12-16T18:38:54.012Z"},"1.0.4":{"name":"ts-compiler","version":"1.0.4","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.0.4","dist":{"shasum":"50b7056f5e022a63706ac3c875c9b34c5572a306","size":5501,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.0.4.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.0.4.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.0.4.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1393030843051,"_hasShrinkwrap":false,"_cnpm_publish_time":1393030843051,"_cnpmcore_publish_time":"2021-12-16T18:38:54.264Z"},"1.0.3":{"name":"ts-compiler","version":"1.0.3","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.0.3","dist":{"shasum":"3bcf66fb8e0fe8ecfdaeac1797fa66f8d397d355","size":5501,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.0.3.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.0.3.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.0.3.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1393030280238,"_hasShrinkwrap":false,"_cnpm_publish_time":1393030280238,"_cnpmcore_publish_time":"2021-12-16T18:38:54.488Z"},"1.0.2":{"name":"ts-compiler","version":"1.0.2","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.0.2","dist":{"shasum":"7647ac7262cc71f9b5477feff3edeaf8bb132738","size":7409,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.0.2.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.0.2.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.0.2.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1392496809169,"_hasShrinkwrap":false,"_cnpm_publish_time":1392496809169,"_cnpmcore_publish_time":"2021-12-16T18:38:54.693Z"},"1.0.1":{"name":"ts-compiler","version":"1.0.1","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.9.0","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.9.0","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.8.2","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.0.1","dist":{"shasum":"6ec7e061750507f2ee1e64d1a86e9ce8d348485e","size":7404,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.0.1.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.0.1.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.0.1.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1392486545258,"_hasShrinkwrap":false,"_cnpm_publish_time":1392486545258,"_cnpmcore_publish_time":"2021-12-16T18:38:54.897Z"},"1.0.0":{"name":"ts-compiler","version":"1.0.0","description":"TypeScript compilation via the typescript-api","main":"tsc.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.8.1","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.7.3","sinon-chai":"~2.4.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@1.0.0","dist":{"shasum":"61ebd9be05a3e1bb9bae71052c6acc3f5bcf6c43","size":8273,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-1.0.0.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v1.0.0.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v1.0.0.tar.gz","_npmVersion":"1.3.24","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1392486067682,"_hasShrinkwrap":false,"_cnpm_publish_time":1392486067682,"_cnpmcore_publish_time":"2021-12-16T18:38:55.115Z"},"0.1.0":{"name":"ts-compiler","version":"0.1.0","description":"TypeScript compilation via the typescript-api","main":"ts-compiler.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/jedmao/ts-compiler.git"},"keywords":["typescript","compiler","language","microsoft"],"author":{"name":"Jed Mao","email":"jed.hunsaker+npm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"homepage":"https://github.com/jedmao/ts-compiler","dependencies":{"promise-ts":"~0.1.0","simple-glob":"~0.1.0","typescript":"~0.9.5","typescript-api":"~0.9.5"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","grunt-contrib-clean":"~0.5.0","grunt-contrib-watch":"~0.5.3","grunt-mocha-test":"~0.8.1","grunt-typescript":"~0.2.7","mocha":"~1.17.0","sinon":"~1.7.3","sinon-chai":"~2.4.0"},"engines":{"node":">=0.10.24"},"_id":"ts-compiler@0.1.0","dist":{"shasum":"ecbbe7522aa0fd675b559c7a631e012932b8eea3","size":7387,"noattachment":false,"key":"/ts-compiler/-/ts-compiler-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-compiler/download/ts-compiler-0.1.0.tgz"},"_from":"https://github.com/jedmao/ts-compiler/archive/v0.1.0.tar.gz","_resolved":"https://github.com/jedmao/ts-compiler/archive/v0.1.0.tar.gz","_npmVersion":"1.3.21","_npmUser":{"name":"jedhunsaker","email":"jed.hunsaker@gmail.com"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1390672809310,"_hasShrinkwrap":false,"_cnpm_publish_time":1390672809310,"_cnpmcore_publish_time":"2021-12-16T18:38:55.339Z"}},"readme":"# ts-compiler\n\n> TypeScript compilation via the [typescript-api][].\n\nThis version is compatable with TypeScript 1.0.\n\n[![Build Status][]](http://travis-ci.org/jedmao/ts-compiler)\n[![Dependency Status][]](https://gemnasium.com/jedmao/ts-compiler)\n[![NPM version][]](http://badge.fury.io/js/ts-compiler)\n[![Views][]](https://sourcegraph.com/github.com/jedmao/ts-compiler)\n\n[![NPM][]](https://nodei.co/npm/ts-compiler/)\n\n\n## TypeScript Usage\n\n```ts\n/// <reference path=\"node_modules/ts-compiler/ts-compiler.d.ts\" />\nimport ts = require('ts-compiler');\n\nts.compile(\n  ['foo.ts', 'bar.ts'],\n  { skipWrite: true },\n  (err: Error, results: ts.OutputFile[]) => {\n\n    var foo = results[0];\n    console.log(foo.text);\n\n    var bar = results[1];\n    console.log(bar.text);\n  });\n```\n\n\n## JavaScript Usage\n\n```js\nvar ts = require('ts-compiler');\n\nts.compile(\n  ['foo.ts', 'bar.ts'],\n  { skipWrite: true },\n  function(err, results) {\n\n    var foo = results[0];\n    console.log(foo.text);\n\n    var bar = results[1];\n    console.log(bar.text);\n});\n```\n\n\n## Module API\n\n\n### ts.compile(files: string[], options?: ICompilerOptions, callback?: Function): BatchCompiler\n\n- This is a shorthand way to call `new ts.BatchCompiler.compile(...)`\n- Callback signature is err: Error, results: [ts.OutputFile](#tsoutputfile) Array.\n- The options follow the [ICompilerOptions interface](#tsicompileroptions).\n- Emits `error` and `info` events.\n\n\n### ts.OutputFile\n\n- name: string\n- writeByteOrderMark: boolean\n- text: string\n- fileType: (0: JavaScript, 1: SourceMap, 2: Declaration)\n- sourceMapEntries: SourceMapEntry[]\n\n\n### ts.ICompilerOptions\n\nThough all natively supported TypeScript compiler options will be passed through to the real compiler, it might not always make sense from an API standpoint. Use with common sense.\n\n\n#### options.declaration\n- Type: `Boolean`\n- Default: `false`\n\nGenerates corresponding .d.ts file.\n\n#### options.mapRoot\n- Type: `String`\n\nSpecifies the location where debugger should locate map files instead of generated locations.\n\n#### options.module\n- Type: `String`\n\nSpecify module code generation: `commonjs` or `amd`\n\n#### options.noImplicitAny\n- Type: `Boolean`\n- Default: `false`\n\nWarn on expressions and declarations with an implied `any` type.\n\n#### options.noResolve\n- Type: `Boolean`\n- Default: `false`\n\nSkip resolution and preprocessing.\n\n#### options.out\n- Type: `String`\n\nConcatenate and emit output to single file.\n\n#### options.outDir\n- Type: `String`\n\nRedirect output structure to the directory.\n\n#### options.removeComments\n- Type: `Boolean`\n- Default: `false`\n\nDo not emit comments to output.\n\n#### options.sourcemap\n- Type: `Boolean`\n- Default: `false`\n\nGenerates corresponding .map file.\n\n#### options.sourceRoot\n- Type: `String`\n\nSpecifies the location where debugger should locate TypeScript files instead of source locations.\n\n#### options.target\n- Type: `String`\n- Default: `ES3`\n\nSpecify ECMAScript target version: 'ES3' or 'ES5'\n\n#### options.optionsFile\n- Type: `String`\n\nInsert command line options and files from a file. This is natively supported by the tsc command, but as a different @file key.\n\n#### skipWrite\n- Type: `Boolean`\n- Default: `false`\n\nSkips writing the output files. This flag is unique to ts-compiler.\n\n\n## License\n\nReleased under the MIT license.\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/jedmao/ts-compiler/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n\n[typescript-api]: https://github.com/jedmao/typescript-api\n[Build Status]: https://secure.travis-ci.org/jedmao/ts-compiler.png?branch=master\n[Dependency Status]: https://gemnasium.com/jedmao/ts-compiler.png\n[NPM version]: https://badge.fury.io/js/ts-compiler.png\n[Views]: https://sourcegraph.com/api/repos/github.com/jedmao/ts-compiler/counters/views-24h.png\n[NPM]: https://nodei.co/npm/ts-compiler.png?downloads=true\n","_attachments":{},"homepage":"https://github.com/jedmao/ts-compiler","bugs":{"url":"https://github.com/jedmao/ts-compiler/issues"},"license":"MIT"}