I currently utilize the Palantir Eclipse TypeScript Plug-in (v1.8.0.v20160223-1645), which functions flawlessly when my d.ts
files are stored in the same source folder /src
. However, due to JSPM, these files reside in a different folder now, causing issues with locating and importing modules:
/src <-- My .ts files are kept here (no js files present)
/dist <-- Location where the transpiled js files are placed
/jspm_packages/npm <-- External d.ts files are located here
The TypeScript properties within the project settings of Eclipse UI include:
Source folder(s): src
Exported folders(s): src;jspm_packages/npm
Output folder: dist
Output file name: (empty field)
Looking into the com.palantir.typescript.prefs
file, we find:
...
build.path.exportedFolder=src; jspm_packages/npm
build.path.sourceFolder=src
compiler.outputDirOption=dist
...