Skip to content

Conversation

rpl
Copy link
Member

@rpl rpl commented Dec 19, 2019

This PR does exclude from the released npm package any asset that isn't needed in production (like we did for the sign-addon dependency in mozilla/sign-addon#402).

Besides that, this PR also change the test-functional script to use npm pack to run the production mode functional tests on the same package we would release on npm (without the need to keep a separate list of files to include).

@rpl rpl changed the title Fix: npm release should only include production assets fix: npm release should only include production assets Dec 19, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling cd6f75a on rpl:fix/npm-release-should-only-include-production-assets into 573693f on mozilla:master.

@rpl rpl requested a review from Rob--W December 19, 2019 12:39
Copy link
Member

@Rob--W Rob--W left a comment

Choose a reason for hiding this comment

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

Works on CI, so r+ from me.

shell.mkdir('-p', destDir, packageDir);
shell.cp('-rf', config.copy.productionModeAssets.src, packageDir);
shell.pushd(packageDir);
shell.exec(`npm pack ${srcDir}`);
Copy link
Member

Choose a reason for hiding this comment

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

If srcDir contains a space, then this may fail unexpectedly.

@rpl rpl merged commit a0777eb into mozilla:master Dec 19, 2019
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.

3 participants