Core: I am creating a typescript project based on adonisjs

Created on 22 Feb 2020  路  5Comments  路  Source: adonisjs/core

I am creating a typescript project based on adonisjs. But I have a problem with require-stack. I don't know how to fix it, or I have to fix @ adonisjs / fold. I wonder if you can help me?
Line:
return require (requirePath);
I want to turn it into.
const m = require (requirePath);
if (m.default) {
return m.default;
} else if (m [path.basename (requirePath)]) {
return m [path.basename (requirePath)];
}
return m;

Question

All 5 comments

How did you create this typescript based project?,

Hey @nguyenpl117! 馃憢

The next release of Adonis will be Typescript based.
No need for you to work on this. 馃

Hey @nguyenpl117! 馃憢

The next release of Adonis will be Typescript based.
No need for you to work on this. 馃

When do you plan to publish it?

How did you create this typescript based project?,

Does the typescript still run javascript normally?

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codingphasedotcom picture codingphasedotcom  路  3Comments

devcaststudio picture devcaststudio  路  3Comments

blendsoft picture blendsoft  路  3Comments

dezashibi picture dezashibi  路  4Comments

themodernpk picture themodernpk  路  3Comments