Skip to content

Commit 8b21f83

Browse files
committedAug 30, 2019
Stop using the --exact flag when publishing packages with Lerna.
This follows-up on f710fe4, to see what happens when we allow wider ranges of versions in depended-upon packages by utilizing the caret semantic-versioning operator (i.e. `^`). While I wasn't convinced this was fail-safe, I still think that the changes in f710fe4 add some value when _also_ applying this change. In particular, in my current workflow, I'm publishing a new version of Apollo Server using the `release:server` npm script, and it wants to also publish new versions of `@apollo/gateway` and `@apollo/federation` merely because they are depending on `apollo-server-core` and currently specify their dependency without the caret semver operator. Note: We'll need to wait until the publish after this to see what the effects are (since the first publish will introduce the caret operator), but let's see how this goes! 🧪 cc @trevor-scheer
1 parent 9a31275 commit 8b21f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"compile": "tsc --build tsconfig.build.json",
99
"compile:clean": "tsc --build tsconfig.build.json --clean",
1010
"watch": "tsc --build tsconfig.build.json --watch",
11-
"release": "npm run clean && npm ci && lerna publish --exact --include-merged-tags",
11+
"release": "npm run clean && npm ci && lerna publish --include-merged-tags",
1212
"release:server": "npm run release -- --force-publish=apollo-server,apollo-server-core,apollo-server-azure-functions,apollo-server-cloud-functions,apollo-server-cloudflare,apollo-server-express,apollo-server-fastify,apollo-server-hapi,apollo-server-koa,apollo-server-lambda,apollo-server-micro,apollo-server-testing,apollo-server-integration-testsuite,apollo-server-env,apollo-tracing,apollo-server-types,graphql-extensions,apollo-cache-control,apollo-datasource,apollo-engine-reporting,apollo-server-errors,apollo-server-plugin-base",
1313
"release:federation": "npm run release -- --force-publish=@apollo/federation,@apollo/gateway",
1414
"postinstall": "lerna run prepare && npm run compile",

0 commit comments

Comments
 (0)
Please sign in to comment.