Skip to content

Commit f30ca40

Browse files
committed
unionfs memfs
1 parent c3cd98e commit f30ca40

File tree

3 files changed

+125
-26
lines changed

3 files changed

+125
-26
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@
6060
"isomorphic-git": "^1.32.1",
6161
"js-yaml": "^3.14.0",
6262
"lodash": "^4.17.15",
63+
"memfs": "^4.17.2",
6364
"ms": "^2.1.3",
6465
"read-pkg-up": "^7.0.1",
6566
"recast": "^0.23.11",
6667
"safe-stringify": "^1.1.0",
6768
"strip-ansi": "6.0.1",
69+
"unionfs": "^4.5.4",
6870
"zod": "^3.25.48",
6971
"zx": "^8.5.5"
7072
},

pnpm-lock.yaml

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dependencies.ts

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,57 +11,65 @@ import * as glob from 'glob'
1111
import * as isomorphicGit from 'isomorphic-git'
1212
import * as jsYaml from 'js-yaml'
1313
import lodash from 'lodash'
14+
import * as memfs from 'memfs'
1415
import * as path from 'path'
1516
import * as readPkgUp from 'read-pkg-up'
1617
import * as recast from 'recast'
18+
import * as unionfs from 'unionfs'
1719
import * as zx from 'zx'
1820
import * as esmModules from './esm-modules'
1921
import {fetchSync} from './fetch-sync'
2022
import {makeSynchronous} from './make-synchronous'
2123
import * as simplify from './simplify'
2224

25+
/*eslint sort-keys: "error"*/
26+
2327
export 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

4652
export 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

Comments
 (0)