Update links to ancestral repos (#441)

This commit is contained in:
Jack Bates
2022-04-25 09:31:01 -07:00
committed by GitHub
parent bf52b08ded
commit 3cbaae228b
42 changed files with 113 additions and 110 deletions

View File

@@ -8,7 +8,7 @@
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/definitions-parser"
},
"scripts": {

View File

@@ -25,8 +25,7 @@ check npm for a package with the same name as the d.ts.
## Mode
You can run dts-critic in different modes that affect which checks will be performed:
1. `name-only`: dts-critic will check your package name and [DefinitelyTyped header]
(https://github.com/Microsoft/definitelytyped-header-parser) (if present) against npm packages.
1. `name-only`: dts-critic will check your package name and [DefinitelyTyped header](../header-parser) (if present) against npm packages.
For example, if your declaration is for an npm package called 'cool-js-package', it will check if a
package named 'cool-js-package' actually exists in npm.
@@ -41,7 +40,7 @@ has a default export.
If your declaration is for an npm package:
1. An npm package with the same name of your declaration's package must exist.
2. If your declaration has a [Definitely Typed header](https://github.com/Microsoft/definitelytyped-header-parser)
2. If your declaration has a [Definitely Typed header](../header-parser)
and the header specifies a target version, the npm package must have
a matching version.
3. If you are running under `code` mode, your declaration must also match the source JavaScript module.
@@ -50,7 +49,7 @@ a matching version.
<!-- 2. If no local path to source is provided, an npm package with the
same name as the d.ts must exist. -->
If your declaration is for a non-npm package (in other words, if your declaration has a
[Definitely Typed header](https://github.com/Microsoft/definitelytyped-header-parser) *and*
[Definitely Typed header](../header-parser) *and*
the header specifies that the declaration file is for a non-npm package):
1. An npm package with the same name of your declaration's package **cannot** exist.

View File

@@ -1,54 +1,55 @@
{
"name": "@definitelytyped/dts-critic",
"version": "0.0.112",
"author": "Nathan Shively-Sanders",
"description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@definitelytyped/header-parser": "^0.0.112",
"command-exists": "^1.2.8",
"rimraf": "^3.0.2",
"semver": "^6.2.0",
"tmp": "^0.2.1",
"yargs": "^15.3.1"
},
"peerDependencies": {
"typescript": "*"
},
"devDependencies": {
"@types/command-exists": "^1.2.0",
"@types/rimraf": "^3.0.0",
"@types/semver": "^6.0.1",
"@types/strip-json-comments": "0.0.30",
"@types/tmp": "^0.2.0",
"strip-json-comments": "^2.0.1"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -b .",
"dt": "node dist/dt.js",
"test": "../../node_modules/.bin/jest --config ../../jest.config.js packages/dts-critic"
},
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git"
},
"keywords": [
"definitely",
"typed",
"refresh",
"npm",
"tag"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/DefinitelyTyped-tools/issues"
},
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools#readme",
"engines": {
"node": ">=10.17.0"
}
"name": "@definitelytyped/dts-critic",
"version": "0.0.112",
"author": "Nathan Shively-Sanders",
"description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@definitelytyped/header-parser": "^0.0.112",
"command-exists": "^1.2.8",
"rimraf": "^3.0.2",
"semver": "^6.2.0",
"tmp": "^0.2.1",
"yargs": "^15.3.1"
},
"peerDependencies": {
"typescript": "*"
},
"devDependencies": {
"@types/command-exists": "^1.2.0",
"@types/rimraf": "^3.0.0",
"@types/semver": "^6.0.1",
"@types/strip-json-comments": "0.0.30",
"@types/tmp": "^0.2.0",
"strip-json-comments": "^2.0.1"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -b .",
"dt": "node dist/dt.js",
"test": "../../node_modules/.bin/jest --config ../../jest.config.js packages/dts-critic"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/dts-critic"
},
"keywords": [
"definitely",
"typed",
"refresh",
"npm",
"tag"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/DefinitelyTyped-tools/issues"
},
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dts-critic#readme",
"engines": {
"node": ">=10.17.0"
}
}

View File

@@ -2,7 +2,7 @@
"name": "@definitelytyped/dtslint-runner",
"version": "0.0.112",
"description": "Run dtslint on DefinitelyTyped packages",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools#readme",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint-runner#readme",
"license": "MIT",
"main": "dist/index.js",
"bin": "dist/index.js",
@@ -11,7 +11,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git"
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/dtslint-runner"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1",

View File

@@ -14,7 +14,8 @@
],
"repository": {
"type": "git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git"
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/dtslint"
},
"scripts": {
"build": "tsc -b .",

View File

@@ -10,7 +10,7 @@ export async function readJson(path: string) {
}
export function failure(ruleName: string, s: string): string {
return `${s} See: https://github.com/Microsoft/dtslint/blob/master/docs/${ruleName}.md`;
return `${s} See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/${ruleName}.md`;
}
export function getCommonDirectoryName(files: readonly string[]): string {

View File

@@ -1,5 +1,5 @@
// Type definitions for dt-header 1.0
// Project: https://github.com/bobby-headers/dt-header
// Definitions by: Jane Doe <https://github.com/jane doe>
~ [Error parsing header. Expected: /\<https\:\/\/github\.com\/([a-zA-Z\d\-]+)\/?\>/. See: https://github.com/Microsoft/dtslint/blob/master/docs/dt-header.md]
~ [Error parsing header. Expected: /\<https\:\/\/github\.com\/([a-zA-Z\d\-]+)\/?\>/. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/dt-header.md]
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@@ -1,5 +1,5 @@
// Type definitions for dt-header 1.0
// Project: https://github.com/bobby-headers/dt-header
// Definitions by: Jane Doe <https://github.org/janedoe>
~ [Error parsing header. Expected: /\<https\:\/\/github\.com\/([a-zA-Z\d\-]+)\/?\>/. See: https://github.com/Microsoft/dtslint/blob/master/docs/dt-header.md]
~ [Error parsing header. Expected: /\<https\:\/\/github\.com\/([a-zA-Z\d\-]+)\/?\>/. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/dt-header.md]
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@@ -1,5 +1,5 @@
// Type definitions for dt-header 1.0
// Project: https://github.com/not/important
// Definitions by: My Self <https://github.com/me>
~~~~~~~~~~~~~~~~~~~~~~~~~~ [Author name should be your name, not the default. See: https://github.com/Microsoft/dtslint/blob/master/docs/dt-header.md]
~~~~~~~~~~~~~~~~~~~~~~~~~~ [Author name should be your name, not the default. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/dt-header.md]
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@@ -1,5 +1,5 @@
// Type definitions for dt-header v1.0.3
~ [Error parsing header. Expected: foo MAJOR.MINOR (patch version not allowed). See: https://github.com/Microsoft/dtslint/blob/master/docs/dt-header.md]
~ [Error parsing header. Expected: foo MAJOR.MINOR (patch version not allowed). See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/dt-header.md]
// Project: https://github.com/bobby-headers/dt-header
// Definitions by: Jane Doe <https://github.com/janedoe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@@ -1,2 +1,2 @@
// Type definitions for
~~~~~~~~~~~~~~~~~~~~~~~ [Header should only be in `index.d.ts` of the root. See: https://github.com/Microsoft/dtslint/blob/master/docs/dt-header.md]
~~~~~~~~~~~~~~~~~~~~~~~ [Header should only be in `index.d.ts` of the root. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/dt-header.md]

View File

@@ -2,4 +2,4 @@ namespace N {
export const x: number;
}
export = N;
~~~~~~~~~~~ [Instead of `export =`-ing a namespace, use the body of the namespace as the module body. See: https://github.com/Microsoft/dtslint/blob/master/docs/export-just-namespace.md]
~~~~~~~~~~~ [Instead of `export =`-ing a namespace, use the body of the namespace as the module body. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/export-just-namespace.md]

View File

@@ -1,4 +1,4 @@
export const x: any;
export const y: string | any;
~~~ [Including `any` in a union will override all other members of the union. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-any-union.md]
~~~ [Including `any` in a union will override all other members of the union. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-any-union.md]

View File

@@ -1,4 +1,4 @@
/// <reference path="../foo" />
~~~~~~ [Don't use <reference path> to reference another package. Use an import or <reference types> instead. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-bad-reference.md]
~~~~~~ [Don't use <reference path> to reference another package. Use an import or <reference types> instead. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-bad-reference.md]
/// <reference path="foo" />

View File

@@ -4,4 +4,4 @@
/// <reference path="foo" />
~~~ [0]
[0]: Don't use <reference path> in test files. Use <reference types> or include the file in 'tsconfig.json'. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-bad-reference.md
[0]: Don't use <reference path> in test files. Use <reference types> or include the file in 'tsconfig.json'. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-bad-reference.md

View File

@@ -4,4 +4,4 @@ const enum E {
enum F {}
[0]: Use of `const enum`s is forbidden. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-const-enum.md
[0]: Use of `const enum`s is forbidden. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-const-enum.md

View File

@@ -5,4 +5,4 @@ import * as bar from "bar";
/// <reference types="bang" />
~~~~~~~~~~~~~~ [0]
[0]: `/// <reference>` directive must be at top of file to take effect. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-dead-reference.md
[0]: `/// <reference>` directive must be at top of file to take effect. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-dead-reference.md

View File

@@ -8,4 +8,4 @@ declare module "b" {
~ [0]
}
[0]: The module "a" uses `export = `. Import with `import a = require("a")`. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-import-default-of-export-equals.md
[0]: The module "a" uses `export = `. Import with `import a = require("a")`. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-import-default-of-export-equals.md

View File

@@ -1,4 +1,4 @@
import D from "./a";
~ [0]
[0]: The module "./a" uses `export = `. Import with `import D = require("./a")`. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-import-default-of-export-equals.md
[0]: The module "./a" uses `export = `. Import with `import D = require("./a")`. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-import-default-of-export-equals.md

View File

@@ -26,4 +26,4 @@ function f() {
];
}
[0]: Don't leave a blank line %s. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-padding.md
[0]: Don't leave a blank line %s. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-padding.md

View File

@@ -2,4 +2,4 @@ import { x } from "./declarationFile.d";
~~~~~~~~~~~~~~~~~~~~~ [0]
import { y } from "./testFile";
[0]: Test file should not use a relative import. Use a global import as if this were a user of the package. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-relative-import-in-test.md
[0]: Test file should not use a relative import. Use a global import as if this were a user of the package. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-relative-import-in-test.md

View File

@@ -1,5 +1,5 @@
declare module "foo" {}
~~~~~~~~~~~~~~~~~~~~~~~ [File has only 1 ambient module declaration. Move the contents outside the ambient module block, rename the file to match the ambient module name, and remove the block. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-single-declare-module.md]
~~~~~~~~~~~~~~~~~~~~~~~ [File has only 1 ambient module declaration. Move the contents outside the ambient module block, rename the file to match the ambient module name, and remove the block. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-single-declare-module.md]
// Other global declarations don't affect this. They should go in "declare global".
interface I {}

View File

@@ -2,4 +2,4 @@ const x: [string];
~~~~~~~~ [0]
const y: [string, number];
[0]: Type [T] is a single-element tuple type. You probably meant T[]. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-single-element-tuple-type.md
[0]: Type [T] is a single-element tuple type. You probably meant T[]. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-single-element-tuple-type.md

View File

@@ -24,7 +24,7 @@ const f2 = <T>(): T => {};
~ [0]
function f<T>(x: { T: number }): void;
~ [Type parameter T is never used. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-unnecessary-generics.md]
~ [Type parameter T is never used. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-unnecessary-generics.md]
function f<T, U extends T>(u: U): U;
~ [0]
@@ -35,4 +35,4 @@ function foo<T>(m: Map<T, T>): void {}
// `T` appears in a constraint, so it appears twice.
function f<T, U extends T>(t: T, u: U): U;
[0]: Type parameter T is used only once. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-unnecessary-generics.md
[0]: Type parameter T is used only once. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-unnecessary-generics.md

View File

@@ -1,2 +1,2 @@
// I am useless
~ [File has no content. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-useless-files.md]
~ [File has no content. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/no-useless-files.md]

View File

@@ -5,4 +5,4 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default dtsCritic();
[0]: The declaration doesn't match the JavaScript module 'dts-critic'. Reason: The declaration should use 'export =' syntax because the JavaScript source uses 'module.exports =' syntax and 'module.exports' can be called or constructed. To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require. If you won't fix this error now or you think this error is wrong, you can disable this check by adding the following options to your project's tslint.json file under "rules": "npm-naming": [true,{"mode":"code","errors":[["NeedsExportEquals",false]]}] See: https://github.com/Microsoft/dtslint/blob/master/docs/npm-naming.md
[0]: The declaration doesn't match the JavaScript module 'dts-critic'. Reason: The declaration should use 'export =' syntax because the JavaScript source uses 'module.exports =' syntax and 'module.exports' can be called or constructed. To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require. If you won't fix this error now or you think this error is wrong, you can disable this check by adding the following options to your project's tslint.json file under "rules": "npm-naming": [true,{"mode":"code","errors":[["NeedsExportEquals",false]]}] See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/npm-naming.md

View File

@@ -3,4 +3,4 @@
// Project: https://github.com/bobby-headers/dt-header
// Definitions by: Jane Doe <https://github.com/janedoe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
[0]: Declaration file must have a matching npm package. To resolve this error, either: 1. Change the name to match an npm package. 2. Add a Definitely Typed header with the first line // Type definitions for non-npm package wenceslas-browser Add -browser to the end of your name to make sure it doesn't conflict with existing npm packages. If you won't fix this error now or you think this error is wrong, you can disable this check by adding the following options to your project's tslint.json file under "rules": "npm-naming": false See: https://github.com/Microsoft/dtslint/blob/master/docs/npm-naming.md
[0]: Declaration file must have a matching npm package. To resolve this error, either: 1. Change the name to match an npm package. 2. Add a Definitely Typed header with the first line // Type definitions for non-npm package wenceslas-browser Add -browser to the end of your name to make sure it doesn't conflict with existing npm packages. If you won't fix this error now or you think this error is wrong, you can disable this check by adding the following options to your project's tslint.json file under "rules": "npm-naming": false See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/npm-naming.md

View File

@@ -7,4 +7,4 @@ namespace N {
}
[0]: Use a function declaration instead of a variable of function type. See: https://github.com/Microsoft/dtslint/blob/master/docs/prefer-declare-function.md
[0]: Use a function declaration instead of a variable of function type. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/prefer-declare-function.md

View File

@@ -7,4 +7,4 @@ interface I {
almost?: number | string;
}
[0]: Parameter is optional, so no need to include `undefined` in the type. See: https://github.com/Microsoft/dtslint/blob/master/docs/redundant-undefined.md
[0]: Parameter is optional, so no need to include `undefined` in the type. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/redundant-undefined.md

View File

@@ -20,5 +20,5 @@ declare module "m2" {
}
[declare-redundant]: 'declare' keyword is redundant here. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[declare-redundant]: 'declare' keyword is redundant here. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md

View File

@@ -19,5 +19,5 @@ export namespace M {
// TS compiler warns for 'declare' here.
}
[declare-redundant]: 'declare' keyword is redundant here. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[declare-redundant]: 'declare' keyword is redundant here. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md

View File

@@ -22,6 +22,6 @@ export namespace M {
// TS compiler warns for 'declare' here.
}
[declare]: 'declare' keyword is redundant here. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[export-preferred]: All declarations in this module are exported automatically. Prefer to explicitly write 'export' for clarity. If you have a good reason not to export this declaration, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[declare]: 'declare' keyword is redundant here. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md
[export-preferred]: All declarations in this module are exported automatically. Prefer to explicitly write 'export' for clarity. If you have a good reason not to export this declaration, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md

View File

@@ -16,5 +16,5 @@ declare namespace M {
~~~~~~ [export-redundant]
}
[declare-redundant]: 'declare' keyword is redundant here. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
[declare-redundant]: 'declare' keyword is redundant here. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md
[export-redundant]: 'export' keyword is redundant here because all declarations in this module are exported automatically. If you have a good reason to export some declarations and not others, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/strict-export-declare-modifiers.md

View File

@@ -1,5 +1,5 @@
~nil [File should not begin with a blank line. See: https://github.com/Microsoft/dtslint/blob/master/docs/trim-file.md]
~nil [File should not begin with a blank line. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/trim-file.md]
0;
~nil [File should not end with a blank line. (Ending in one newline OK, ending in two newlines not OK.) See: https://github.com/Microsoft/dtslint/blob/master/docs/trim-file.md]
~nil [File should not end with a blank line. (Ending in one newline OK, ending in two newlines not OK.) See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/trim-file.md]

View File

@@ -11,4 +11,4 @@ function f(x: number | void): number;
f<void>();
[0]: Use the `void` type for return types only. Otherwise, use `undefined`. See: https://github.com/Microsoft/dtslint/blob/master/docs/void-return.md
[0]: Use the `void` type for return types only. Otherwise, use `undefined`. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/void-return.md

View File

@@ -9,7 +9,7 @@
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/header-parser"
},
"scripts": {

View File

@@ -12,7 +12,8 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/andrewbranch/definitely-not-slow.git"
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/perf"
},
"dependencies": {
"@definitelytyped/definitions-parser": "^0.0.112",

View File

@@ -54,7 +54,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/publisher"
},
"author": "Microsoft",

View File

@@ -36,11 +36,13 @@ import {
} from "@definitelytyped/utils";
import * as semver from "semver";
import { getSecret, Secret } from "./lib/secrets";
// @ts-ignore
import pkg from "../package.json";
const typesRegistry = "types-registry";
const registryOutputPath = joinPaths(outputDirPath, typesRegistry);
const readme = `This package contains a listing of all packages published to the @types scope on NPM.
Generated by [types-publisher](https://github.com/Microsoft/types-publisher).`;
Generated by [types-publisher](${pkg.homepage}).`;
if (!module.parent) {
const dry = !!yargs.argv.dry;
@@ -231,10 +233,7 @@ function generatePackageJson(name: string, version: string, typesPublisherConten
name,
version,
description: "A registry of TypeScript declaration file packages published within the @types scope.",
repository: {
type: "git",
url: "https://github.com/Microsoft/types-publisher.git",
},
repository: pkg.repository,
keywords: ["TypeScript", "declaration", "files", "types", "packages"],
author: "Microsoft Corp.",
license: "MIT",

View File

@@ -3,11 +3,11 @@
"version": "0.0.112",
"description": "Refresh tags on all DT-published packages in the @types scope.",
"author": "Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools#readme",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/retag#readme",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/retag"
},
"scripts": {

View File

@@ -3,7 +3,7 @@
"version": "0.0.112",
"description": "List of supported TypeScript versions",
"author": "Andrew Branch <andrew@wheream.io>",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools#readme",
"homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/typescript-versions#readme",
"license": "MIT",
"main": "dist/index.js",
"publishConfig": {
@@ -11,7 +11,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git"
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/typescript-versions"
},
"bugs": {
"url": "https://github.com/microsoft/DefinitelyTyped-tools/issues"

View File

@@ -8,7 +8,7 @@
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/DefinitelyTyped-tools.git",
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
"directory": "packages/utils"
},
"scripts": {