Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3178beb
Enable global cache in .yarnrc.yml
arthrod Feb 8, 2026
e875350
Remove all @playwright references from yarn.lock
arthrod Feb 15, 2026
1521204
Remove PlaywrightPlugin import and usage from playground-demo.tsx
arthrod Feb 15, 2026
47b1b1b
Remove @platejs/playwright dependency from package.json
arthrod Feb 15, 2026
25cb949
Bump the npm_and_yarn group across 4 directories with 2 updates
dependabot[bot] Feb 15, 2026
0b33104
Merge branch 'main' into dependabot/npm_and_yarn/npm_and_yarn-b4522fb525
arthrod Feb 15, 2026
65bb7ba
Merge pull request #73 from arthrod/dependabot/npm_and_yarn/npm_and_y…
arthrod Feb 15, 2026
0fbec3d
Updated yarn.lock to remove Playwright references and restore content…
arthrod Feb 15, 2026
156f7db
Add nixpacks configuration for installation and build
arthrod Feb 16, 2026
300416f
Update installation and build commands in nixpacks.toml
arthrod Feb 16, 2026
19789bf
Update .yarnrc.yml
arthrod Feb 16, 2026
2d5cad6
Update nixpacks.toml
arthrod Feb 16, 2026
851671c
Update nixpacks.toml
arthrod Feb 16, 2026
18d21fc
Update nixpacks.toml
arthrod Feb 16, 2026
552ed8b
Update nixpacks.toml
arthrod Feb 16, 2026
4b90e0b
Update nixpacks.toml
arthrod Feb 16, 2026
9a09d40
Update package.json
arthrod Feb 16, 2026
b54257d
Update nixpacks.toml
arthrod Feb 16, 2026
5aeb358
Update nixpacks.toml
arthrod Feb 16, 2026
090dad0
Update nixpacks.toml
arthrod Feb 16, 2026
d31e2a6
Update package.json
arthrod Feb 16, 2026
35ff547
Update package.json
arthrod Feb 16, 2026
1f63104
Update package.json
arthrod Feb 16, 2026
0ab9b8f
Update nixpacks.toml
arthrod Feb 16, 2026
f52a889
Update nixpacks.toml
arthrod Feb 16, 2026
a1b50d2
Update nixpacks.toml
arthrod Feb 16, 2026
c8bc686
Update nixpacks.toml
arthrod Feb 16, 2026
c673eea
Update .yarnrc.yml
arthrod Feb 16, 2026
911f160
Update package.json
arthrod Feb 16, 2026
346ecda
Update .yarnrc.yml
arthrod Feb 16, 2026
ee7ab88
Update nixpacks.toml
arthrod Feb 16, 2026
43e310e
Update package.json
arthrod Feb 16, 2026
91fb93f
Create railpack.toml
arthrod Feb 17, 2026
3f5b041
Update nixpacks.toml
arthrod Feb 17, 2026
8552a02
Update railpack.toml
arthrod Feb 17, 2026
92a3246
Create railway. json
arthrod Feb 17, 2026
3d05cea
Delete nixpacks.toml
arthrod Feb 17, 2026
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: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
enableScripts: true

compressionLevel: 0

defaultSemverRangePrefix: ""
Expand Down
44 changes: 2 additions & 42 deletions apps/www/package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The removal of essential fields like name, version, and especially scripts from this package.json is a critical issue. The application's build and deployment processes, as defined in the new railpack.toml and railway.json files, rely on build and start scripts that are no longer present in this workspace package. This will cause the build and deployment to fail. Given the PR title is "WIP: local changes", this may have been an accidental change from a stash. These fields should be restored.

"name": "www",
"version": "0.0.1",
"private": true,
"description": "Plate documentation website",
"type": "module",
Comment on lines -2 to -6
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Stripping nearly all top-level fields from package.json will likely break the app workspace configuration.

This package.json now only keeps dependencies and removes name, version, private, scripts, type, and browserslist. In a monorepo this can stop the package from behaving as a proper workspace (no runnable scripts like dev/build, and tools depending on name/version may misbehave). If you’re centralizing scripts/metadata at the root, please either keep at least name, version, and private, or confirm that all relevant tooling (e.g. turbo, workspace config, deployment) no longer relies on these fields.

"scripts": {
"prebuild": "yarn build:contentlayer",
"build": "yarn prebuild && yarn r && NODE_OPTIONS='--max-old-space-size=8192' next build",
"build:contentlayer": "contentlayer2 build",
"build:registry": "NODE_ENV=production tsx --tsconfig ./scripts/tsconfig.scripts.json scripts/build-registry.mts",
"build:tw": "yarn tailwindcss -i ./src/app/globals.css -o ./public/tailwind.css --minify",
"dev": "concurrently \"contentlayer2 dev\" \"next dev\" \"PORT=4444 node ../../node_modules/y-webrtc/bin/server.js\"",
"lint": "yarn p:lint",
"lint:fix": "yarn p:lint:fix",
"preview": "next build && next start",
"r": "concurrently \"yarn build:registry\" \"yarn build:tw\"",
"rc": "concurrently \"contentlayer2 dev\" \"next dev\" \"PORT=4444 node ../../node_modules/y-webrtc/bin/server.js\"",
"rd": "NODE_ENV=development tsx --tsconfig ./scripts/tsconfig.scripts.json scripts/build-registry.mts",
"registry:capture": "tsx --tsconfig ./scripts/tsconfig.scripts.json ./scripts/capture-registry.mts",
"shadcn:build": "shadcn build public/r/registry.json",
"shadcn:build:docs": "shadcn build public/r/registry-docs.json",
"shadcn:dev": "shadcn build public/rd/registry.json --output public/rd",
"shadcn:dev:docs": "shadcn build public/rd/registry-docs.json --output public/rd",
"start": "next start",
"test:r": "tsx --tsconfig ./scripts/tsconfig.scripts.json ./scripts/test-registry.mts",
"typecheck": "yarn prebuild && tsc --noEmit",
"typecheck:watch": "yarn typecheck --watch"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@ai-sdk/gateway": "^3.0.0",
"@ai-sdk/google": "^3.0.0",
Expand Down Expand Up @@ -138,7 +98,7 @@
"lodash": "4.17.21",
"lowlight": "3.3.0",
"lucide-react": "0.514.0",
"next": "16.0.10",
"next": "16.1.5",
"next-contentlayer2": "0.4.6",
"next-themes": "0.4.6",
"node-fetch": "3.3.2",
Expand Down Expand Up @@ -206,4 +166,4 @@
"unist-builder": "4.0.0",
"unist-util-visit": "5.0.0"
}
}
}
76 changes: 9 additions & 67 deletions apps/www/src/registry/examples/playground-demo.tsx
Original file line number Diff line number Diff line change
@@ -1,69 +1,11 @@
'use client';
import React from 'react';

import * as React from 'react';
const PlaygroundDemo = () => {
return (
<div>
<h1>Playground Demo</h1>
</div>
);
};
Comment on lines +3 to +9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): New PlaygroundDemo no longer renders the editor playground, which may be a regression in behavior.

The previous version instantiated a fully functional Plate editor playground (including id-driven features like copilot, list variants, forced layout, etc.), while the new version only shows a static heading and ignores props, plugins, and localized initial value. Any routes/docs/registry entries expecting an interactive editor will silently lose functionality. If the goal is simplification, either update all consumers that depend on the playground behavior or introduce a separate minimal demo and preserve this one’s existing behavior.


import { PlaywrightPlugin } from '@platejs/playwright';
import { KEYS, NormalizeTypesPlugin } from 'platejs';
import { Plate, usePlateEditor } from 'platejs/react';

import { useLocale } from '@/hooks/useLocale';
import { getI18nValues } from '@/i18n/getI18nValues';
import { EditorKit } from '@/registry/components/editor/editor-kit';
import { CopilotKit } from '@/registry/components/editor/plugins/copilot-kit';
import { ExcalidrawKit } from '@/registry/components/editor/plugins/excalidraw-kit';
import { Editor, EditorContainer } from '@/registry/ui/editor';

export default function PlaygroundDemo({
id,
className,
}: {
id?: string;
className?: string;
}) {
const locale = useLocale();
const value = getI18nValues(locale).playground;

const editor = usePlateEditor(
{
override: {
enabled: {
[KEYS.copilot]: id === 'copilot',
[KEYS.indent]: id !== 'listClassic',
[KEYS.list]: id !== 'listClassic',
[KEYS.listClassic]: id === 'listClassic',
[KEYS.playwright]: process.env.NODE_ENV !== 'production',
},
},
plugins: [
...CopilotKit,
...EditorKit,
...ExcalidrawKit,

NormalizeTypesPlugin.configure({
enabled: id === 'forced-layout',
options: {
rules: [{ path: [0], strictType: 'h1' }],
},
}),

// Testing
PlaywrightPlugin,
],
value,
},
[]
);

return (
<Plate editor={editor}>
<EditorContainer className={className}>
<Editor
variant="demo"
className="pb-[20vh]"
placeholder="Type something..."
spellCheck={false}
/>
</EditorContainer>
</Plate>
);
}
export default PlaygroundDemo;
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"g:typecheck": "turbo --filter \"./packages/**\" typecheck",
"g:typecheck:all": "turbo typecheck",
"gen:package": "yarn plop --plopfile tooling/scripts/plop/plopfile.cjs package",
"postinstall": "bunx skiller@latest apply && patch-package --patch-dir tooling/patches",
"lint": "biome check . && eslint",
"lint:fix": "biome check . --fix",
"nuke:node_modules": "rimraf '**/node_modules'",
Expand All @@ -55,6 +54,7 @@
"p:tsdown": "cd $INIT_CWD && tsdown --config=${PROJECT_CWD}/tooling/config/tsdown.config.ts --log-level warn",
"p:typecheck": "cd $INIT_CWD && tsc -p $INIT_CWD/tsconfig.json",
"r": "yarn workspace www r",
"postinstall": "patch-package --patch-dir tooling/patches",
"rc": "turbo --filter=www rc",
"rd": "yarn workspace www rd",
"release": "yarn build && yarn changeset publish",
Expand Down Expand Up @@ -106,14 +106,16 @@
"autoprefixer": "10.4.21",
"babel-plugin-react-compiler": "1.0.0",
"barrelsby": "2.8.1",
"bun": "^1.3",
"commander": "14.0.1",
"concurrently": "9.1.2",
"cross-env": "7.0.3",
"dotenv": "16.5.0",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "7.0.1",
"openai": "5.3.0",
"patch-package": "8.0.0",
"patch-package": "8.0.0",
"postinstall-postinstall": "^2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The postinstall-postinstall package appears to be redundant. You've correctly enabled scripts in .yarnrc.yml with enableScripts: true, which is the standard way to handle postinstall scripts in Yarn Berry (v2+). This package is typically a workaround for older package managers or configurations that don't run post-install scripts automatically. Removing this dependency will simplify your project's tooling.

"prompts": "2.4.2",
"react": "19.2.3",
"react-dnd-test-backend": "16.0.1",
Expand Down
9 changes: 9 additions & 0 deletions railpack.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

[build]
builder = "RAILPACK"
buildCommand = "yarn install --refresh-lockfile && yarn postinstall && yarn turbo run build --filter=www"

[deploy]
startCommand = "cd apps/www && yarn start"
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10
18 changes: 18 additions & 0 deletions railway. json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://schema.railpack.com",
"provider": "node",
"steps": {
"install": {
"commands": ["yarn install --refresh-lockfile"]
},
"postinstall": {
"commands": ["yarn postinstall"]
},
"build": {
"commands": ["yarn build"]
}
},
"deploy": {
"startCommand": "yarn start"
}
}
4 changes: 2 additions & 2 deletions templates/plate-playground-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@radix-ui/react-tooltip": "^1.2.8",
"@udecode/cn": "^52.0.1",
"@uploadthing/react": "7.3.3",
"ai": "5.0.28",
"ai": "5.0.52",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
Expand All @@ -74,7 +74,7 @@
"lodash": "^4.17.21",
"lowlight": "^3.3.0",
"lucide-react": "^0.554.0",
"next": "16.0.3",
"next": "16.1.5",
"pdf-lib": "^1.17.1",
"platejs": "^52.0.1",
"react": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/plate-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"class-variance-authority": "0.7.1",
"clsx": "^2.1.1",
"lucide-react": "0.554.0",
"next": "16.0.3",
"next": "16.1.5",
"platejs": "^52.0.1",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
Loading