koa-ts-core 0.0.14 → 0.0.15
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.
- package/README.md +0 -11
- package/dist/index.cjs.js +8 -8
- package/dist/index.esm.js +7 -7
- package/dist/utils/path.d.ts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -269,17 +269,6 @@ export default class Test {
|
|
|
269
269
|
|
|
270
270
|
### 配置项
|
|
271
271
|
|
|
272
|
-
#### process.env.CONTROLLER_DIR_PATH
|
|
273
|
-
|
|
274
|
-
控制器的父级目录路径,用于辅助 core 查找控制器所在目录
|
|
275
|
-
|
|
276
|
-
**例如运行在 docker 项目中的目录为 `/app/build/controller`, 则 `CONTROLLER_DIR_PATH` 值填写为 `build`**
|
|
277
|
-
|
|
278
|
-
```js
|
|
279
|
-
// core查找控制器目录实现
|
|
280
|
-
resolve(process.cwd(), process.env.CONTROLLER_DIR_PATH ?? "");
|
|
281
|
-
```
|
|
282
|
-
|
|
283
272
|
#### process.env.APP_PORT
|
|
284
273
|
|
|
285
274
|
koa 应用启动端口
|