Skip to content

Commit 841ee0b

Browse files
committed
Merge branch 'master' into issue-161
2 parents 59a1be1 + f233eb6 commit 841ee0b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ MIT
122122

123123
# Changelog
124124

125+
* 1.0.3 - Fixed a bug introduced in 1.0.2 (that resulted in the `target` being set to `ES3`).
125126
* 1.0.2 - Added support for the TypeScript compiler's short-name, command-line options (e.g. `-p`).
126127
* 1.0.1 - On Windows, sometimes, the Browserify `basedir` contains backslashes that need normalization for findConfigFile to work correctly.
127128
* 1.0.0 - **Breaking**: TypeScript is now a `devDependency` so we don't install one for you. Please run `npm install typescript --save-dev` in your project to use whatever version you want.

lib/Tsifier.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ module.exports = function (ts) {
5454
function parseOptions(opts, bopts) {
5555

5656
// Expand any short-name, command-line options
57-
opts = Object.assign({
58-
module: opts.m,
59-
project: opts.p,
60-
target: opts.t
61-
}, opts);
57+
var expanded = {};
58+
if (opts.m) { expanded.module = opts.m; }
59+
if (opts.p) { expanded.project = opts.p; }
60+
if (opts.t) { expanded.target = opts.t; }
61+
opts = Object.assign(expanded, opts);
6262

6363
var configFile;
6464
if (fileExists(opts.project)) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tsify",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Browserify plugin for compiling Typescript",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)