node.js - 找不到 build/index.ts
问题描述
按照说明进行我人生中的第一个nodejs + typescript部署:
- npm install --save-dev rimraf
- 将此添加到您的 package.json "build": "rimraf ./build && tsc"
- 启动脚本如下所示。“开始”:“npm 运行构建 && 节点构建/index.js”
但是在构建命令之后,构建文件夹中没有index.js文件,只有app.js。是一样的吗?你能指导我吗?
解决方案
推荐阅读
- amazon-web-services - 在 AWS Cloudwatch 中显示 EC2 实例计数
- python - 有什么方法可以在使用 python panda 时显示特定的单元格值以及标题和列值
- reactjs - 如何开发具有更高试用版应用程序的库
- ocaml - 如何在 OCAML 中编写一个函数,它返回一个列表,其中第二个列表插入到第一个列表中
- vba - 如何在 VBA Web 爬网时运行“attachedfunction”属性
- url - 在url中完全隐藏文件的文件名
- qt - gnuplot:为什么 gnuplot_qt 在某些 PC 上无法启动?
- python - 确定我可以从 Python 生成的最大进程数?
- android - Android - 有一个动画集
- angular - 使用基类在 Angular 7 中设置页面标题