typescript
Advanced tools
Comparing version 1.6.0-dev.20150915 to 1.6.2
@@ -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,6 +602,5 @@ | ||
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>]', debug=true."); | ||
desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optional parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]'."); | ||
task("runtests", ["tests", builtLocalDirectory], function() { | ||
cleanTestDirs(); | ||
var debug = process.env.debug || process.env.d; | ||
host = "mocha" | ||
@@ -620,3 +628,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 + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run; | ||
var cmd = host + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run; | ||
console.log(cmd); | ||
@@ -623,0 +631,0 @@ exec(cmd, deleteTemporaryProjectOutput); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://typescriptlang.org/", | ||
"version": "1.6.0-dev.20150915", | ||
"version": "1.6.2", | ||
"license": "Apache-2.0", | ||
@@ -55,2 +55,2 @@ "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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
26
12135764
27
233746