Skip to content

Commit

Permalink
build: update typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jul 12, 2020
1 parent 40aa9f7 commit 59fcb4b
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/@lazy-node/semver-part/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/changelog/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/changelog/lib/lerna.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/@yarn-tool/changelog/lib/lerna/from-list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { IOptionsWithType, IOptionsUpdateChangelog } from '../types';
export declare function updateChangelogByCwd(cwd?: string, options?: Partial<IOptionsWithType<IOptionsUpdateChangelog>>): Promise<{
cwd: string;
rootPath: string;
options: Partial<import("../types").IOptionsBase & Pick<import("../types").IOptionsBaseCore, never> & import("ts-type").ITSRequiredPick<import("../types").IOptionsBaseCore, "rootPath"> & import("ts-type").ITSPartialPick<import("../types").IOptionsBaseCore, "changelogPreset"> & {
options: Partial<import("../types").IOptionsBase & Pick<import("../types").IOptionsBaseCore, never> & import("ts-type").ITSRequiredPick<import("../types").IOptionsBaseCore, "changelogPreset"> & import("ts-type").ITSPartialPick<import("../types").IOptionsBaseCore, "rootPath"> & {
version?: string;
} & {
type?: string;
}> | Partial<import("../types").IOptionsBase & Pick<import("../types").IOptionsBaseCore, never> & import("ts-type").ITSRequiredPick<import("../types").IOptionsBaseCore, "changelogPreset"> & import("ts-type").ITSPartialPick<import("../types").IOptionsBaseCore, "rootPath"> & {
}> | Partial<import("../types").IOptionsBase & Pick<import("../types").IOptionsBaseCore, never> & import("ts-type").ITSRequiredPick<import("../types").IOptionsBaseCore, "rootPath"> & import("ts-type").ITSPartialPick<import("../types").IOptionsBaseCore, "changelogPreset"> & {
version?: string;
} & {
type?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/@yarn-tool/check-pkg-bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/detect-yarnlock-version/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/get-pkg-bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/get-pkg-bin/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/ncu/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions packages/@yarn-tool/ncu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@
"scripts": {
"coverage": "npx nyc yarn run test",
"lint": "npx eslint **/*.ts",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"test:jest": "jest --coverage",
"test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
"npm:publish": "npm publish",
"npm:publish:lerna": "lerna publish --yes",
"preversion": "yarn run prepublishOnly",
"prepublish:lockfile": "npx sync-lockfile .",
"prepublishOnly_": "yarn run ncu && yarn run sort-package-json && yarn run test",
"prepublishOnly": "yarn run test",
"postpublish_": "git commit -m \"chore(release): publish\" .",
"ncu": "npx yarn-tool ncu -u",
"sort-package-json": "npx yarn-tool sort",
Expand All @@ -48,7 +49,8 @@
"bluebird": "^3.7.2",
"npm-check-updates": "^7.0.1",
"package-json": "^6.5.0",
"semver": "^7.3.2"
"semver": "^7.3.2",
"ts-type": "^1.2.25"
},
"peerDependencies": {
"yargs": "^15.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/@yarn-tool/node-modules/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/semver-diff/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/static-file/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export declare function parseStaticMap<K extends string>(file_map: IStaticFilesM
export declare function parseStaticMap<K extends string>(file_map: IStaticFilesMapArray<K>): [K | IStaticFilesID, string, string?][];
export declare function parseStaticMap<K extends string>(file_map: IStaticFiles<K>): [K | IStaticFilesID, string, string?][];
export declare function getStaticFile<K extends string>(file_id: K, options?: Pick<ICopyStaticFilesOptions<string>, 'file_map'>): [K, string, string?];
export declare function copyStaticFiles<K extends string>(options: ICopyStaticFilesOptions<K>): ["README.md" | ".npmignore" | ".gitignore" | ".eslintignore" | ".nvmrc" | ".browserslistrc" | "tsconfig.json.tpl" | "tsconfig.esm.json.tpl" | ".eslintrc.json.tpl" | ".nycrc" | ".mocharc.yml" | "jest.config.js" | ".nowignore" | "now.json.tpl" | "lerna.json.tpl" | K, string, string?][];
export declare function copyStaticFiles<K extends string>(options: ICopyStaticFilesOptions<K>): [".npmignore" | ".gitignore" | ".eslintignore" | ".nvmrc" | ".browserslistrc" | "tsconfig.json.tpl" | "tsconfig.esm.json.tpl" | ".eslintrc.json.tpl" | "README.md" | ".nycrc" | ".mocharc.yml" | "jest.config.js" | ".nowignore" | "now.json.tpl" | "lerna.json.tpl" | K, string, string?][];
export default copyStaticFiles;
2 changes: 1 addition & 1 deletion packages/@yarn-tool/table/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/tag/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/tag/lib/git-tag.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@yarn-tool/yarnlock/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/@yarn-tool/yarnlock/lib/dedupe.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/@yarn-tool/yarnlock/lib/dedupe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function listDuplicates(yarnlock_old: IYarnLockfileParseObject | string,
yarnlock_old = stringify(yarnlock_old)
}

// @ts-ignore
return _listDuplicates(yarnlock_old)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/@yarn-tool/yarnlock/lib/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/create-yarn-workspaces/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/npm-init2/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/npm-init2/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ws-pkg-list/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 59fcb4b

Please sign in to comment.