Let's finish up some typescript set up inside of our climate package.
I'm going to first begin by opening up the config JSON file inside of you.
We're going to once again find that out option.
I'm going to uncommented and then add in dist like so.
I'm going to save this.
We do not have to spit out a declaration filed in this case because we're never going to import our
Seelie into any other modules, so we don't need any type declaration files generated.
I'll then go back over to my packages, JSON file, also inside of Seelie.
We do not need a main option here because once again, we do not intend to ever import Seelie into any
other project at any point in time.
So I'm going to entirely remove the main field.
I'll then find the script section and we'll add in a script identical to the last one we just put together.
So if anyone ever runs start inside of here, we will start up TSC, Dash, dash, watch dash, dash,
reserve, watch output and again, double check your spelling on preserve and make sure you've got a
capital W and a capital O.
So now to test this out, we'll go back over to our terminal.
We'll make sure that I'm inside of my Seelie directory and I'll do a quick NPM run start.
OK.
Looks like everything was compiled, so if I go back over to the code editor now inside of my Seelie
directory, I should see a dist folder and inside there should be are compiled JavaScript.
So here is all the code, yep, everything looks more or less OK, now, last thing I want to try to
do very quickly is manually running that index dodgiest file.
It's going to go back over to my terminal.
I'm going to stop our NPM run start command.
I'm going to change into that directory.
There's the generated index, not just file.
We'll do a quick note index.
Jess, and sure enough, we still get the correct council log, awesome.
So now we can start to think about how we're going to actually run all these different packages, how
we're going to run these NPM run start commands when we're trying to do some active development on our
project.
Let's take a look at that in just a moment.