Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-tsb

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tsb - npm Package Compare versions

Comparing version 1.10.4 to 2.0.0-beta.1

.travis.yml

5

lib/builder.js

@@ -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 @@ }

16

lib/index.js

@@ -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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc