File tree 2 files changed +8
-9
lines changed 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- const path = require ( 'node:path' ) ;
4
- const os = require ( 'node:os' ) ;
5
-
6
- const fs = require ( 'fs-extra' ) ;
7
-
8
3
// To use V8's code cache to speed up instantiation time
9
4
require ( 'v8-compile-cache' ) ;
10
5
11
- const EXLINT_FOLDER_PATH = path . join ( os . homedir ( ) , '.exlint' ) ;
12
-
13
- fs . ensureDir ( EXLINT_FOLDER_PATH ) ;
14
-
15
6
function onFatalError ( ) {
16
7
process . exitCode = 1 ;
17
8
}
Original file line number Diff line number Diff line change
1
+ import path from 'node:path' ;
2
+
3
+ import fs from 'fs-extra' ;
1
4
import { Logger } from '@nestjs/common' ;
2
5
import { CommandFactory } from 'nest-commander' ;
3
6
4
7
import { AppModule } from './app.module' ;
8
+ import { EXLINT_FOLDER_PATH } from './models/exlint-folder' ;
9
+
10
+ const packageJsonPath = path . join ( EXLINT_FOLDER_PATH , 'package.json' ) ;
11
+
12
+ await fs . outputJson ( packageJsonPath , { } ) ;
5
13
6
14
await CommandFactory . run ( AppModule , {
7
15
logger : process . env . NODE_ENV === 'development' ? new Logger ( ) : false ,
You can’t perform that action at this time.
0 commit comments