-
Hello
in
Any suggestion? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hey @melokki! 👋🏻 It seems like an XY Problem. |
Beta Was this translation helpful? Give feedback.
-
I managed to make it working after I did the following: In the in "aliases": {
...
"Helpers": "helpers"
}, and in "compilerOptions": {
"outDir": "build",
"rootDir": "./",
"sourceMap": true,
"paths": {
...
"Helpers/*": [
"./helpers/*"
]
}, Now I can make the import from |
Beta Was this translation helpful? Give feedback.
-
can you guys implement this in command file? @melokki |
Beta Was this translation helpful? Give feedback.
-
Yep, a I was looking how to add a nanoid. Closest is https://docs.adonisjs.com/guides/references/helpers#cuid but it could be nice to add to those provided helpers in an "offficial" way |
Beta Was this translation helpful? Give feedback.
I managed to make it working after I did the following:
In the
root
folder of the application I've created a new folder calledhelpers
in
.adonisrc.json
file I added this line:and in
tsconfig.json
I've added the following:Now I can make the import from
Helpers
and the code works just fine.I don't know if it's the right way