refactor: rename package
This commit is contained in:
parent
2f990bc41d
commit
7288d33ce2
36
package.json
36
package.json
@ -1,20 +1,20 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "cc-server-parent",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "npx lerna run build",
|
||||
"lp": "npx lerna publish",
|
||||
"publish-please": "publish-please",
|
||||
"prepublishOnly": "publish-please guard"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"lerna": "^3.14.1"
|
||||
}
|
||||
"private": true,
|
||||
"name": "cc-server-parent",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "npx lerna run build",
|
||||
"lp": "npx lerna publish --registry=https://repo.yumc.pw/repository/npm-hosted/",
|
||||
"publish-please": "publish-please",
|
||||
"prepublishOnly": "publish-please guard"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"lerna": "^3.14.1"
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "cc-server-binding",
|
||||
"name": "@cc-server/binding",
|
||||
"version": "0.3.1",
|
||||
"description": "> TODO: description",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
@ -30,4 +30,4 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/502647092/cc-server-parent/issues"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "cc-server-core",
|
||||
"name": "@cc-server/core",
|
||||
"version": "0.3.1",
|
||||
"description": "> TODO: description",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
@ -20,10 +20,10 @@
|
||||
"url": "git+https://github.com/502647092/cc-server-parent.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cc-server/binding": "^0.3.1",
|
||||
"@cc-server/db-mongo": "^0.3.1",
|
||||
"@cc-server/ioc": "^0.3.1",
|
||||
"body-parser": "^1.19.0",
|
||||
"cc-server-binding": "^0.3.1",
|
||||
"cc-server-db-mongo": "^0.3.1",
|
||||
"cc-server-ioc": "^0.3.1",
|
||||
"inversify": "^5.0.1",
|
||||
"inversify-express-utils": "^6.3.2",
|
||||
"prettyjson": "^1.2.1",
|
||||
@ -32,6 +32,7 @@
|
||||
"devDependencies": {
|
||||
"@types/body-parser": "^1.17.0",
|
||||
"@types/express": "^4.17.0",
|
||||
"@types/prettyjson": "^0.0.29",
|
||||
"mocha": "^6.1.4",
|
||||
"rimraf": "^2.6.3",
|
||||
"ts-node": "^8.2.0",
|
@ -2,8 +2,8 @@ import {
|
||||
controller, response, requestBody, httpGet, httpPost, queryParam, requestParam
|
||||
} from 'inversify-express-utils';
|
||||
import { inject, postConstruct } from 'inversify';
|
||||
import { Vaild, NotBlank, NotNull } from 'cc-server-binding'
|
||||
import { DBClient } from 'cc-server-db'
|
||||
import { Vaild, NotBlank, NotNull } from '@cc-server/binding'
|
||||
import { DBClient } from '@cc-server/db'
|
||||
import 'cc-server-db-mongo'
|
||||
|
||||
//process.env.FAAS_MONGO_URL = 'mongodb://192.168.0.2:27017';
|
@ -2,8 +2,8 @@ import 'reflect-metadata';
|
||||
import * as express from "express";
|
||||
import { InversifyExpressServer, interfaces, getRouteInfo } from 'inversify-express-utils';
|
||||
import * as bodyParser from 'body-parser';
|
||||
import { buildProviderModule } from 'cc-server-ioc';
|
||||
import { rebuildServer } from 'cc-server-binding'
|
||||
import { buildProviderModule } from '@cc-server/ioc';
|
||||
import { rebuildServer } from '@cc-server/binding'
|
||||
import * as prettyjson from "prettyjson";
|
||||
import { Container } from 'inversify';
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "cc-server-db-mongo",
|
||||
"name": "@cc-server/db-mongo",
|
||||
"version": "0.3.1",
|
||||
"description": "> TODO: description",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
@ -18,8 +18,8 @@
|
||||
"url": "git+https://github.com/502647092/cc-server-parent.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"cc-server-db": "^0.3.0",
|
||||
"cc-server-ioc": "^0.3.1",
|
||||
"@cc-server/db": "^0.3.0",
|
||||
"@cc-server/ioc": "^0.3.1",
|
||||
"inversify": "^5.0.1",
|
||||
"mongodb": "^3.2.7",
|
||||
"reflect-metadata": "^0.1.13"
|
||||
@ -31,4 +31,4 @@
|
||||
"typescript": "^3.5.1"
|
||||
},
|
||||
"gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728"
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { Db, ObjectID, Collection } from 'mongodb';
|
||||
import { MongoDBConnection } from './connection';
|
||||
import { provide } from 'cc-server-ioc'
|
||||
import { DBClient } from 'cc-server-db'
|
||||
import { provide } from '@cc-server/ioc'
|
||||
import { DBClient } from '@cc-server/db'
|
||||
|
||||
@provide(DBClient)
|
||||
export class MongoDBClient<T = any> implements DBClient {
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "cc-server-db",
|
||||
"name": "@cc-server/db",
|
||||
"version": "0.3.0",
|
||||
"description": "> TODO: description",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
@ -25,4 +25,4 @@
|
||||
"rimraf": "^2.6.3",
|
||||
"typescript": "^3.5.1"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "cc-server-ioc",
|
||||
"name": "@cc-server/ioc",
|
||||
"version": "0.3.1",
|
||||
"description": "> TODO: description",
|
||||
"author": "MiaoWoo <admin@yumc.pw>",
|
||||
@ -29,4 +29,4 @@
|
||||
"typescript": "^3.5.1"
|
||||
},
|
||||
"gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user