1
00:00:01,080 --> 00:00:04,560
Let's finish up some typescript set up inside of our climate package.

2
00:00:05,210 --> 00:00:09,360
I'm going to first begin by opening up the config JSON file inside of you.

3
00:00:09,410 --> 00:00:13,560
We're going to once again find that out option.

4
00:00:13,570 --> 00:00:17,070
I'm going to uncommented and then add in dist like so.

5
00:00:19,870 --> 00:00:20,770
I'm going to save this.

6
00:00:21,840 --> 00:00:26,190
We do not have to spit out a declaration filed in this case because we're never going to import our

7
00:00:26,190 --> 00:00:31,110
Seelie into any other modules, so we don't need any type declaration files generated.

8
00:00:31,910 --> 00:00:35,940
I'll then go back over to my packages, JSON file, also inside of Seelie.

9
00:00:37,630 --> 00:00:43,210
We do not need a main option here because once again, we do not intend to ever import Seelie into any

10
00:00:43,210 --> 00:00:45,040
other project at any point in time.

11
00:00:45,550 --> 00:00:47,860
So I'm going to entirely remove the main field.

12
00:00:50,140 --> 00:00:54,730
I'll then find the script section and we'll add in a script identical to the last one we just put together.

13
00:00:55,150 --> 00:01:02,530
So if anyone ever runs start inside of here, we will start up TSC, Dash, dash, watch dash, dash,

14
00:01:02,830 --> 00:01:08,410
reserve, watch output and again, double check your spelling on preserve and make sure you've got a

15
00:01:08,410 --> 00:01:10,210
capital W and a capital O.

16
00:01:12,670 --> 00:01:14,920
So now to test this out, we'll go back over to our terminal.

17
00:01:16,760 --> 00:01:21,350
We'll make sure that I'm inside of my Seelie directory and I'll do a quick NPM run start.

18
00:01:24,270 --> 00:01:24,680
OK.

19
00:01:24,820 --> 00:01:29,570
Looks like everything was compiled, so if I go back over to the code editor now inside of my Seelie

20
00:01:29,580 --> 00:01:34,560
directory, I should see a dist folder and inside there should be are compiled JavaScript.

21
00:01:35,990 --> 00:01:40,250
So here is all the code, yep, everything looks more or less OK, now, last thing I want to try to

22
00:01:40,250 --> 00:01:43,550
do very quickly is manually running that index dodgiest file.

23
00:01:44,320 --> 00:01:45,650
It's going to go back over to my terminal.

24
00:01:46,290 --> 00:01:48,440
I'm going to stop our NPM run start command.

25
00:01:49,630 --> 00:01:51,700
I'm going to change into that directory.

26
00:01:53,270 --> 00:01:55,520
There's the generated index, not just file.

27
00:01:56,200 --> 00:01:57,950
We'll do a quick note index.

28
00:01:59,570 --> 00:02:04,160
Jess, and sure enough, we still get the correct council log, awesome.

29
00:02:05,600 --> 00:02:09,919
So now we can start to think about how we're going to actually run all these different packages, how

30
00:02:09,919 --> 00:02:14,180
we're going to run these NPM run start commands when we're trying to do some active development on our

31
00:02:14,180 --> 00:02:14,690
project.

32
00:02:15,050 --> 00:02:16,570
Let's take a look at that in just a moment.

