From dc65376a37d524db66acebcc416f38ddecc6bfbf Mon Sep 17 00:00:00 2001 From: cudr Date: Mon, 28 Oct 2019 09:28:37 +0300 Subject: [PATCH] fix: update missed depts --- packages/backend/.babelrc | 12 +----------- packages/backend/package.json | 8 +++++--- packages/backend/src/Connection.ts | 4 +--- packages/backend/tsconfig.json | 1 + packages/bridge/package.json | 4 +++- packages/client/package.json | 4 ++-- packages/example/package.json | 4 ++-- 7 files changed, 15 insertions(+), 22 deletions(-) diff --git a/packages/backend/.babelrc b/packages/backend/.babelrc index 0d18e14..8b54a5d 100644 --- a/packages/backend/.babelrc +++ b/packages/backend/.babelrc @@ -1,15 +1,5 @@ { - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "esmodules": false - } - } - ], - "@babel/typescript" - ], + "presets": ["@babel/preset-env", "@babel/typescript"], "plugins": [ "@babel/plugin-transform-runtime", "@babel/proposal-class-properties", diff --git a/packages/backend/package.json b/packages/backend/package.json index 061790d..94fb73f 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,11 +1,11 @@ { "name": "@slate-collaborative/backend", - "version": "0.0.2", + "version": "0.0.3", "files": [ "lib" ], "main": "lib/index.js", - "types": "lib/index.d.ts", + "types": "lib/model.d.ts", "description": "slate-collaborative bridge", "repository": { "type": "git", @@ -25,9 +25,11 @@ "watch": "yarn build:js -w" }, "dependencies": { - "@slate-collaborative/bridge": "^0.0.2", + "@babel/runtime": "^7.6.3", + "@slate-collaborative/bridge": "^0.0.3", "automerge": "^0.12.1", "lodash": "^4.17.15", + "slate": "^0.47.8", "socket.io": "^2.2.0", "typescript": "^3.6.3" }, diff --git a/packages/backend/src/Connection.ts b/packages/backend/src/Connection.ts index 3da204a..e070290 100644 --- a/packages/backend/src/Connection.ts +++ b/packages/backend/src/Connection.ts @@ -9,7 +9,7 @@ import { toSync, toJS } from '@slate-collaborative/bridge' import { getClients, defaultValue, defaultOptions } from './utils' import { ConnectionOptions } from './model' -class Connection { +export default class Connection { private io: any private docSet: any private connections: { [key: string]: Automerge.Connection } @@ -194,5 +194,3 @@ class Connection { this.io.close() } } - -export default Connection diff --git a/packages/backend/tsconfig.json b/packages/backend/tsconfig.json index 40950be..b589fe8 100644 --- a/packages/backend/tsconfig.json +++ b/packages/backend/tsconfig.json @@ -6,6 +6,7 @@ "rootDir": "src", "baseUrl": "src", "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "lib": ["dom", "dom.iterable", "esnext"] } } diff --git a/packages/bridge/package.json b/packages/bridge/package.json index ae6b788..d34ae9b 100644 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@slate-collaborative/bridge", - "version": "0.0.2", + "version": "0.0.3", "files": [ "lib" ], @@ -25,6 +25,8 @@ "test": "jest" }, "dependencies": { + "automerge": "^0.12.1", + "slate": "^0.47.8", "typescript": "^3.6.3" }, "devDependencies": { diff --git a/packages/client/package.json b/packages/client/package.json index 78081c1..126afce 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@slate-collaborative/client", - "version": "0.0.2", + "version": "0.0.3", "files": [ "lib" ], @@ -25,7 +25,7 @@ }, "dependencies": { "@babel/preset-react": "^7.0.0", - "@slate-collaborative/bridge": "^0.0.2", + "@slate-collaborative/bridge": "^0.0.3", "automerge": "^0.12.1", "immutable": "^4.0.0-rc.12", "react": "^16.9.0", diff --git a/packages/example/package.json b/packages/example/package.json index 460a1eb..7494c8d 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -5,8 +5,8 @@ "dependencies": { "@emotion/core": "^10.0.17", "@emotion/styled": "^10.0.17", - "@slate-collaborative/backend": "^0.0.2", - "@slate-collaborative/client": "^0.0.2", + "@slate-collaborative/backend": "^0.0.3", + "@slate-collaborative/client": "^0.0.3", "@types/faker": "^4.1.5", "@types/jest": "24.0.18", "@types/node": "12.7.5",