File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 ],
88 "recursive" : true ,
99 "reporter" : " spec" ,
10- "timeout" : 60000
10+ "timeout" : 60000 ,
11+ "node-option" : [
12+ " experimental-specifier-resolution=node" ,
13+ " loader=ts-node/esm"
14+ ]
1115}
Original file line number Diff line number Diff line change 11@ echo off
22
3- node " %~dp0 \dev" %*
3+ node --loader ts-node/esm --no-warnings=ExperimentalWarning " %~dp0 \dev" %*
Original file line number Diff line number Diff line change 1- #!/usr/bin/env ts-node
2- // eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
3- ( async ( ) => {
4- const oclif = await import ( '@oclif/core' )
5- await oclif . execute ( { development : true , dir : __dirname } )
6- } ) ( )
1+ #!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
2+
3+ import { execute } from '@oclif/core'
4+
5+ await execute ( { development : true , dir : import . meta. url } )
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
3- // eslint-disable-next-line unicorn/prefer-top-level-await
4- ( async ( ) => {
5- const oclif = await import ( '@oclif/core' )
6- await oclif . execute ( { development : true , dir : __dirname } )
7- } ) ( )
3+ import { execute } from '@oclif/core'
4+
5+ await execute ( { dir : import . meta. url } )
Original file line number Diff line number Diff line change 77 "@oclif/core" : " ^3" ,
88 "@oclif/plugin-help" : " ^5" ,
99 "@oclif/plugin-plugins" : " ^3.8.4" ,
10- "eslint-config-prettier" : " ^9.0.0" ,
1110 "semver" : " ^7.5.4" ,
1211 "codify-schemas" : " 1.0.24" ,
1312 "ajv" : " ^8.12.0"
2221 "@types/mock-fs" : " ^4.13.3" ,
2322 "@types/node" : " ^18" ,
2423 "@types/semver" : " ^7.5.4" ,
24+ "eslint-config-prettier" : " ^9.0.0" ,
2525 "chai" : " ^4" ,
2626 "chai-as-promised" : " ^7.1.1" ,
2727 "eslint" : " ^8.51.0" ,
2828 "eslint-config-oclif" : " ^5" ,
2929 "eslint-config-oclif-typescript" : " ^3" ,
3030 "mocha" : " ^10" ,
3131 "mock-fs" : " ^5.2.0" ,
32- "oclif" : " ^4.0.0 " ,
32+ "oclif" : " ^4.5.7 " ,
3333 "shx" : " ^0.3.3" ,
3434 "ts-node" : " ^10.9.1" ,
3535 "typescript" : " ^5" ,
Original file line number Diff line number Diff line change 1- import { ConfigCompiler } from '../../config-compiler/index.js' ;
2- import { PluginCollection } from '../../plugins/plugin-collection.js' ;
3-
41export const PlanOrchestrator = {
52 async run ( rootDirectory : string ) : Promise < string > {
6- const parsedProject = await ConfigCompiler . parseProject ( rootDirectory ) ;
7-
8- const pluginCollection = await PluginCollection . create ( parsedProject ) ;
9- const definitions = await pluginCollection . getResourceDefinitions ( ) ;
10-
11- const compiledProject = await ConfigCompiler . compileProject ( parsedProject , definitions ) ;
12- console . log ( compiledProject ) ;
13- const plan = await pluginCollection . getPlan ( compiledProject ) ;
3+ // const parsedProject = await ConfigCompiler.parseProject(rootDirectory);
4+ //
5+ // const pluginCollection = await PluginCollection.create(parsedProject);
6+ // const definitions = await pluginCollection.getResourceDefinitions();
7+ //
8+ // const compiledProject = await ConfigCompiler.compileProject(parsedProject, definitions);
9+ // console.log(compiledProject);
10+ // const plan = await pluginCollection.getPlan(compiledProject);
11+ //
12+ // await pluginCollection.destroy();
13+ // return JSON.stringify(plan, null, 2);
1414
15- await pluginCollection . destroy ( ) ;
16- return JSON . stringify ( plan , null , 2 ) ;
15+ return '' ;
1716 } ,
1817} ;
You can’t perform that action at this time.
0 commit comments