@@ -42,7 +42,7 @@ export class CodeTransformer {
42
42
/**
43
43
* The TsMorph project
44
44
*/
45
- # project: Project
45
+ project : Project
46
46
47
47
/**
48
48
* Settings to use when persisting files
@@ -59,7 +59,7 @@ export class CodeTransformer {
59
59
60
60
constructor ( cwd : URL ) {
61
61
this . #cwd = cwd
62
- this . # project = new Project ( {
62
+ this . project = new Project ( {
63
63
tsConfigFilePath : join ( fileURLToPath ( this . #cwd) , 'tsconfig.json' ) ,
64
64
manipulationSettings : { quoteKind : QuoteKind . Single } ,
65
65
} )
@@ -232,7 +232,7 @@ export class CodeTransformer {
232
232
* Get the `start/env.ts` source file
233
233
*/
234
234
const kernelUrl = fileURLToPath ( new URL ( './start/env.ts' , this . #cwd) )
235
- const file = this . # project. getSourceFileOrThrow ( kernelUrl )
235
+ const file = this . project . getSourceFileOrThrow ( kernelUrl )
236
236
237
237
/**
238
238
* Get the `Env.create` call expression
@@ -305,7 +305,7 @@ export class CodeTransformer {
305
305
* Get the `start/kernel.ts` source file
306
306
*/
307
307
const kernelUrl = fileURLToPath ( new URL ( './start/kernel.ts' , this . #cwd) )
308
- const file = this . # project. getSourceFileOrThrow ( kernelUrl )
308
+ const file = this . project . getSourceFileOrThrow ( kernelUrl )
309
309
310
310
/**
311
311
* Process each middleware entry
@@ -326,7 +326,7 @@ export class CodeTransformer {
326
326
* Update the `adonisrc.ts` file
327
327
*/
328
328
async updateRcFile ( callback : ( transformer : RcFileTransformer ) => void ) {
329
- const rcFileTransformer = new RcFileTransformer ( this . #cwd, this . # project)
329
+ const rcFileTransformer = new RcFileTransformer ( this . #cwd, this . project )
330
330
callback ( rcFileTransformer )
331
331
await rcFileTransformer . save ( )
332
332
}
@@ -342,7 +342,7 @@ export class CodeTransformer {
342
342
* Get the `tests/bootstrap.ts` source file
343
343
*/
344
344
const testBootstrapUrl = fileURLToPath ( new URL ( './tests/bootstrap.ts' , this . #cwd) )
345
- const file = this . # project. getSourceFileOrThrow ( testBootstrapUrl )
345
+ const file = this . project . getSourceFileOrThrow ( testBootstrapUrl )
346
346
347
347
/**
348
348
* Add the import declarations
@@ -381,7 +381,7 @@ export class CodeTransformer {
381
381
*/
382
382
const viteConfigTsUrl = fileURLToPath ( new URL ( './vite.config.ts' , this . #cwd) )
383
383
384
- const file = this . # project. getSourceFile ( viteConfigTsUrl )
384
+ const file = this . project . getSourceFile ( viteConfigTsUrl )
385
385
if ( ! file ) {
386
386
throw new Error (
387
387
'Cannot find vite.config.ts file. Make sure to rename vite.config.js to vite.config.ts'
@@ -429,7 +429,7 @@ export class CodeTransformer {
429
429
* Get the `app/policies/main.ts` source file
430
430
*/
431
431
const kernelUrl = fileURLToPath ( new URL ( './app/policies/main.ts' , this . #cwd) )
432
- const file = this . # project. getSourceFileOrThrow ( kernelUrl )
432
+ const file = this . project . getSourceFileOrThrow ( kernelUrl )
433
433
434
434
/**
435
435
* Process each middleware entry
0 commit comments