package.json required to be present in v3 #5
-
Recently I've been migrating some services from v2 to v3, and of course I ran into a few small issues. But one of the more opaque ones is I was wondering what it is that makes the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The This would be useful when you have a directory structure like the following:
Then you would set |
Beta Was this translation helpful? Give feedback.
The
packageJSON
option is used for reading configuration specified there. However, sincenpm start
must always point to the project'spackage.json
, I think it has much more sense to set aserverDir
option that tells OAS Tools where the server files actually are.This would be useful when you have a directory structure like the following:
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.