mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 15:18:38 -04:00
feat(packages): add commons package
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>
This commit is contained in:
parent
814d8bc856
commit
7320fe2ac1
49 changed files with 3058 additions and 88 deletions
26
.yarn/patches/y-protocols-npm-1.0.5-af6f64b4df.patch
Normal file
26
.yarn/patches/y-protocols-npm-1.0.5-af6f64b4df.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue