Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json is copied to the output directory #127

Open
arsinclair opened this issue May 19, 2022 · 4 comments · May be fixed by #132
Open

package.json is copied to the output directory #127

arsinclair opened this issue May 19, 2022 · 4 comments · May be fixed by #132

Comments

@arsinclair
Copy link

package.json and package-lock.json files are copied to the output (bin/Debug/net6/) directory when npm run start is executed. They are also copied to the dist/ directory when npm run build is executed.

This produces an unnecessary clutter in the VSCode NPM Scripts section:

image

Is there any need for these files to be in the output folder? Can they be excluded from the build?

@ElderJames
Copy link
Member

Yes, if user choose to use css, they won't need the package.json, but if they choose less, they need it.

@arsinclair
Copy link
Author

arsinclair commented May 19, 2022

I understand that a user will need a package.json in general, in order to install and run a less-compiler.

My question was what is the need to have a package.json in the output directory, in addition to the root package.json.

@ElderJames
Copy link
Member

Oh, we no nedd the package.json in the output directory

@arsinclair
Copy link
Author

Oh, we no nedd the package.json in the output directory

Good to know, I will take a look how it can be excluded from the build, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants