1
00:00:01,020 --> 00:00:05,490
Onto our next step, we have to make sure that if we are building a Seelie in this case, we are we

2
00:00:05,490 --> 00:00:09,910
need to configure the file that we want to run whenever a user tries to run our package from the terminal.

3
00:00:10,710 --> 00:00:15,300
So this will be identical to what we did just a moment ago, back inside of that tiny deployed package

4
00:00:15,300 --> 00:00:15,890
we put together.

5
00:00:16,440 --> 00:00:22,650
I'm going to find my Seelie package just on file anywhere inside if you're going to add in a bin section.

6
00:00:23,870 --> 00:00:29,870
So whenever someone runs our package from the command line, we're going to try to execute our dist

7
00:00:29,870 --> 00:00:34,090
index, not just file, but in here dist index dojos.

8
00:00:38,640 --> 00:00:43,830
We also need to make sure that we add in that very distinctive little comment inside of our SAAC index

9
00:00:43,830 --> 00:00:44,880
not to file as well.

10
00:00:45,720 --> 00:00:47,010
But the very top of this one.

11
00:00:48,090 --> 00:00:56,130
We can add in lb exclamation usar bean ENB note like so.

12
00:00:58,930 --> 00:01:00,070
OK, simple enough.

13
00:01:02,360 --> 00:01:07,970
Now on to adding a pre published and technically it's a pre publish only script, just to be really

14
00:01:07,970 --> 00:01:08,480
precise.

15
00:01:10,350 --> 00:01:13,820
So let's go through all of our different packages and add that in very quickly, for the most part,

16
00:01:13,880 --> 00:01:16,710
going to be very easy and straightforward, but there's one little exception.

17
00:01:16,770 --> 00:01:17,490
We'll take care of.

18
00:01:18,670 --> 00:01:23,040
They'll begin first with Elai, I'm going to find my package not just on file.

19
00:01:25,600 --> 00:01:28,090
Inside of my script section, I'm going to add in a.

20
00:01:29,460 --> 00:01:31,770
We publish only script.

21
00:01:32,960 --> 00:01:37,640
And whenever we run the script right here, or really NPM runs it for us automatically, all we have

22
00:01:37,640 --> 00:01:39,800
to do once again run the typescript compiler.

23
00:01:39,830 --> 00:01:40,370
That's it.

24
00:01:44,270 --> 00:01:48,980
Camping with local API instead of local will find the package JSON file.

25
00:01:51,080 --> 00:01:53,480
I'm going to remove the test script, which we are not using at all.

26
00:01:54,670 --> 00:01:57,200
And replace it with print publish only.

27
00:01:57,580 --> 00:02:00,100
And again, all I want to do is run.

28
00:02:04,190 --> 00:02:09,169
And then finally, inside of local client, we'll find package, Jason.

29
00:02:11,520 --> 00:02:16,200
And then in this case, if we find our script section down towards the bottom, there already is a built

30
00:02:16,200 --> 00:02:22,430
command so we can add in our own free publish only and then have that just run and run.

31
00:02:22,440 --> 00:02:28,110
Billed as a quick reminder, thanks to a very small bug inside of our markdown library, that we are

32
00:02:28,110 --> 00:02:30,690
using this react in the editor.

33
00:02:30,840 --> 00:02:34,950
It does take a pretty long time for us to build up our local client project.

34
00:02:35,400 --> 00:02:38,940
When we go to publish everything, just just make sure it's very clear.

35
00:02:39,000 --> 00:02:44,640
It will take you several minutes all the way up to 10 minutes plus to build the local client project

36
00:02:44,670 --> 00:02:46,170
in just a very quick reminder there.

37
00:02:47,550 --> 00:02:48,560
OK, this looks good.

38
00:02:51,450 --> 00:02:56,550
Now onto our last step, which we will take care of in the next video we are going to commit to get,

39
00:02:56,910 --> 00:03:01,980
but before we actually do that, there's one other just very small item I want to remind you about.

40
00:03:02,190 --> 00:03:07,440
Remember, we had said a long time ago inside of our Seelie Service Command file.

41
00:03:08,890 --> 00:03:13,090
Remember, we have this is a production flag right here, and I told you that we were going to write

42
00:03:13,090 --> 00:03:19,180
a script to replace this process of note envy at build time with a string of production.

43
00:03:19,480 --> 00:03:25,510
So in other words, we're going to go into this code file and more or less replace that with a string

44
00:03:25,510 --> 00:03:26,320
of production.

45
00:03:26,630 --> 00:03:29,290
And that was specifically when we were trying to deploy this package.

46
00:03:30,010 --> 00:03:31,270
We never actually got around to that.

47
00:03:31,270 --> 00:03:36,370
And it kind of seems like since in this video we are addressing writing some kind of build scripts inside

48
00:03:36,370 --> 00:03:40,240
of your seems like this is probably the time to handle that and just make sure it gets taken care of

49
00:03:40,240 --> 00:03:40,720
correctly.

50
00:03:41,170 --> 00:03:46,060
So rather than committing to get as we would normally do in just a moment, we're going to instead do

51
00:03:46,060 --> 00:03:51,130
a very quick another side to make sure that we do that little script to replace processing and be right

52
00:03:51,130 --> 00:03:52,270
there with that string.

53
00:03:52,650 --> 00:03:54,030
Let's take care of that in just a moment.

