Skip to content

package.json required to be present in v3 #5

Answered by alesancor1
raoulkent asked this question in Q&A
Discussion options

You must be logged in to vote

The packageJSON option is used for reading configuration specified there. However, since npm start must always point to the project's package.json, I think it has much more sense to set a serverDir option that tells OAS Tools where the server files actually are.

This would be useful when you have a directory structure like the following:

L server/
L package.json
L package-lock.json
L ...

Then you would set projectDir to ./sever which makes more sense that setting the location of the package.json, since it will always be the CWD and has no real utility.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raoulkent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants