Skip to content

Fix TypeScript test for Windows - #1954

Merged
lukastaegert merged 1 commit into
rollup:masterfrom
unstubbable:windows-typescript-test
Feb 9, 2018
Merged

Fix TypeScript test for Windows#1954
lukastaegert merged 1 commit into
rollup:masterfrom
unstubbable:windows-typescript-test

Conversation

@unstubbable

@unstubbable unstubbable commented Feb 8, 2018

Copy link
Copy Markdown
Contributor

Instead of renaming src (which was quite a brittle approach to begin with, as rightfully pointed out by @kzc) we copy dist and typings into the typescript test directory and import rollup from there. This still ensures that there are no triple slash references in the generated d.ts files to any src files since the relative paths wouldn't be resolvable.

fixes #1934 (since with this solution there is no need to use semi-colons anymore)

Instead of renaming `src` (which was quite a brittle approach, as
rightfully pointed out by @kzc) we copy `dist` and `typings` into
the typescript test directory and import rollup from there. This
still ensures that there are no triple slash references in the
generated d.ts files to any src files since the relative paths
wouldn't be resolvable.

fixes rollup#1934
@unstubbable unstubbable changed the title fix typescript test for windows Fix TypeScript test for Windows Feb 8, 2018
@lukastaegert lukastaegert added this to the 0.55.4 milestone Feb 9, 2018
@lukastaegert
lukastaegert merged commit 82245bf into rollup:master Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

internal: issue running npm test

2 participants