Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Integrate packager improvements from https://github.com/atom/atom/pull/15431 #19324

Merged
merged 8 commits into from May 13, 2019

Conversation

rafeca
Copy link
Contributor

@rafeca rafeca commented May 13, 2019

This PR is a follow-up of #19318 to integrate the changes made by @malept on #15431

out: CONFIG.buildOutputPath,
overwrite: true,
platform: process.platform,
// Atom doesn't have devDependencies, but if prune is true, it will delete the non-standard packageDependencies.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's actually really cool! @malept does this mean that if we enable this option we can start using devDependencies on the top-level package.json without adding them to the app package? 😍

/cc @nathansobo , @smashwilson , @jasonrudolph

Copy link
Contributor

Choose a reason for hiding this comment

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

As I mentioned in the comment, packageDependencies is still problematic (i.e., gets pruned) if prune: true is set. If Packager needs to deal with this use case, we'd have to do some refactoring of how pruning works (that is, add support for custom *Dependencies in package.json to be whitelisted).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I understood the comment incorrectly, thanks for clarifying 👍

@rafeca rafeca changed the title Integrate improvements from https://github.com/atom/atom/pull/15431 Integrate packager improvements from https://github.com/atom/atom/pull/15431 May 13, 2019
@rafeca rafeca merged commit 1edf94a into master May 13, 2019
@rafeca rafeca deleted the pr/15431 branch May 13, 2019 20:18
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.

None yet

2 participants