Merge pull request #5 from Microsoft/update

Update dependencies and move ts2.3 out of prerelease
This commit is contained in:
Andy
2017-05-18 07:38:02 -07:00
committed by Andrew Branch
parent 86788dc0c1
commit 06feef170f
4 changed files with 18 additions and 19 deletions

View File

@@ -23,8 +23,8 @@ export namespace TypeScriptVersion {
}
/** True if a package with the given typescript version should be published as prerelease. */
export function isPrerelease(version: TypeScriptVersion): boolean {
return version === Latest;
export function isPrerelease(_version: TypeScriptVersion): boolean {
return false;
}
/** List of NPM tags that should be changed to point to the latest version. */
@@ -120,7 +120,7 @@ function headerParser(strict: boolean): pm.Parser<Header> {
libraryName: label.name,
libraryMajorVersion: label.major,
libraryMinorVersion: label.minor,
projects, contributors, typeScriptVersion
projects, contributors, typeScriptVersion,
}));
}
@@ -151,7 +151,7 @@ function contributorsParser(strict: boolean): pm.Parser<Author[]> {
return pm.seqMap(contributors, pm.regexp(/ */), a => a);
}
return contributors;
};
}
// TODO: Should we do something with the URL?
const definitionsParser = pm.regexp(/\r?\n\/\/ Definitions: [^\r\n]+/);

View File

@@ -11,20 +11,20 @@
"build": "tsc",
"watch": "tsc --watch",
"lint": "tslint --format stylish index.ts test/*.ts",
"test": "mocha --require test/mocha-require.js 'test/*.ts'"
"test": "mocha --require test/mocha-require.js \"test/*.ts\""
},
"dependencies": {
"parsimmon": "^1.2.0",
"@types/parsimmon": "^1.0.1"
"@types/parsimmon": "^1.0.4"
},
"devDependencies": {
"@types/mocha": "^2.2.39",
"@types/node": "^7.0.5",
"mocha": "^3.2.0",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.18",
"mocha": "^3.4.1",
"npm-run-all": "^4.0.1",
"ts-node": "^2.1.0",
"tslint": "^4.4.2",
"typescript": "^2.2.0"
"ts-node": "^3.0.4",
"tslint": "^5.2.0",
"typescript": "^2.3.2"
},
"license": "MIT"
}

View File

@@ -19,8 +19,8 @@ describe("parse", () => {
projects: ["https://github.com/foo/foo", "https://foo.com"],
contributors: [
{ name: "My Self", url: "https://github.com/me" },
{ name: "Some Other Guy", url: "https://github.com/otherguy" }
]
{ name: "Some Other Guy", url: "https://github.com/otherguy" },
],
});
});
@@ -43,8 +43,8 @@ describe("parse", () => {
projects: ["https://github.com/foo/foo", "https://foo.com"],
contributors: [
{ name: "My Self", url: "https://github.com/me" },
{ name: "Some Other Guy", url: "https://github.com/otherguy" }
]
{ name: "Some Other Guy", url: "https://github.com/otherguy" },
],
});
});
});

View File

@@ -1,13 +1,12 @@
{
"extends": "tslint:latest",
"rules": {
"arrow-parens": false,
"arrow-parens": [true, "ban-single-arg-parens"],
"indent": [true, "tab"],
"interface-name": false,
"interface-name": [true, "never-prefix"],
"no-namespace": false,
"object-literal-sort-keys": false,
"switch-default": false,
"trailing-comma": false,
"variable-name": false
}
}