feat: test release

This commit is contained in:
cudr
2019-10-05 12:07:11 +03:00
parent 6c85d58736
commit e17e5f0fc3
8 changed files with 45 additions and 8 deletions

View File

@@ -7,7 +7,13 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative",
"repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr",
"license": "MIT",
"scripts": {
@@ -34,5 +40,8 @@
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"@types/socket.io": "^2.1.2"
},
"directories": {
"lib": "lib"
}
}

View File

@@ -5,6 +5,7 @@
"outDir": "lib",
"rootDir": "src",
"baseUrl": "src",
"esModuleInterop": true
"esModuleInterop": true,
"lib": ["dom", "dom.iterable", "esnext"]
}
}

View File

@@ -7,7 +7,13 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative",
"repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr",
"license": "MIT",
"scripts": {
@@ -27,5 +33,13 @@
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0"
}
},
"directories": {
"lib": "lib"
},
"keywords": [
"slate",
"automerge",
"bridge"
]
}

View File

@@ -2,6 +2,7 @@
"include": ["src/**/*"],
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"outDir": "lib",
"rootDir": "src",
"baseUrl": "src",

View File

@@ -7,7 +7,13 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative",
"repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr",
"license": "MIT",
"scripts": {
@@ -37,5 +43,8 @@
"@types/react": "^16.9.2",
"@types/slate": "^0.47.1",
"@types/socket.io-client": "^1.4.32"
},
"directories": {
"lib": "lib"
}
}

View File

@@ -2,7 +2,9 @@ import { ExtendedEditor } from './model'
const onChange = opts => (editor: ExtendedEditor, next: () => void) => {
if (!editor.remote) {
editor.connection.receiveSlateOps(editor.operations)
const operations: any = editor.operations
editor.connection.receiveSlateOps(operations)
}
return next()

View File

@@ -6,7 +6,7 @@
"rootDir": "src",
"baseUrl": "src",
"jsx": "react",
"lib": ["es6", "dom"],
"lib": ["dom", "dom.iterable", "es6"],
"esModuleInterop": true
}
}