typescript
Advanced tools
Comparing version 1.7.0-dev.20150904 to 1.7.0-dev.20150916
@@ -397,2 +397,3 @@ // This file contains the build logic for the public repo | ||
var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts"); | ||
var nodeStandaloneDefinitionsFile = path.join(builtLocalDirectory, "typescript_standalone.d.ts"); | ||
@@ -414,7 +415,15 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].concat(servicesSources), | ||
// Create the node definition file by replacing 'ts' module with '"typescript"' as a module. | ||
// Stanalone/web definition file using global 'ts' namespace | ||
jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, {silent: true}); | ||
var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString(); | ||
definitionFileContents = definitionFileContents.replace(/declare (namespace|module) ts/g, 'declare module "typescript"'); | ||
fs.writeFileSync(nodeDefinitionsFile, definitionFileContents); | ||
// Official node package definition file, pointed to by 'typings' in package.json | ||
// Created by appending 'export = ts;' at the end of the standalone file to turn it into an external module | ||
var nodeDefinitionsFileContents = definitionFileContents + "\r\nexport = ts;"; | ||
fs.writeFileSync(nodeDefinitionsFile, nodeDefinitionsFileContents); | ||
// Node package definition file to be distributed without the package. Created by replacing | ||
// 'ts' namespace with '"typescript"' as a module. | ||
var nodeStandaloneDefinitionsFileContents = definitionFileContents.replace(/declare (namespace|module) ts/g, 'declare module "typescript"'); | ||
fs.writeFileSync(nodeStandaloneDefinitionsFile, nodeStandaloneDefinitionsFileContents); | ||
}); | ||
@@ -593,5 +602,6 @@ | ||
var testTimeout = 20000; | ||
desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optional parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]'."); | ||
desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optional parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]', debug=true."); | ||
task("runtests", ["tests", builtLocalDirectory], function() { | ||
cleanTestDirs(); | ||
var debug = process.env.debug || process.env.d; | ||
host = "mocha" | ||
@@ -619,3 +629,3 @@ tests = process.env.test || process.env.tests || process.env.t; | ||
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer | ||
var cmd = host + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run; | ||
var cmd = host + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run; | ||
console.log(cmd); | ||
@@ -622,0 +632,0 @@ exec(cmd, deleteTemporaryProjectOutput); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://typescriptlang.org/", | ||
"version": "1.7.0-dev.20150904", | ||
"version": "1.7.0-dev.20150916", | ||
"license": "Apache-2.0", | ||
@@ -8,0 +8,0 @@ "description": "TypeScript is a language for application scale JavaScript development", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
12137259
28
233828
28