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 df5d439caf1..d9de05d1a4c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "license": "MIT", "files": [ + "build-metadata.json", "blueprints", "dist", "!dist/ember-tests.prod.js",