-
Notifications
You must be signed in to change notification settings - Fork 135
Regression in 0.6.3 #179
Comments
Hi @jimlloyd The 0.6.2 version was released with an inconsistent build, so we removed this version from npm. I'm trying replicate your issue, can you provide the tsd command line that is failing and the content of your tsd.json? |
Hi @Diullei, Ok I have dug deeper and can give you more specific information, but I may need my colleague @mhfrantz to chip in, and he is unfortunately on vacation this week. In each of our modules we have a Makefile that does these tsd-related steps:
In the first step, The The final step running So, I believe all of the difficulty we are having with 0.6.3 can be attributed to the fact that I haven't looked at the changes made between 0.6.1 and 0.6.3. I don't see anything in the README to explain this behavior. Please let us know if this new behavior is intentional, and what we should do to get the previous behavior. |
Ok, now I got your issue. This is happening because a new implementation that clean the typings when the Let's propose a good approach to solve this issue. For now keep using the 0.6.1 version. I think the
What do you think? Sorry again, for me it is very important to resolve it. I'll do my best to help you with this issue. |
The But I can see that 'reinstall' almost seems to imply 'clean'. If we are the only user who was broken by this change then Thanks, |
Thanks Jim! I don't know if another users has been affected by this change, but I'm monitoring the issues. For now you need keep using the 0.6.1 version. I'll try work with the new approach ASAP. |
Yeah, we're pinned to semver |
Hi @jimlloyd I implemented the Steps to install the latest tsd version from GitHub: Clone the tsd repo and build the project
go to tsd directory and run:
put this tsd build a global npm module. From inside the tsd directory run:
execute your build process...
My test case... I'm using the following test case to reproduces your scenario: Having a directory with 2 files:
So, I'll have a I got success with this test. https://travis-ci.org/DefinitelyTyped/tsd/jobs/68688565#L1236
|
Hi @Diullei, thanks for the update. I'm on vacation this week but do have my laptop. I may not have time to work on this today but I should be able to get to it in the next few days. |
No problem 👍 |
Hi @Diullei, my apologies for not jumping on this right after getting back from vacation. I'm trying to do it now and running into a problem with the build. When running
I immediately suspected the problem was some incompatibility with the recently released [email protected], but I get the same error if I force the installation of [email protected]. Those errors are also disturbing because of the first path: |
@Diullei I dug deeper and discovered the above build error was triggered by the fact that I did have a copy of bluebird.d.ts in the parent directory. It's disturbing that the existence of the file outside of the project directory caused typescript to fail to compile, but I was able to work around the bug by removing the file. This let me create a clean build of tsd, and then test the I see from discussion in #184 that you're still thinking about |
The only exception is tsd, which must stay at 0.6.1 until this issue in 0.6.3 is resolved: DefinitelyTyped/tsd#179
@jimlloyd I published a new version to npm (0.6.4) with the fix (using --clean flag). Thank you! |
Hi @Diullei, I just wanted to close the loop here and let you know that 0.6.4 does fix our problem. Thanks! |
👍 |
A clean build of our large mult-module package now fails due to a change introduced in 0.6.3. We had been using 0.6.1 successfully. Although
npm info tsd
claims a version 0.6.2 was released, there is no tag for that version, and npm fails if an attempt is made to install [email protected].The failure we are seeing with [email protected] is that the typings directory remains empty despite console output indicating that files were created. This failure mode happens for me on my Mac development machine and also on our Jenkins CI server (linux).
The text was updated successfully, but these errors were encountered: