Skip to content

Conversation

@skovhus
Copy link
Collaborator

@skovhus skovhus commented Apr 1, 2018

When introducing the integration tests (#14) I broke the build.

The TypeScript compilers output path depends magically on the files in the source directory. So when introducing new test setup files, the compilation path was suddenly server/out/server/server.js instead of server/out/server.js.

The main problem here is that we don't clean the compilation directories... As I tested that it worked after introducing integration tests, but the old files were still in my local copy of out.

This PR:

  • fixes the build
  • introduces cleaning before building
  • adds a convenience method for working on the server (compile and reinstall)
"exclude": [
"node_modules"
"node_modules",
"**/__tests__/*",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By adding these the compilation path is as before server/out/server.js

@skovhus
Copy link
Collaborator Author

skovhus commented Apr 1, 2018

@skovhus skovhus mentioned this pull request Apr 1, 2018
@mads-hartmann
Copy link
Collaborator

@skovhus Awesome, I love the reinstall-server improvement to the workflow 👍

@mads-hartmann mads-hartmann merged commit 650ceef into bash-lsp:master Apr 1, 2018
@skovhus skovhus deleted the fix-build branch April 1, 2018 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants