petal-service 的demo项目
npm install
- VSCode 安装 Code Runner 插件
- 全局安装
npm install ts-node typescript -g
- 进入指定文件, 右键
Run Code
或者
npm install
- 在
test/index.ts
引入需要测试的示例 npm run test
- petal-service 设置版本
x.x.x-tx
先执行 npm run bp - 替换 petal-service 包的路径
"dependencies": {
"axios": "^1.5.1",
"petal-service": "file:D:/projects/github-my/petal-service/petal-service-0.0.42.tgz",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
- npm install