mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-04 20:53:40 -05:00
7320fe2ac1
This is an import of 166ca8da12
with some changes to make it fit into the mono repo.
- TypedEventEmitter has been replaced with EventEmitter2 because EventEmitter2 is faster and TypedEventEmitter had some troubles with the new way of compiling.
- tsc-esm has been replaced with microbundle. The problems that lib0 doesn't export its types correctly has been solved using yarn patch.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
26 lines
822 B
Diff
26 lines
822 B
Diff
diff --git a/package.json b/package.json
|
|
index 5f953f00544710a638dc502b30841d39193f6d3f..6c31784d1b1f32ee8f21106011c4e6ef526f1560 100644
|
|
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -47,18 +47,21 @@
|
|
"./sync.js": "./sync.js",
|
|
"./dist/sync.cjs": "./dist/sync.cjs",
|
|
"./sync": {
|
|
+ "types": "./sync.d.ts",
|
|
"import": "./sync.js",
|
|
"require": "./dist/sync.cjs"
|
|
},
|
|
"./awareness.js": "./awareness.js",
|
|
"./dist/awareness.cjs": "./dist/awareness.cjs",
|
|
"./awareness": {
|
|
+ "types": "./awareness.d.ts",
|
|
"import": "./awareness.js",
|
|
"require": "./dist/awareness.cjs"
|
|
},
|
|
"./auth.js": "./auth.js",
|
|
"./dist/auth.cjs": "./dist/auth.cjs",
|
|
"./auth": {
|
|
+ "types": "./auth.d.ts",
|
|
"import": "./auth.js",
|
|
"require": "./dist/auth.cjs"
|
|
}
|