File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
+ declare module '@yarnpkg/lockfile' {
10
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
+ export function parse ( data : string ) : Record < string , any > ;
12
+ }
13
+
14
+ declare module 'ini' {
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ export function parse ( data : string ) : Record < string , any > ;
17
+ }
18
+
9
19
declare module 'npm-pick-manifest' {
10
20
function pickManifest (
11
21
metadata : import ( '../utilities/package-metadata' ) . PackageMetadata ,
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { logging } from '@angular-devkit/core' ;
10
+ import * as lockfile from '@yarnpkg/lockfile' ;
10
11
import { existsSync , readFileSync } from 'fs' ;
12
+ import * as ini from 'ini' ;
11
13
import { homedir } from 'os' ;
12
14
import * as path from 'path' ;
13
15
import { JsonSchemaForNpmPackageJsonFiles } from './package-json' ;
14
16
15
- const lockfile = require ( '@yarnpkg/lockfile' ) ;
16
- const ini = require ( 'ini' ) ;
17
17
const pacote = require ( 'pacote' ) ;
18
18
19
19
const npmPackageJsonCache = new Map < string , Promise < Partial < NpmRepositoryPackageJson > > > ( ) ;
You can’t perform that action at this time.
0 commit comments