@koala123/aoi-db 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @koala123/aoi-db might be problematic. Click here for more details.
- package/PUBLISH.md +21 -0
- package/README.md +3 -3
- package/package.json +4 -3
package/PUBLISH.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
## Publish
|
|
2
|
+
|
|
3
|
+
发布之前需要在 app.module.ts 文件中将导出内容重命名为自定义名称;
|
|
4
|
+
|
|
5
|
+
1.首先执行
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ npm run build
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
项目文件夹下会生成 dist 文价夹
|
|
12
|
+
|
|
13
|
+
2.修改 package.json 中的版本号/修改项目名称(第一次)
|
|
14
|
+
|
|
15
|
+
3.执行
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ npm publish --access=public
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
发布最新内容到 npm
|
package/README.md
CHANGED
|
@@ -9,12 +9,12 @@ AOIDB模块
|
|
|
9
9
|
### Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
$ npm install @
|
|
12
|
+
$ npm install @koala123/aoi-db
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
// app.module.ts
|
|
17
|
-
import { AOIDBModule } from '@
|
|
17
|
+
import { AOIDBModule } from '@koala123/aoi-db';
|
|
18
18
|
|
|
19
19
|
@Module({
|
|
20
20
|
imports: [
|
|
@@ -44,7 +44,7 @@ import { AOIDBModule } from '@koala/aoi-db';
|
|
|
44
44
|
})
|
|
45
45
|
|
|
46
46
|
// app.service.ts
|
|
47
|
-
import { AOIDBService } from '@
|
|
47
|
+
import { AOIDBService } from '@koala123/aoi-db'
|
|
48
48
|
@Injectable()
|
|
49
49
|
export class AppService {
|
|
50
50
|
constructor(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koala123/aoi-db",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "考拉悠然基于nest框架的AOIDB模块",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/app.module.js",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"testEnvironment": "node"
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"dist/"
|
|
79
|
+
"dist/",
|
|
80
|
+
"PUBLISH.md"
|
|
80
81
|
]
|
|
81
82
|
}
|