Skip to content

Commit

Permalink
chore(deps-dev): bring in types for @npmcli/ci-detect (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta authored Aug 16, 2022
1 parent 922857f commit 19c4ad0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
13 changes: 13 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@types/jest": "^28.1.6",
"@types/mime-types": "^2.1.1",
"@types/node-fetch": "^2.6.2",
"@types/npmcli__ci-detect": "^2.0.0",
"@types/parse-link-header": "^2.0.0",
"@types/read": "^0.0.29",
"@types/semver": "^7.3.10",
Expand Down
1 change: 0 additions & 1 deletion src/.sink.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// These packages don't have any TS types so we need to declare a module in order to use them.
declare module '@npmcli/ci-detect';
declare module 'editor';
3 changes: 1 addition & 2 deletions src/lib/versionSelect.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import ciDetect from '@npmcli/ci-detect';
import config from 'config';
import { prompt } from 'enquirer';
import { Headers } from 'node-fetch';

import ciDetect from '@npmcli/ci-detect';

import APIError from './apiError';
import fetch, { cleanHeaders, handleRes } from './fetch';
import { warn } from './logger';
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"noImplicitAny": true,
"outDir": "dist/",
"paths": {
"@npmcli/ci-detect": [".sink.d.ts"],
"editor": [".sink.d.ts"]
},
"resolveJsonModule": true,
Expand Down

0 comments on commit 19c4ad0

Please sign in to comment.