Skip to content

Commit dc65376

Browse files
committed
fix: update missed depts
1 parent afaff1f commit dc65376

7 files changed

Lines changed: 15 additions & 22 deletions

File tree

packages/backend/.babelrc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
2-
"presets": [
3-
[
4-
"@babel/preset-env",
5-
{
6-
"targets": {
7-
"esmodules": false
8-
}
9-
}
10-
],
11-
"@babel/typescript"
12-
],
2+
"presets": ["@babel/preset-env", "@babel/typescript"],
133
"plugins": [
144
"@babel/plugin-transform-runtime",
155
"@babel/proposal-class-properties",

packages/backend/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@slate-collaborative/backend",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"files": [
55
"lib"
66
],
77
"main": "lib/index.js",
8-
"types": "lib/index.d.ts",
8+
"types": "lib/model.d.ts",
99
"description": "slate-collaborative bridge",
1010
"repository": {
1111
"type": "git",
@@ -25,9 +25,11 @@
2525
"watch": "yarn build:js -w"
2626
},
2727
"dependencies": {
28-
"@slate-collaborative/bridge": "^0.0.2",
28+
"@babel/runtime": "^7.6.3",
29+
"@slate-collaborative/bridge": "^0.0.3",
2930
"automerge": "^0.12.1",
3031
"lodash": "^4.17.15",
32+
"slate": "^0.47.8",
3133
"socket.io": "^2.2.0",
3234
"typescript": "^3.6.3"
3335
},

packages/backend/src/Connection.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { toSync, toJS } from '@slate-collaborative/bridge'
99
import { getClients, defaultValue, defaultOptions } from './utils'
1010
import { ConnectionOptions } from './model'
1111

12-
class Connection {
12+
export default class Connection {
1313
private io: any
1414
private docSet: any
1515
private connections: { [key: string]: Automerge.Connection<any> }
@@ -194,5 +194,3 @@ class Connection {
194194
this.io.close()
195195
}
196196
}
197-
198-
export default Connection

packages/backend/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"rootDir": "src",
77
"baseUrl": "src",
88
"esModuleInterop": true,
9+
"allowSyntheticDefaultImports": true,
910
"lib": ["dom", "dom.iterable", "esnext"]
1011
}
1112
}

packages/bridge/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@slate-collaborative/bridge",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"files": [
55
"lib"
66
],
@@ -25,6 +25,8 @@
2525
"test": "jest"
2626
},
2727
"dependencies": {
28+
"automerge": "^0.12.1",
29+
"slate": "^0.47.8",
2830
"typescript": "^3.6.3"
2931
},
3032
"devDependencies": {

packages/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@slate-collaborative/client",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"files": [
55
"lib"
66
],
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@babel/preset-react": "^7.0.0",
28-
"@slate-collaborative/bridge": "^0.0.2",
28+
"@slate-collaborative/bridge": "^0.0.3",
2929
"automerge": "^0.12.1",
3030
"immutable": "^4.0.0-rc.12",
3131
"react": "^16.9.0",

packages/example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"dependencies": {
66
"@emotion/core": "^10.0.17",
77
"@emotion/styled": "^10.0.17",
8-
"@slate-collaborative/backend": "^0.0.2",
9-
"@slate-collaborative/client": "^0.0.2",
8+
"@slate-collaborative/backend": "^0.0.3",
9+
"@slate-collaborative/client": "^0.0.3",
1010
"@types/faker": "^4.1.5",
1111
"@types/jest": "24.0.18",
1212
"@types/node": "12.7.5",

0 commit comments

Comments
 (0)