【发布时间】:2016-03-10 00:02:32
【问题描述】:
我正在使用Palantir Eclipse TypeScript Plug-in (v1.8.0.v20160223-1645),只要我的d.ts 文件在同一个源文件夹/src 中,它就可以正常工作但是 JSPM 它们在另一个文件夹中,它无法再找到和导入模块:
/src <-- My .ts files are here (no js here)
/dist <-- This is where the transpiled js ends up
/jspm_packages/npm <-- External d.ts files are here
在项目 TypeScript 属性(Eclipse UI)中,我有:
Source folder(s): src
Exported folders(s): src;jspm_packages/npm
Output folder: dist
Output file name: (nothing here)
所以在com.palantir.typescript.prefs 中有:
...
build.path.exportedFolder=src; jspm_packages/npm
build.path.sourceFolder=src
compiler.outputDirOption=dist
...
【问题讨论】:
标签: eclipse-plugin typescript npm jspm