我想创建包含几个包的 lerna monorepo。但我不想用 tsc 编译每个包。这意味着我想直接在 package.json 文件的“main”部分中导出 tsx-ts 文件。并直接从主包中使用这些 ts 文件。所以我可以调试我在 chrome 开发工具中编写的内容。
你能帮助我吗。
这是我的包的 package.json 文件之一:
{
"name": "w-cmp-lib",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"react": "16.3.2"
}
}