Skip to content

Commit 9194d41

Browse files
committed
chore(lint-readme): filter fastify from dependency list
1 parent c112575 commit 9194d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lint-readme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
const packageRoot = process.cwd();
55
const monorepoRoot = path.resolve(__dirname, '..');
66

7-
const autoInstrumentationNodeDeps = require(`${monorepoRoot}/metapackages/auto-instrumentations-node/package.json`).dependencies;
7+
const autoInstrumentationNodeDeps = require(`${monorepoRoot}/metapackages/auto-instrumentations-node/package.json`).dependencies.filter(dep => dep !== '@opentelemetry/instrumentation-fastify');
88
const autoInstrumentationWebDeps = require(`${monorepoRoot}/metapackages/auto-instrumentations-web/package.json`).dependencies;
99

1010
// extract info from package.json
@@ -74,7 +74,7 @@ Compatible with OpenTelemetry JS API and SDK \`1.0+\`.
7474
const distText = `If total installation size is not constrained, it is recommended to use the [\`@opentelemetry/auto-instrumentations-web\`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-web) bundle with [\`@opentelemetry/sdk-trace-web\`](https://www.npmjs.com/package/@opentelemetry/sdk-trace-web) for the most seamless instrumentation experience.
7575
7676
Compatible with OpenTelemetry JS API and SDK \`1.0+\`.
77-
`;
77+
`;
7878

7979
if (!currentReadmeContent.includes(distText)) {
8080
throw new Error(

0 commit comments

Comments
 (0)