Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

longReporter and fullReporter are not using custom typescript #487

Closed
a8775 opened this issue Feb 21, 2017 · 0 comments
Closed

longReporter and fullReporter are not using custom typescript #487

a8775 opened this issue Feb 21, 2017 · 0 comments
Labels

Comments

@a8775
Copy link

a8775 commented Feb 21, 2017

I can set custom typescript compiler eg:

var tsProject = ts.createProject('tsconfig.json', {
    typescript: require('requireg')('typescript')
});

When using defaultReporter and nullReporter compilation is working fine.

When you switch to the longReporter or fullReporter the custom typescript compiler is not used any more.

Full example of gulpfile:

var gulp = require('gulp');
var ts = require('gulp-typescript');
var sourcemaps = require('gulp-sourcemaps');


var tsProject = ts.createProject('tsconfig.json', {
    typescript: require('requireg')('typescript')
});


gulp.task('default', ['build']);

gulp.task('build', function () {
    var tsResult = tsProject.src()
        .pipe(tsProject(
            ts.reporter.longReporter()
        ));
    return tsResult;
});

The problem is how the typescript is required in longReporter and fullReporter, eg.:

function longReporter() {
    var typescript = require('typescript');
    ....
@ivogabe ivogabe added the Bug label Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants