Skip to content

Commit

Permalink
Move TypeScript installer code to dtslint (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Feb 26, 2024
1 parent 3b9ed97 commit b287cf9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/dull-kings-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@definitelytyped/dtslint": patch
"@definitelytyped/utils": patch
---

Move TypeScript installer code to dtslint
1 change: 1 addition & 0 deletions packages/dtslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@arethetypeswrong/cli": "0.14.1",
"@arethetypeswrong/core": "0.14.1",
"@definitelytyped/header-parser": "workspace:*",
"@definitelytyped/typescript-packages": "workspace:*",
"@definitelytyped/typescript-versions": "workspace:*",
"@definitelytyped/utils": "workspace:*",
"@typescript-eslint/eslint-plugin": "^6.19.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/dtslint/src/lint.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { TypeScriptVersion } from "@definitelytyped/typescript-versions";
import { typeScriptPath, withoutStart } from "@definitelytyped/utils";
import { withoutStart } from "@definitelytyped/utils";
import assert = require("assert");
import { join as joinPaths, normalize, resolve } from "path";
import { ESLint } from "eslint";
import * as TsType from "typescript";

import { createProgram } from "./createProgram";
import { typeScriptPath } from "./typescript-installer";

export async function lint(
dirPath: string,
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
"url": "https://github.com/microsoft/DefinitelyTyped-tools/issues"
},
"dependencies": {
"@definitelytyped/typescript-packages": "workspace:*",
"@definitelytyped/typescript-versions": "workspace:*",
"@qiwi/npm-registry-client": "^8.9.1",
"@types/node": "^18.19.7",
"cachedir": "^2.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ export * from "./miscellany";
export * from "./npm";
export * from "./process";
export * from "./progress";
export * from "./typescript-installer";
9 changes: 3 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit b287cf9

Please sign in to comment.