Comparing version 1.10.4 to 2.0.0-beta.1
@@ -227,3 +227,3 @@ 'use strict'; | ||
var fileName_1 = filesWithChangedSignature.pop(); | ||
if (!isExternalModule(service.getSourceFile(fileName_1))) { | ||
if (!isExternalModule(service.getProgram().getSourceFile(fileName_1))) { | ||
_log('[check semantics*]', fileName_1 + ' is an internal module and it has changed shape -> check whatever hasn\'t been checked yet'); | ||
@@ -293,3 +293,4 @@ toBeCheckedSemantically.push.apply(toBeCheckedSemantically, host.getScriptFileNames()); | ||
file: file, | ||
build: build | ||
build: build, | ||
languageService: service | ||
}; | ||
@@ -296,0 +297,0 @@ } |
@@ -7,9 +7,15 @@ /// <reference path="../node_modules/typescript/lib/lib.es6.d.ts"/> | ||
var fs_1 = require('fs'); | ||
// We actually only want to read the tsconfig.json file. So all methods | ||
// to read the FS are 'empty' implementations. | ||
var _parseConfigHost = { | ||
useCaseSensitiveFileNames: false, | ||
fileExists: function (fileName) { | ||
return fs_1.existsSync(fileName); | ||
}, | ||
readDirectory: function (rootDir, extensions, excludes, includes) { | ||
return []; // don't want to find files! | ||
}, | ||
readFile: function (fileName) { | ||
return fs_1.readFileSync(fileName, 'utf-8'); | ||
}, | ||
readDirectory: function (rootDir, extension, exclude) { | ||
return []; // don't want to find files! | ||
}, | ||
}; | ||
@@ -49,4 +55,6 @@ function create(configOrName, verbose, json, onError) { | ||
} | ||
return function (token) { return createStream(token); }; | ||
var result = function (token) { return createStream(token); }; | ||
Object.defineProperty(result, 'program', { get: function () { return _builder.languageService.getProgram(); } }); | ||
return result; | ||
} | ||
exports.create = create; |
@@ -15,2 +15,10 @@ 'use strict'; | ||
}); | ||
it('keeps allowJs', function () { | ||
var compiler = index.create({ allowJs: true }); | ||
assert.equal(compiler.program.getCompilerOptions().allowJs, true); | ||
compiler = index.create({ allowJs: false }); | ||
assert.equal(compiler.program.getCompilerOptions().allowJs, false); | ||
compiler = index.create({}); | ||
assert.equal(compiler.program.getCompilerOptions().allowJs, undefined); | ||
}); | ||
}); |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "gulp-tsb", | ||
"version": "1.10.4", | ||
"version": "2.0.0-beta.1", | ||
"author": "Johannes Rieken <johannes.rieken@gmail.com>", | ||
@@ -10,3 +10,4 @@ "description": "A gulp plugin for very fast TypeScript compilation.", | ||
"test": "mocha lib/tests", | ||
"prepublish": "tsc && mocha lib/tests" | ||
"prepublish": "tsc && mocha lib/tests", | ||
"compile": "tsc" | ||
}, | ||
@@ -30,7 +31,8 @@ "repository": { | ||
"gulp": "^3.8.10", | ||
"mocha": "*" | ||
"mocha": "*", | ||
"typescript": ">=2.0.2" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=1.7.3" | ||
"typescript": ">=2.0.2" | ||
} | ||
} |
gulp-tsb | ||
=============== | ||
[![Build Status](https://travis-ci.org/jrieken/gulp-tsb.svg?branch=master)](https://travis-ci.org/jrieken/gulp-tsb) | ||
## Information | ||
@@ -13,5 +15,5 @@ | ||
```javascript | ||
var tsb = require('gulp-tsb'); | ||
// create and keep compiler | ||
@@ -23,3 +25,3 @@ var compilation = tsb.create({ | ||
}); | ||
gulp.task('build', function() { | ||
@@ -26,0 +28,0 @@ return gulp.src('src/**/*.ts') |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
35425
10
742
34
3
2
1