Skip to content

Refactor | Move the code into different functions #291

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

Merged
merged 12 commits into from
Jan 10, 2019
Merged

Refactor | Move the code into different functions #291

merged 12 commits into from
Jan 10, 2019

Conversation

MatiasOlivera
Copy link
Contributor

Issue #289

Copy link

@paulmelnikow paulmelnikow left a comment

Choose a reason for hiding this comment

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

I read through these changes – they look good to me!

There's more that can be improved here, I think, though refactorings are sometimes easier to read if code is moved "as is" (as was done here) and then improved later.

Tests are failing; haven't dug through to see if it's related to this change.

@MatiasOlivera
Copy link
Contributor Author

MatiasOlivera commented Jan 2, 2019

@paulmelnikow Yes, there are other things that can be improved.

@ForsakenHarmony
Copy link
Collaborator

yeah, tests are unrelated I think, just stupidity on uglify's part

@ForsakenHarmony
Copy link
Collaborator

Feel free to update the snapshots

* Before pkgName was equal to undefined
* Allow passing no-pkg and no-pkg-name tests
@MatiasOlivera
Copy link
Contributor Author

MatiasOlivera commented Jan 4, 2019

I can't update the snapshots, because the tests are working on my machine 😱 Probably its something related to the dependencies.

Update: And now are broken, I don't know why.

@Andarist
Copy link
Collaborator

Andarist commented Jan 4, 2019

Maybe you have to clean npm cache and try to reinstall? If that won't help I'll look into it.

@ForsakenHarmony
Copy link
Collaborator

remove node_modules and package-lock.json and or try yarn

@MatiasOlivera
Copy link
Contributor Author

MatiasOlivera commented Jan 4, 2019

I did what you said. For some reason, the tests are creating new folders with the TS declaration files (index.d.ts). These files already exist in each /dist folder. And the snapshots are failing because it is comparing the wrong directories

@ForsakenHarmony
Copy link
Collaborator

that's very weird

@ForsakenHarmony
Copy link
Collaborator

bors r+

bors bot added a commit that referenced this pull request Jan 10, 2019
291: Refactor | Move the code into different functions r=ForsakenHarmony a=MatiasOlivera

Issue #289 

Co-authored-by: Matías Olivera <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jan 10, 2019

Build succeeded

@bors bors bot merged commit 1347042 into developit:master Jan 10, 2019
entries: options.entries,
cwd,
source: options.pkg.source,
module: options.pkg.module,

Choose a reason for hiding this comment

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

I’m curious to learn, unless this is a mistake; how is module used as an input here?

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.

5 participants