Skip to content

Commit d0f6bbe

Browse files
committedJan 29, 2024
add child_process to dependencies
1 parent c160005 commit d0f6bbe

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎src/index.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable mmkal/@typescript-eslint/restrict-template-expressions */
2+
import * as child_process from 'child_process'
23
import * as dedent from 'dedent'
34
import type * as eslint from 'eslint'
45

@@ -15,7 +16,16 @@ import * as readPkgUp from 'read-pkg-up'
1516
import * as presetsModule from './presets'
1617
import {createProcessor} from './processor'
1718

18-
export const dependencies: presetsModule.PresetDependencies = {dedent, fs, glob, jsYaml, lodash, path, readPkgUp}
19+
export const dependencies: presetsModule.PresetDependencies = {
20+
dedent,
21+
fs,
22+
glob,
23+
jsYaml,
24+
lodash,
25+
path,
26+
readPkgUp,
27+
child_process,
28+
}
1929

2030
// idea: codegen/fs rule. type fs.anything and it generates an import for fs. same for path and os.
2131

‎src/presets/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type PresetMeta = {
1313
export interface PresetDependencies {
1414
fs: typeof import('fs')
1515
path: typeof import('path')
16+
child_process: typeof import('child_process')
1617
lodash: typeof import('lodash')
1718
jsYaml: typeof import('js-yaml')
1819
dedent: typeof import('dedent')

0 commit comments

Comments
 (0)
Please sign in to comment.