Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Reflect to 0.39.202402220553 #54

Merged
merged 2 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading