Skip to content

Commit

Permalink
basic changesets setup
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Dec 17, 2024
1 parent 979e605 commit 3563f21
Show file tree
Hide file tree
Showing 7 changed files with 522 additions and 32 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [["@apollo/*"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["app-dir", "hack-the-supergraph-ssr", "apollo-next-13-demo"]
}
5 changes: 5 additions & 0 deletions .changeset/nine-maps-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client-react-streaming": patch
---

Change package publishing to Changesets
4 changes: 1 addition & 3 deletions integration-test/shared/build-client-react-streaming.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ the package.
const { execFileSync } = require("node:child_process");
const { join, dirname } = require("node:path");

const monorepoRoot = dirname(
require.resolve("monorepo", { paths: [process.env.INIT_CWD] })
);
const monorepoRoot = join(process.env.PROJECT_CWD, "..");
const pathToArchive = join(execEnv.tempDir, "archive.tgz");

execFileSync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ the package.
const { execFileSync } = require("node:child_process");
const { join, dirname } = require("node:path");

const monorepoRoot = dirname(
require.resolve("monorepo", { paths: [process.env.INIT_CWD] })
);
const monorepoRoot = join(process.env.PROJECT_CWD, "..");
const pathToArchive = join(execEnv.tempDir, "archive.tgz");

setTimeout(() => {
Expand Down
6 changes: 3 additions & 3 deletions integration-test/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ __metadata:

"@apollo/client-react-streaming@exec:./shared/build-client-react-streaming.cjs::locator=%40integration-test%2Froot%40workspace%3A.":
version: 0.11.7
resolution: "@apollo/client-react-streaming@exec:./shared/build-client-react-streaming.cjs#./shared/build-client-react-streaming.cjs::hash=48b117&locator=%40integration-test%2Froot%40workspace%3A."
resolution: "@apollo/client-react-streaming@exec:./shared/build-client-react-streaming.cjs#./shared/build-client-react-streaming.cjs::hash=4f1b75&locator=%40integration-test%2Froot%40workspace%3A."
dependencies:
ts-invariant: "npm:^0.10.3"
peerDependencies:
"@apollo/client": ^3.10.4
react: ^18 || >=19.0.0-rc
checksum: 10/8e12155ebcb9672f5b645c364d356018014df750412c61613341121ebb4d4eabb5f42cd9018cc3a81ad988f1b425548d68254ca49ede19c31d0d9e5a9a4f240a
checksum: 10/776f2b39d02b55f0ce93bbbecf1cca82343bedc7e7427869ed060a02eea846cc76a165b9744f625ee7c4a992310522fe768a8bd90f28b52c4b77070929651525
languageName: node
linkType: hard

Expand Down Expand Up @@ -82,7 +82,7 @@ __metadata:

"@apollo/experimental-nextjs-app-support@exec:./shared/build-experimental-nextjs-app-support.cjs::locator=%40integration-test%2Froot%40workspace%3A.":
version: 0.11.7
resolution: "@apollo/experimental-nextjs-app-support@exec:./shared/build-experimental-nextjs-app-support.cjs#./shared/build-experimental-nextjs-app-support.cjs::hash=fa2496&locator=%40integration-test%2Froot%40workspace%3A."
resolution: "@apollo/experimental-nextjs-app-support@exec:./shared/build-experimental-nextjs-app-support.cjs#./shared/build-experimental-nextjs-app-support.cjs::hash=db9e8a&locator=%40integration-test%2Froot%40workspace%3A."
dependencies:
"@apollo/client-react-streaming": "npm:0.11.7"
peerDependencies:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "monorepo",
"private": true,
"packageManager": "yarn@4.2.2",
"workspaces": [
"packages/*",
"examples/*"
],
"main": "package.json",
"dependencies": {
"monorepo": "link:.",
"@changesets/cli": "^2.27.10",
"prettier": "^3.0.0",
"semver": "^7.6.0"
},
Expand Down
Loading

0 comments on commit 3563f21

Please sign in to comment.