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

Split apiSpecs into separate module #36

Open
james-skinner-deltatre opened this issue Jan 25, 2022 · 0 comments
Open

Split apiSpecs into separate module #36

james-skinner-deltatre opened this issue Jan 25, 2022 · 0 comments

Comments

@james-skinner-deltatre
Copy link

At the moment the src/apiSpecs file is intended for testing only, yet it accounts for almost all of the dependencies of this module.

The upshot is we are pulling in modules like expect which has a shed load of its own dependencies into our production builds.

Ideally we could split the apiSpecs out somehow so this is not the case. Cant think of a really elegant solution but some ideas:

  1. Set the dependencies only needed for this file as optionalDependencies - then consumers can chose not to install. Don't really like this one as I don't know how other modules would use optional dependencies
  2. Move apiSpecs into a subdirectory with its own package.json - then somehow just do a local install on this dir if needed
  3. Move apiSpecs into a totally separate repo - bit of a hassle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant