Skip to content
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

chore: use local TypeScript with dtslint #4712

Merged
merged 4 commits into from
Apr 16, 2019

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Apr 13, 2019

Description:

This PR reconfigures dtslint to use the locally-installed version of TypeScript - i.e. the version with which RxJS is built.

The command must be passed an absolute path to the directory that contains typescript.js as said path is passed to require in two files within the dtslint implementation that reside in different directories - so each has a different relative path the the locally-installed TypeScript. To account for this, dtslint is now invoked via spec-dtslint/script.js.

This PR also restores numerous tests that had to be commented out due to the different behaviour of typescript@next.

Oh, and I changed prepublish to prepublishOnly as I was tired of having the build and tests run whenever I did an npm ci. Now, that stuff will only run before an actual publish. Never mind. It seems the CI build depends upon all that stuff happening after an npm install. 😒

Related issue (if exists): #4705

@cartant cartant requested review from kwonoj and benlesh April 13, 2019 00:52
@cartant cartant changed the title Dtslint local Use local TypeScript with dtslint Apr 13, 2019
@rxjs-bot
Copy link

Warnings
⚠️

❗ Big PR (1)

(1) : Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by 🚫 dangerJS

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8352

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 96.669%

Totals Coverage Status
Change from base Build 8343: 0.0%
Covered Lines: 5252
Relevant Lines: 5433

💛 - Coveralls

@cartant cartant changed the title Use local TypeScript with dtslint chore: use local TypeScript with dtslint Apr 13, 2019
@benlesh benlesh merged commit a9c87f6 into ReactiveX:master Apr 16, 2019
BioPhoton pushed a commit to BioPhoton/rxjs that referenced this pull request May 15, 2019
* chore: replace prepublish with prepublishOnly

* chore: use local typescript with dtslint

* chore: restore commented-out dtslint tests

* chore: replace prepublishOnly with prepublish
@lock lock bot locked as resolved and limited conversation to collaborators May 16, 2019
@cartant cartant deleted the dtslint-local branch September 24, 2020 07:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants