From 4ad75ec7813fe79337bd2dd3b3b79f44361eb671 Mon Sep 17 00:00:00 2001 From: brizental Date: Wed, 17 Feb 2021 15:13:15 +0100 Subject: [PATCH 1/2] Copy README.md on prepublish If the README.md is not in the glean package folder, it will not be included in the final package and as a consequence will not show up on the package npm page. --- glean/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glean/package.json b/glean/package.json index f98d56e02..fece608a1 100644 --- a/glean/package.json +++ b/glean/package.json @@ -21,7 +21,8 @@ "fix": "eslint . --ext .ts,.js,.json --fix", "build": "webpack --config webpack.config.js --mode production", "dev": "webpack --watch --config webpack.config.js --mode development --devtool inline-source-map", - "prepare": "npm run build" + "prepublishOnly": "cp ../README.md ./README.md && npm run build", + "postpublish": "rm ./README.md" }, "repository": { "type": "git", From b0367c4e19757783425af063a57a44c62c0e45c1 Mon Sep 17 00:00:00 2001 From: brizental Date: Wed, 17 Feb 2021 15:17:22 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30bf40cdc..7552fd34e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Unreleased changes [Full changelog](https://github.com/mozilla/glean.js/compare/v0.1.0...main) + +* [#77](https://github.com/mozilla/glean.js/pull/77): Include README.md file in `@mozilla/glean` package bundle. + # v0.1.0 (2021-02-17) [Full changelog](https://github.com/mozilla/glean.js/compare/46f028fb4ea7b8f312daf4666904c81d0a3eb171...v0.1.0)