watch": "jest --watch", "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths
Midway-Hooks[29],见下面的介绍 ts-node-dev[30] + tsconfig-paths[31],你是否受够了ts-node的配置? 请使用ts-node-dev -r tsconfig-paths/register xxx/index.ts这一行命令即可~ TypeORM[32],最爱的ORM没有之一(装饰器 YES),也是目前NodeJS Midway-Hooks: https://github.com/midwayjs/hooks [30] ts-node-dev: https://github.com/wclr/ts-node-dev [31] tsconfig-paths : https://github.com/dividab/tsconfig-paths [32] TypeORM: https://github.com/typeorm/typeorm [33] PM2
./ 来加载模块,那么 在 tsconfig.json 中配置 baseUrl: "." ts-node -r tsconfig-paths/register main.ts 或 require("tsconfig-paths
"pretypeorm": "(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts ", "typeorm": "ts-node -r tsconfig-paths/register .
"pretypeorm": "(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts ", "typeorm": "ts-node -r tsconfig-paths/register .
"pretypeorm": "(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts ", "typeorm": "ts-node -r tsconfig-paths/register .
This package provides the functionality of the tsconfig-paths package but as a webpack plug-in.
Midway-Hooks,见下面的介绍 image.png ts-node-dev + tsconfig-paths,你是否受够了ts-node的配置? 请使用ts-node-dev -r tsconfig-paths/register xxx/index.ts这一行命令即可~ TypeORM,最爱的ORM没有之一(装饰器 YES),也是目前NodeJS
所以我们就会用到这么一个包,用来改变ts-node执行时所依赖的配置文件:tsconfig-paths 在Readme中发现了这样的说法:If process.env.TS_NODE_PROJECT
watch": "jest --watch", "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths supertest": "^6.3.3", "ts-jest": "^29.1.0", "ts-loader": "^9.4.3", "ts-node": "^10.9.1", "tsconfig-paths
": "^16.11.1", "supertest": "^6.1.6", "ts-loader": "^9.2.6", "ts-node": "^10.3.0", "tsconfig-paths