From 2e9d90a3a1a9a4528ed58b8dc3f727fce3e9fa1d Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Fri, 12 Jan 2018 08:54:03 -0500 Subject: [PATCH] Ensure build-metadata.json is included in packed tarball. --- bin/build-for-publishing.js | 8 ++++---- package.json | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/build-for-publishing.js b/bin/build-for-publishing.js index f11cb0d50bd..ebc2542c8ba 100755 --- a/bin/build-for-publishing.js +++ b/bin/build-for-publishing.js @@ -47,10 +47,6 @@ execSync('yarn build'); execSync('yarn docs'); updateDocumentationVersion(); -// using npm pack here because `yarn pack` does not honor the `package.json`'s `files` -// property properly, and therefore the tarball generated is quite large (~7MB). -execSync('npm pack'); - // generate build-metadata.json const metadata = { version: VERSION, @@ -59,3 +55,7 @@ const metadata = { assetPath: `/${process.env.BUILD_TYPE}/shas/${process.env.TRAVIS_COMMIT}.tgz`, }; fs.writeFileSync('build-metadata.json', JSON.stringify(metadata, null, 2), { encoding: 'utf-8' }); + +// using npm pack here because `yarn pack` does not honor the `package.json`'s `files` +// property properly, and therefore the tarball generated is quite large (~7MB). +execSync('npm pack'); diff --git a/package.json b/package.json index e938983f807..2668b05949a 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "license": "MIT", "files": [ + "build-metadata.json", "blueprints", "dist", "!dist/ember-tests.prod.js",