@platejs/cli 0.0.0-stage → 54.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,15 @@
1
+ import { writeFileSync } from "node:fs";
2
+ import { pathToFileURL } from "node:url";
3
+ //#region src/evaluation-worker.ts
4
+ const [bundlePath, resultPath] = process.argv.slice(2);
5
+ if (!bundlePath || !resultPath) throw new Error("Plate evaluation worker requires bundle and result paths.");
6
+ try {
7
+ const editor = (await import(pathToFileURL(bundlePath).href)).default;
8
+ writeFileSync(resultPath, JSON.stringify(editor));
9
+ process.exit(0);
10
+ } catch (error) {
11
+ process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
12
+ process.exit(1);
13
+ }
14
+ //#endregion
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,63 @@
1
1
  {
2
2
  "name": "@platejs/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "54.0.0-beta.2",
4
+ "description": "Generate exact Plate editor schema contracts and migrations.",
5
+ "keywords": [
6
+ "codegen",
7
+ "editor",
8
+ "plate",
9
+ "schema",
10
+ "typescript"
11
+ ],
12
+ "homepage": "https://platejs.org",
13
+ "bugs": {
14
+ "url": "https://github.com/udecode/plate/issues"
15
+ },
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/udecode/plate.git",
20
+ "directory": "packages/cli"
21
+ },
22
+ "bin": {
23
+ "plate": "./dist/bin.js"
24
+ },
25
+ "files": [
26
+ "dist/**/*"
27
+ ],
28
+ "type": "module",
29
+ "sideEffects": false,
30
+ "exports": {
31
+ "./package.json": "./package.json"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "dependencies": {
37
+ "@antfu/ni": "24.3.0",
38
+ "commander": "14.0.1",
39
+ "esbuild": "0.25.12",
40
+ "kleur": "4.1.5",
41
+ "ora": "8.2.0",
42
+ "prompts": "2.4.2",
43
+ "typescript": "7.0.2",
44
+ "zod": "3.25.61"
45
+ },
46
+ "devDependencies": {
47
+ "@types/node": "24.12.0",
48
+ "@types/prompts": "2.4.9",
49
+ "platejs": "^54.0.0-beta.2"
50
+ },
51
+ "peerDependencies": {
52
+ "platejs": ">=54.0.0-beta.2"
53
+ },
54
+ "scripts": {
55
+ "brl": "echo 'No barrels to generate'",
56
+ "build": "tsdown --config tsdown.config.mts --log-level warn",
57
+ "clean": "rimraf dist",
58
+ "lint": "node ../../tooling/scripts/plate-pkg.cjs p:lint",
59
+ "lint:fix": "node ../../tooling/scripts/plate-pkg.cjs p:lint:fix",
60
+ "test": "bun test src test",
61
+ "typecheck": "node ../../tooling/scripts/typecheck.mjs @platejs/cli"
62
+ }
6
63
  }