How come that in the github repository of Prisma m...
# orm-help
l
How come that in the github repository of Prisma most of the language used is Scala, but when I install Prisma, it's just Javascript/Typescript and no Scala?
d
The Prisma solution is actually written in Scala. The tools for developers for public use is written in JS/TS due to it’s dominance amongst developers (especially those using GraphQL predominantly)
l
Alright, so do the JS/TS files depend on the Scala files? Because when I modify the Scala files and run Prisma afterwards, I do not see any changes.
d
I believe they don’t. What specifically are you modifying?
l
Nothing specifically, I would like to study the code in order to understand the system better and I since some methods are not quite understandable for me, I though I could modify them a bit to see their effect, but modification of Scala files never changed anything, so I thought I could ask here if the Scala files are actually used.
d
They are used, but you might need to put the files through some build process in order to use the final output
l
Well, I build prisma with
yarn
and
yarn build
in the
prisma/cli
directory and install it with
npm install packages/prisma-cli
Is there something wrong with this build process?
d
hrm, should you be installing it via npm? or should you be using
npm link
?
l
I tried it, does not make a difference. I modified the Scala files in the
prisma/server/...
directories and nothing changed.
d
hrm. Maybe @nilan can help us.
n
The repository is a mono repo, so it contains files for the CLI, the server code, documentations and examples. Running the CLI will not directly interfere with the Scala code, for example 🙂
l
So the Scala code is not needed for running Prisma?
n
The Scala code is Prisma 😄
l
Maybe I'm a little confused right now, but if I change/delete the Scala code and execute Prisma using the CLI, why does everything still work normally? Even if the code for Prisma (= Scala code) was deleted before building?