hedgedoc/commons/package.json
Tilman Vatteroth 7320fe2ac1 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>
2022-12-11 23:09:10 +01:00

60 lines
1.5 KiB
JSON

{
"name": "@hedgedoc/commons",
"private": true,
"version": "0.3.0",
"description": "Common code between frontend and backend",
"author": "The HedgeDoc Authors",
"license": "AGPL-3.0",
"scripts": {
"build": "rm -rf dist && microbundle",
"build:watch": "rm -rf dist && microbundle -w",
"test": "jest",
"prepublish": "rm -rf dist && yarn lint && yarn build && yarn test",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint --fix --ext .ts src"
},
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"files": [
"LICENSES/*",
"package.json",
"README.md",
"dist/**"
],
"repository": {
"type": "git",
"url": "https://github.com/hedgedoc/hedgedoc.git"
},
"dependencies": {
"eventemitter2": "^6.4.9",
"isomorphic-ws": "^5.0.0",
"lib0": "^0.2.51",
"ws": "^8.0.0",
"y-protocols": "^1.0.0",
"yjs": "13.5.43"
},
"devDependencies": {
"@jest/types": "29.3.1",
"@types/ws": "8.5.3",
"@typescript-eslint/eslint-plugin": "5.44.0",
"@typescript-eslint/parser": "5.44.0",
"eslint": "8.29.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "27.1.6",
"eslint-plugin-prettier": "4.2.1",
"jest": "29.3.1",
"microbundle": "0.15.1",
"prettier": "2.8.1",
"ts-jest": "29.0.3",
"typescript": "4.9.3"
},
"packageManager": "yarn@3.3.0"
}