@@ -10,12 +10,12 @@ import { ActionType } from './_enum/action-type.enum';
1010import { ExecutorConfigInterface } from '~/_common/interfaces/executor-config.interface' ;
1111import Redis from 'ioredis' ;
1212import { DumpPackageConfigExecutor } from './_executors/dump-package-config.executor' ;
13- import { PackageJson } from 'types-package-json' ;
14- import { readFileSync } from 'node:fs' ;
13+ // import { PackageJson } from 'types-package-json';
14+ // import { readFileSync } from 'node:fs';
1515
1616@Injectable ( )
1717export class BackendRunnerService implements OnApplicationBootstrap , OnModuleInit {
18- protected _package : Partial < PackageJson > ;
18+ // protected _package: Partial<PackageJson>;
1919 private readonly _logger = new Logger ( BackendRunnerService . name ) ;
2020
2121 protected executors : Map < string , ExecutorInterface > = new Map < string , ExecutorInterface > ( ) ;
@@ -28,9 +28,9 @@ export class BackendRunnerService implements OnApplicationBootstrap, OnModuleIni
2828 return this . _logger ;
2929 }
3030
31- public get packageJson ( ) : Partial < PackageJson > {
32- return this . _package ;
33- }
31+ // public get packageJson(): Partial<PackageJson> {
32+ // return this._package;
33+ // }
3434
3535 public get backendExecutorConfig ( ) : ExecutorConfigInterface {
3636 return this . _config . get < ExecutorConfigInterface > ( 'application.backendExecutorConfig' ) ;
@@ -41,7 +41,7 @@ export class BackendRunnerService implements OnApplicationBootstrap, OnModuleIni
4141 private readonly _backendsConfig : BackendConfigService ,
4242 @InjectRedis ( ) private readonly redis : Redis ,
4343 ) {
44- this . _package = JSON . parse ( readFileSync ( 'package.json' , 'utf-8' ) ) ;
44+ // this._package = JSON.parse(readFileSync('package.json', 'utf-8'));
4545 }
4646
4747 public async onModuleInit ( ) {
0 commit comments