tsc-alias:打字稿编译后将绝对路径替换为相对路径

时间:2021-03-11 10:19:53
【文件属性】:
文件名称:tsc-alias:打字稿编译后将绝对路径替换为相对路径
文件大小:65KB
文件格式:ZIP
更新时间:2021-03-11 10:19:53
typescript paths alias tsc compilation tsc-alias 打字稿编译后,将别名路径替换为相对路径。 您可以通过提供baseUrl的相对路径来添加引用tsconfig.json项目之外的其他项目的别名。 与比较 +编译时间(无运行时相关性) 入门 首先,使用npm将tsc-alias安装为devDependency。 npm install -g tsc-alias npm install --save-dev tsc-alias 将其添加到package.json中的构建脚本中 " scripts " : { " build " : " tsc --project tsconfig.json && tsc-alias -p tsconfig.json " , } ================ OR =================== " scripts " : { " build " : " tsc &&
【文件预览】:
tsc-alias-master
----.gitignore(1KB)
----projects()
--------project4()
--------project1()
--------project5()
--------project3()
--------project2()
----package.json(1KB)
----src()
--------bin()
--------index.ts(7KB)
--------helpers.ts(3KB)
----jest.config.js(222B)
----LICENSE(1KB)
----tsconfig.json(625B)
----.github()
--------workflows()
----README.md(2KB)
----tests()
--------test.spec.ts(400B)
----pnpm-lock.yaml(126KB)
----.editorconfig(245B)
----.prettierrc(63B)

网友评论