-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
These two work properly (note that there is a proposed solution at the bottom):
typson schema ./api/users.ts
typson schema api/users.ts
These produce errors:
typson schema .\api\users.ts
typson schema api\users.ts
Errors:
typson : { [Error: ENOENT, open 'C:\Users\1198462\Source\Repos\mobiledlr\mobiledlr\api\users.ts\common\mco-list.ts']
At line:2 char:1
+ typson schema api\users.ts
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ({ [Error: ENOEN...n\mco-list.ts']:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
errno: 34,
code: 'ENOENT',
path: 'C:\\Users\\1198462\\Source\\Repos\\mobiledlr\\mobiledlr\\api\\users.ts\\common\\mco-list.ts' }
...
...
...
{ [Error: ENOENT, open 'C:\Users\1198462\Source\Repos\mobiledlr\mobiledlr\api\users.ts\common\user.ts']
errno: 34,
code: 'ENOENT',
path: 'C:\\Users\\1198462\\Source\\Repos\\mobiledlr\\mobiledlr\\api\\users.ts\\common\\user.ts' }
api/users.ts: error TS2095: Could not find symbol 'User'.
api/users.ts: error TS2095: Could not find symbol 'McoList'.
I'm guessing that the error comes from the function fullModulePath - but I haven't looked into that deeply. I propose either using node's (probably not since this is used in the browser also) or do something like the following:path
var s = '.\\as\\asf.ts'
s.replace(/\\/g, '/')Let me know if you would like a pull request.
Metadata
Metadata
Assignees
Labels
No labels