@lexical/code 0.45.1-nightly.20260604.0 → 0.45.1-nightly.20260605.0

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,18 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ // You are seeing this declaration file because your TypeScript cannot read
10
+ // Lexical's types through the package.json "exports" field.
11
+ //
12
+ // Lexical requires TypeScript >= 5.2 with "moduleResolution" set to
13
+ // "bundler", "node16", or "nodenext". To fix this:
14
+ // 1. Upgrade TypeScript to >= 5.2.
15
+ // 2. In tsconfig.json set "moduleResolution" to "bundler" (recommended for
16
+ // apps/bundlers) or "node16" / "nodenext", and a matching "module".
17
+ import 'Lexical requires TypeScript >=5.2 with moduleResolution bundler, node16, or nodenext';
18
+ export {};
package/package.json CHANGED
@@ -8,14 +8,14 @@
8
8
  "code"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.45.1-nightly.20260604.0",
11
+ "version": "0.45.1-nightly.20260605.0",
12
12
  "main": "./dist/LexicalCode.js",
13
- "types": "./dist/index.d.ts",
13
+ "types": "./dist/typescript-too-old.d.ts",
14
14
  "dependencies": {
15
- "@lexical/code-core": "0.45.1-nightly.20260604.0",
16
- "@lexical/extension": "0.45.1-nightly.20260604.0",
17
- "lexical": "0.45.1-nightly.20260604.0",
18
- "@lexical/code-prism": "0.45.1-nightly.20260604.0"
15
+ "@lexical/code-core": "0.45.1-nightly.20260605.0",
16
+ "@lexical/code-prism": "0.45.1-nightly.20260605.0",
17
+ "@lexical/extension": "0.45.1-nightly.20260605.0",
18
+ "lexical": "0.45.1-nightly.20260605.0"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
@@ -28,6 +28,7 @@
28
28
  ".": {
29
29
  "source": "./src/index.ts",
30
30
  "import": {
31
+ "types@<5.2": "./dist/typescript-too-old.d.ts",
31
32
  "types": "./dist/index.d.ts",
32
33
  "development": "./dist/LexicalCode.dev.mjs",
33
34
  "production": "./dist/LexicalCode.prod.mjs",
@@ -35,6 +36,7 @@
35
36
  "default": "./dist/LexicalCode.mjs"
36
37
  },
37
38
  "require": {
39
+ "types@<5.2": "./dist/typescript-too-old.d.ts",
38
40
  "types": "./dist/index.d.ts",
39
41
  "development": "./dist/LexicalCode.dev.js",
40
42
  "production": "./dist/LexicalCode.prod.js",
@@ -54,5 +56,20 @@
54
56
  "!src/**/*.bench.tsx",
55
57
  "README.md",
56
58
  "LICENSE"
57
- ]
59
+ ],
60
+ "typesVersions": {
61
+ "*": {
62
+ "*": [
63
+ "./dist/typescript-too-old.d.ts"
64
+ ]
65
+ }
66
+ },
67
+ "peerDependencies": {
68
+ "typescript": ">=5.2"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "typescript": {
72
+ "optional": true
73
+ }
74
+ }
58
75
  }