refactor: rename scope to @ccms

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-05-03 00:14:47 +08:00
parent be4fe82588
commit ca79161505
65 changed files with 170 additions and 215 deletions

View File

@ -1,5 +1,5 @@
{
"name": "@ms/websocket",
"name": "@ccms/websocket",
"version": "0.5.0",
"description": "MiaoScript websocket package",
"keywords": [
@ -12,9 +12,6 @@
"homepage": "https://github.com/circlecloud/ms.git",
"license": "ISC",
"main": "dist/index.js",
"publishConfig": {
"registry": "https://repo.yumc.pw/repository/npm-hosted/"
},
"scripts": {
"clean": "rimraf dist",
"watch": "tsc --watch",
@ -27,6 +24,6 @@
"typescript": "^3.8.3"
},
"dependencies": {
"@ms/nashorn": "^0.5.0"
"@ccms/nashorn": "^0.5.0"
}
}
}

View File

@ -1,4 +1,4 @@
/// <reference types="@ms/nashorn" />
/// <reference types="@ccms/nashorn" />
import { Server, ServerOptions } from './socket-io'
@ -41,6 +41,6 @@ type SocketStatic = SocketIOStatic & { Instance?: symbol }
let io: SocketStatic = function (pipeline: any, options: ServerOptions) {
return new Server(pipeline, options)
}
io.Instance = Symbol("@ms/websocket")
io.Instance = Symbol("@ccms/websocket")
export default io
export * from './socket-io'