File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
copyFile as __copyFile ,
3
- mkdirp as __mkdirp ,
4
3
pathExists as __pathExists ,
5
4
readFile as __readFile ,
6
5
remove as __remove ,
7
6
writeFile as __writeFile ,
7
+ ensureDir ,
8
8
} from 'fs-extra' ;
9
9
10
10
// Export calls (needed for mocking)
11
11
export const readFile = __readFile ;
12
12
export const writeFile = __writeFile ;
13
13
export const copyFile = __copyFile ;
14
14
export const exists = __pathExists ;
15
- export const mkdir = __mkdirp ;
15
+ export const mkdir = ensureDir ;
16
16
export const rmdir = async ( path : string ) => {
17
17
return Promise . resolve ( ) ;
18
18
} ;
Original file line number Diff line number Diff line change 1
- import { mkdir , readFile , remove } from 'fs-extra' ;
1
+ import { readFile , remove } from 'fs-extra' ;
2
2
import Handlebars from 'handlebars' ;
3
3
import { resolve } from 'path' ;
4
4
5
5
import { Client } from '../../client/interfaces/Client' ;
6
6
import { HttpClient } from '../../HttpClient' ;
7
7
import { Indent } from '../../Indent' ;
8
- import { writeFile } from '../fileSystem' ;
8
+ import { mkdir , writeFile } from '../fileSystem' ;
9
9
import { formatCode } from '../formatCode' ;
10
10
import { formatIndentation } from '../formatIndentation' ;
11
11
import { isDefined } from '../isDefined' ;
@@ -39,7 +39,7 @@ export const writeClientServicesCustomTemplate = async (
39
39
const serviceTemplate = Handlebars . compile ( await readFile ( templatePath , 'utf8' ) ) ;
40
40
41
41
const servicesDir = resolve ( outputPath , 'store' ) ;
42
- await remove ( servicesDir ) ;
42
+ // await remove(servicesDir);
43
43
await mkdir ( servicesDir ) ;
44
44
45
45
for ( const service of client . services ) {
You can’t perform that action at this time.
0 commit comments