Theia: Question: Is there a reason why Theia's npm package packs its `.ts` source files ?

Created on 4 May 2018  路  4Comments  路  Source: eclipse-theia/theia

Other packages I know of only provide .js and .d.js files. Is there a reason why we pack the .ts files with it on npm ?

question

Most helpful comment

source maps are also included, which allows us to see the typescript sources while debugging.

All 4 comments

source maps are also included, which allows us to see the typescript sources while debugging.

With next typescript extension developers also will be able to navigate to sources.

@marechal-p is there an issue with it?

I was just comparing at how we use other npm packages, like vscode-languageserver-protocol or vscode-ripgrep that only packs their .js and .d.ts files.

I was wondering why we were packing the .ts files too, and if we were building the .js from it when it was a npm dependency ? Or if we just packed the pre-built .js files and .d.ts typings ?

Closing because the answer is to see the TypeScript sources while debugging.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kharazit picture kharazit  路  24Comments

thegecko picture thegecko  路  67Comments

marcdumais-work picture marcdumais-work  路  49Comments

boomanaiden154 picture boomanaiden154  路  27Comments

marcdumais-work picture marcdumais-work  路  27Comments