diff --git a/CHANGELOG.md b/CHANGELOG.md index c78e4ea8aa6..f4b11d2d46d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The version headers in this history reflect the versions of Apollo Server itself - `apollo-server-core`: Only generate the schema hash once on startup rather than twice. [PR #5757](https://github.com/apollographql/apollo-server/pull/5757) - `apollo-datasource-rest@3.2.1`: When choosing whether or not to parse a response as JSON, treat any `content-type` ending in `+json` as JSON rather than just `application/hal+json` (in addition to `application/json`). [PR #5737](https://github.com/apollographql/apollo-server/pull/5737) - `apollo-server`: You can now configure the health check URL path with the `healthCheckPath` constructor option, or disable serving health checks by passing `null` for this option. (This option is specific to the batteries-included `apollo-server` package; if you're using a framework integration package and want to serve a health check at a different path, just use your web framework directly.) [PR #5270](https://github.com/apollographql/apollo-server/pull/5270) [Issue #3577](https://github.com/apollographql/apollo-server/issues/3577) +- Tests are no longer distributed inside published npm modules. [PR #5799](https://github.com/apollographql/apollo-server/pull/5799) [Issue #5781](https://github.com/apollographql/apollo-server/issues/5781) ## v3.3.0 diff --git a/packages/apollo-datasource-rest/.npmignore b/packages/apollo-datasource-rest/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-datasource-rest/.npmignore +++ b/packages/apollo-datasource-rest/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-datasource/.npmignore b/packages/apollo-datasource/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-datasource/.npmignore +++ b/packages/apollo-datasource/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-reporting-protobuf/.npmignore b/packages/apollo-reporting-protobuf/.npmignore index 14364dddf5b..88f31dc29d2 100644 --- a/packages/apollo-reporting-protobuf/.npmignore +++ b/packages/apollo-reporting-protobuf/.npmignore @@ -1,6 +1,11 @@ +# Note that this npmignore file differs from the others because this package +# puts its generated files in "generated" and checks them in to git rather than +# unversioned in "dist". + * !src/**/* +src/**/__tests__/** !generated/**/* -generated/**/*.test.* +generated/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-azure-functions/.npmignore b/packages/apollo-server-azure-functions/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-azure-functions/.npmignore +++ b/packages/apollo-server-azure-functions/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-cache-memcached/.npmignore b/packages/apollo-server-cache-memcached/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-cache-memcached/.npmignore +++ b/packages/apollo-server-cache-memcached/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-cache-redis/.npmignore b/packages/apollo-server-cache-redis/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-cache-redis/.npmignore +++ b/packages/apollo-server-cache-redis/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-caching/.npmignore b/packages/apollo-server-caching/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-caching/.npmignore +++ b/packages/apollo-server-caching/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-cloud-functions/.npmignore b/packages/apollo-server-cloud-functions/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-cloud-functions/.npmignore +++ b/packages/apollo-server-cloud-functions/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-core/.npmignore b/packages/apollo-server-core/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-core/.npmignore +++ b/packages/apollo-server-core/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-env/.npmignore b/packages/apollo-server-env/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-env/.npmignore +++ b/packages/apollo-server-env/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-errors/.npmignore b/packages/apollo-server-errors/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-errors/.npmignore +++ b/packages/apollo-server-errors/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-express/.npmignore b/packages/apollo-server-express/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-express/.npmignore +++ b/packages/apollo-server-express/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-fastify/.npmignore b/packages/apollo-server-fastify/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-fastify/.npmignore +++ b/packages/apollo-server-fastify/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-hapi/.npmignore b/packages/apollo-server-hapi/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-hapi/.npmignore +++ b/packages/apollo-server-hapi/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-integration-testsuite/.npmignore b/packages/apollo-server-integration-testsuite/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-integration-testsuite/.npmignore +++ b/packages/apollo-server-integration-testsuite/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-koa/.npmignore b/packages/apollo-server-koa/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-koa/.npmignore +++ b/packages/apollo-server-koa/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-lambda/.npmignore b/packages/apollo-server-lambda/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-lambda/.npmignore +++ b/packages/apollo-server-lambda/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-micro/.npmignore b/packages/apollo-server-micro/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-micro/.npmignore +++ b/packages/apollo-server-micro/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-plugin-base/.npmignore b/packages/apollo-server-plugin-base/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-plugin-base/.npmignore +++ b/packages/apollo-server-plugin-base/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-plugin-response-cache/.npmignore b/packages/apollo-server-plugin-response-cache/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-plugin-response-cache/.npmignore +++ b/packages/apollo-server-plugin-response-cache/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server-types/.npmignore b/packages/apollo-server-types/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server-types/.npmignore +++ b/packages/apollo-server-types/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md diff --git a/packages/apollo-server/.npmignore b/packages/apollo-server/.npmignore index a165046d359..311075fe3ea 100644 --- a/packages/apollo-server/.npmignore +++ b/packages/apollo-server/.npmignore @@ -1,6 +1,7 @@ * !src/**/* +src/**/__tests__/** !dist/**/* -dist/**/*.test.* +dist/**/__tests__/** !package.json !README.md