Skip to content

Commit

Permalink
Upgrade Reflect to 0.39.202402220553 (#54)
Browse files Browse the repository at this point in the history
* Upgrade to 0.39.202402220553

* moa

---------

Co-authored-by: Aaron Boodman <aaron@aaronboodman.com>
  • Loading branch information
cesara and aboodman authored Feb 23, 2024
1 parent d66ae77 commit 1e24b84
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion examples/codemirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@codemirror/lang-javascript": "^6.2.1",
"@rocicorp/eslint-config": "^0.5.1",
"@rocicorp/prettier-config": "^0.2.0",
"@rocicorp/reflect": "^0.39.202402020122",
"@rocicorp/reflect": "^0.39.202402220553",
"@types/react-dom": "^18.2.17",
"@types/react": "^18.2.38",
"@vitejs/plugin-react": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/monaco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@rocicorp/eslint-config": "^0.5.1",
"@rocicorp/prettier-config": "^0.2.0",
"@rocicorp/reflect": "^0.39.202402020122",
"@rocicorp/reflect": "^0.39.202402220553",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/tiptap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"next": "^13.5.4"
},
"dependencies": {
"@rocicorp/reflect": "^0.39.202402020122",
"@rocicorp/reflect": "^0.39.202402220553",
"@tiptap/core": "^2.0.4",
"@tiptap/extension-code-block-lowlight": "^2.1.13",
"@tiptap/extension-collaboration": "^2.0.4",
Expand Down
27 changes: 13 additions & 14 deletions examples/tiptap/publish-reflect.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@ const appName = `${appBaseName}-${refName}`
publish();

async function publish() {
const output = await runCommand("npx", [
"reflect",
"publish",
"--server-path=./src/reflect/index.ts",
"--reflect-channel=canary",
`--app=${appName}`,
"--auth-key-from-env=REFLECT_AUTH_KEY",
]);
const lines = output.toString().split("\n");
const success = lines.findIndex((line) =>
line.includes("🎁 Published successfully to:")
const output = JSON.parse(
await runCommand("npx", [
"reflect",
"publish",
"--server-path=./src/reflect/index.ts",
"--reflect-channel=canary",
`--app=${appName}`,
"--auth-key-from-env=REFLECT_AUTH_KEY",
"--output=json",
])
);
const url = lines[success + 1];

fs.writeFileSync("./.env", `NEXT_PUBLIC_REFLECT_URL=${url}`);
if (output.success) {
fs.writeFileSync("./.env", `NEXT_PUBLIC_REFLECT_URL=${output.url}`);
}

console.log("wrote env file at: ", path.resolve("./.env"));
console.log(fs.readFileSync("./.env").toString());
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/reflect-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:watch": "vitest watch --browser.provider=playwright --browser.name=chromium --browser.headless"
},
"peerDependencies": {
"@rocicorp/reflect": "^0.39.202402020122",
"@rocicorp/reflect": "^0.39.202402220553",
"y-protocols": "^1.0.6",
"yjs": "^13.6.10"
},
Expand Down

0 comments on commit 1e24b84

Please sign in to comment.