File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/backend-runner/_executors Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1+ import { pick } from 'radash' ;
12import { BackendRunnerService } from '../backend-runner.service' ;
23import { ExecutorExecuteResponseInterface , ExecutorInterface } from '../executors.interface' ;
4+ import { PackageJson } from 'types-package-json' ;
35
46export class DumpPackageConfigExecutor implements ExecutorInterface {
57 public constructor ( public service : BackendRunnerService ) { }
68
79 public async execute ( { job } ) : Promise < ExecutorExecuteResponseInterface > {
8- return {
9- status : 0 ,
10- jobId : job . id ,
11- data : [ this . service . packageJson ] ,
12- } ;
10+ this . service . logger . debug ( 'Dump package config: ' + JSON . stringify ( pick ( this . service . packageJson , [
11+ 'name' ,
12+ 'description' ,
13+ 'version' ,
14+ ] as any ) as Pick < PackageJson , 'name' | 'description' | 'version' > ) ) ;
15+
16+ return { status : 0 , jobId : job . id , data : [ this . service . packageJson ] } ;
1317 }
1418}
You can’t perform that action at this time.
0 commit comments