Comparing version 0.0.47 to 0.0.48
{ | ||
"name": "traceur", | ||
"version": "0.0.47", | ||
"version": "0.0.48", | ||
"description": "ES6 to ES5 compiler", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"semver": "2.2.1", | ||
"traceur": "0.0.46", | ||
"traceur": "0.0.47", | ||
"promises-aplus-tests": "~2.0.4" | ||
@@ -51,0 +51,0 @@ }, |
@@ -45,2 +45,8 @@ // Copyright 2013 Traceur Authors. | ||
commandLine.option('--inline <fileName>', 'Parse as Module, format \'inline\'', | ||
function(fileName) { | ||
rootSources.push({name: fileName, type: 'module', format: 'inline'}); | ||
} | ||
); | ||
commandLine.option('--out <FILE>', 'Compile all input files into a single file'); | ||
@@ -47,0 +53,0 @@ commandLine.option('--dir <INDIR> <OUTDIR>', 'Compile an input directory of modules into an output directory'); |
@@ -181,2 +181,3 @@ // Copyright 2012 Traceur Authors. | ||
var name = input.name; | ||
var moduleOption = options.modules; | ||
if (input.type === 'script') { | ||
@@ -186,3 +187,5 @@ loadFunction = loader.loadAsScript; | ||
name = name.replace(/\.js$/,''); | ||
if (options.modules === 'register') | ||
if (input.format === 'inline') | ||
options.modules = 'inline'; | ||
else if (options.modules === 'register') | ||
doEvaluateModule = true; | ||
@@ -193,4 +196,6 @@ } | ||
function() { | ||
options.modules = moduleOption; | ||
if (doEvaluateModule) | ||
appendEvaluateModule(name, referrerName); | ||
loadCount++; | ||
@@ -197,0 +202,0 @@ if (loadCount < fileNamesAndTypes.length) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1015125
26270