I don't know the definition of "commercial use" very much.
Is this commercial use when using OSS library only in develop environment? I don't use the OSS library in production environment.
Open Source Stack Exchange is a question and answer site for people organizing, marketing or licensing open source development projects. It only takes a minute to sign up.Sign up to join this community
The Open Source Definition describes the fundamental values of open source software. One of these values is that Open Source software may be used for any purpose, including commercial usage. So it is not important for an open-source license whether you are using a library in development or in production. This is in contrast to some proprietary licenses which often do make such a distinction.
However, the details depend entirely on the exact license of the library, so please do read the license terms. If the project doesn't have a license, you have no right to use. But you may freely use code under one of the MIT, Apache, or GPL licenses for any purpose, including a production or development environment. The terms of these licenses only start kicking in if you copy the software outside of your organization.
A handful of Open Source licenses also have terms that apply during the use of the software, without making copies: