@@ -11,57 +11,65 @@ import * as glob from 'glob'
1111import * as isomorphicGit from 'isomorphic-git'
1212import * as jsYaml from 'js-yaml'
1313import lodash from 'lodash'
14+ import * as memfs from 'memfs'
1415import * as path from 'path'
1516import * as readPkgUp from 'read-pkg-up'
1617import * as recast from 'recast'
18+ import * as unionfs from 'unionfs'
1719import * as zx from 'zx'
1820import * as esmModules from './esm-modules'
1921import { fetchSync } from './fetch-sync'
2022import { makeSynchronous } from './make-synchronous'
2123import * as simplify from './simplify'
2224
25+ /*eslint sort-keys: "error"*/
26+
2327export interface PresetDependencies {
24- fs : typeof import ( 'fs' )
25- path : typeof import ( 'path' )
28+ arktype : typeof esmModules . arktype
29+ babelGenerator : typeof import ( './types/babel-generator' )
30+ babelParser : typeof import ( '@babel/parser' )
31+ babelTraverse : typeof import ( '@babel/traverse' )
32+ babelTypes : typeof import ( '@babel/types' )
33+ cheerio : typeof import ( 'cheerio' )
2634 child_process : typeof import ( 'child_process' )
27- lodash : typeof import ( 'lodash' )
28- jsYaml : typeof import ( 'js-yaml' )
2935 dedent : typeof import ( 'dedent' ) . default
36+ fetchSync : typeof import ( './fetch-sync' ) . fetchSync
37+ fs : typeof import ( 'fs' )
3038 glob : Pick < typeof import ( 'glob' ) , 'globSync' >
31- readPkgUp : Pick < typeof import ( 'read-pkg-up' ) , 'sync' >
32- cheerio : typeof import ( 'cheerio' )
3339 isomorphicGit : typeof import ( 'isomorphic-git' )
34- zx : typeof import ( 'zx' )
40+ jsYaml : typeof import ( 'js-yaml' )
41+ lodash : typeof import ( 'lodash' )
3542 makeSynchronous : typeof import ( './make-synchronous' ) . makeSynchronous
36- fetchSync : typeof import ( './fetch-sync' ) . fetchSync
37- simplify : typeof import ( './simplify' )
38- babelParser : typeof import ( '@babel/parser' )
39- babelTraverse : typeof import ( '@babel/traverse' )
40- babelGenerator : typeof import ( './types/babel-generator' )
41- babelTypes : typeof import ( '@babel/types' )
43+ memfs : typeof import ( 'memfs' )
44+ path : typeof import ( 'path' )
45+ readPkgUp : Pick < typeof import ( 'read-pkg-up' ) , 'sync' >
4246 recast : typeof import ( 'recast' )
43- arktype : typeof esmModules . arktype
47+ simplify : typeof import ( './simplify' )
48+ unionfs : typeof import ( 'unionfs' )
49+ zx : typeof import ( 'zx' )
4450}
4551
4652export const dependencies : PresetDependencies = {
53+ ...esmModules ,
54+ babelGenerator : babelGenerator as never ,
55+ babelParser,
56+ babelTraverse,
57+ babelTypes,
58+ cheerio,
59+ child_process,
4760 dedent : Object . assign ( dedent , { default : dedent } ) , // backcompat: accidentally used `import * as dedent from 'dedent'` previously
61+ fetchSync,
4862 fs,
49- path,
5063 glob,
64+ isomorphicGit,
5165 jsYaml,
5266 lodash,
53- readPkgUp,
54- child_process,
5567 makeSynchronous,
56- fetchSync,
68+ memfs,
69+ path,
70+ readPkgUp,
71+ recast,
5772 simplify,
58- cheerio,
59- isomorphicGit,
73+ unionfs,
6074 zx,
61- babelParser,
62- babelTraverse,
63- babelGenerator : babelGenerator as never ,
64- babelTypes,
65- recast,
66- ...esmModules ,
6775}
0 commit comments