-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting a lot of *.d.ts files #2
Comments
|
|
@webleaf There are definitely plans for this, I've removed #9 from 0.0.5 only because 0.0.5 is a bugfix release which is planned to happen tomorrow (so earlier than next Friday). I'm also reviewing all that can be improved regarding the import/compile-all-togeher etc. issues and than I'll create tasks accordingly and we'll see what's next. Since the process is pretty transparent you'll see related issues pinned to corresponding milestone ) |
|
There are such large projects, written directly in TypeScript and contains complex directory structure with a lot of files (hundreds). Such projects are compiled with option
--declaration
(which autogenerate*.d.ts
for each*.ts
files) and published directly tonpm
Trying to convert typings of such project, I ran into a number of problems. Here are some of them:
dukat
will take*.d.ts
files recursively and put result to destination directory keeping source directory structure. It could be resolved with some scripting, but...*.d.ts
files via$ dukat /path/to/**/*.d.ts
. It takes> 1 hour
to convert them (2-4 files per minute)-b some_package_name
gave no effect. Each file get same package name as it file name. It also don't work for single file. I expect that I can specify same package name for all files. Ability to specify@file:JsModule("path-to-module")
would be also useful.'T$0'
will be duplicated, because each file converted independently.external class
implement interface from another file, there are nooverride
modifier, because each file converted independently.package.json
could containtypes
property orindex.d.ts
at the root of the package. It would be nice if also it were ability to analyze dependencies starting fromindex.d.ts
before just converting all files from npm package.Also mainly
index.d.ts
contains re-exports.The text was updated successfully, but these errors were encountered: