Ask coding questions

← Back to all posts
what are packager files and why are they in my repl
MartinRimes

does anyone know what packager files are they suddenly appeared in my repl when I tried a test run, are they in my repl because of how big my repl has gotten, is it to big with to many files and folders?

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
MartinRimes
Comments
hotnewtop
RYANTADIPARTHI

Package files are basically package that repl.it makes when you import an outside source, or install something. You choose your own packages too, by clicking on that icon.

MartinRimes

@RYANTADIPARTHI what do you mean by package the repl.it?

RYANTADIPARTHI

@MartinRimes so it's like a installation, something repl.it installs.

MartinRimes

@RYANTADIPARTHI oh ok so I can not get rid of them then and probably should not get rid of them, right?

RayhanADev

@MartinRimes well that’s not entirely correct. Package files are used for configuration of your project, which dependencies are needed, what tools the project uses, etc. It’s not just “what Repl imports”. You should keep them if you don’t want to recreate a package file again and again when your project starts.
~ Ray <3

RYANTADIPARTHI

@MartinRimes yes. Also, if i helped, can you mark my answer? Thanks!

RayhanADev

@RYANTADIPARTHI but you were wrong??? You weren’t even close to right???

MilescOde

@RYANTADIPARTHI what icon?

RayhanADev

Heya @MartinRimes

Package files are used for configuration of your project (project name, author, license, scripts), which dependencies are needed (it’s where Yarn and NPM store their dependencies), what tools the project uses (again, scripts, linter I believe), etc. It’s something practically any project creates to manage it (kinda like an “abstract“ of the project). You should keep them if you don’t want to recreate a package file again and again when your project starts.
~ Ray <3

chessmajor

Hey man, I'm having the same problem. I'm not sure if I should but I just delete them. But you're probably not going to see this considering you submitted this complaint a year ago. :)

MartinRimes

I think that even though python has back packager files I will keep them since I do not understand their code as I am a bit of a noob at coding and all of my programs just use the same like 5 lines pf code over and over and over again

RayhanADev

@MartinRimes lol you’re fine it took a while for me to make real code too, but I suggest that you don’t get confused by RYANTADIPARTHI’s answer. A simple explanation of the packager files is that it contains all the configuration files for your project, not “what Repl imports”. For example, it has your project name, license, scripts, dependencies, etc. I suggest look at my post for the proper explanation because his is completely wrong!

[deleted]

Packager files are just modules. They are libraries which can make coding easier! You can make your own module. But one of the reason's I dont like Python is because it takes forever for the packager files to load.

RayhanADev

@CarlosRosiles again, they aren’t just modules. The packager files are used to configure what your project name, license, scripts, author, repository, etc. is. It is also where npm and yarn store their dependencies. Also yeah, Python isn’t very good at load packager files xD.

[deleted]

@RayhanADev Oh right. Forgot about all those things. And yeah Python is slow at loading the packager files lol

RayhanADev

@CarlosRosiles it’s apparently not just you xD. Nobody seems to know the full purpose of them lmao. Also what is the Python poetry? Is it like the NPM or Yarn for JS?

[deleted]

@RayhanADev Yeah its like npm

RayhanADev