razroo / codemorph

Codemorph is an extensible, easy to understand, easy to contribute to, easy to use Codemod library. Codemorph is platform agnostic.
MIT License
21 stars 2 forks source link

readFileSync, writeFileSync breaking change since rootDir for the wor… #11

Closed mystica2000 closed 1 year ago

mystica2000 commented 1 year ago

file path in test files while reading/writing has to be changed to the workspace dir in order for the test file to run tests for the workspace.

when running tests for the workspace using,

npm run test -ws

FileNotFound error for the read/write files in the test files. like, ENOENT: no such file or directory, open 'src/rz/angular/effects/interface/index.ts'

For example: src/rz/angular/effects/directive/user.directive.ts

has to be changed into

effects/directive/user.directive.ts. since rootDir for the workspace file is rz/angular not src/rz/angular

CharlieGreenman commented 1 year ago

I am thinking on this now