From 939ce4196082e15c836f8a0fe7d07bd2cc041d20 Mon Sep 17 00:00:00 2001 From: Nicolas Vanhoren Date: Thu, 31 Oct 2019 02:55:54 +0100 Subject: [PATCH] Fix #3619 by scripting the copy of the README.md file to the parcel-bundler folder. (#3707) --- packages/core/parcel-bundler/.gitignore | 1 + packages/core/parcel-bundler/package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/parcel-bundler/.gitignore b/packages/core/parcel-bundler/.gitignore index 7664af8e87e..0de1daa29d3 100644 --- a/packages/core/parcel-bundler/.gitignore +++ b/packages/core/parcel-bundler/.gitignore @@ -8,3 +8,4 @@ test/integration/**/Cargo.lock test/**/yarn.lock test/**/package-lock.json test/integration/babel-plugin-autoinstall/package.json +README.md diff --git a/packages/core/parcel-bundler/package.json b/packages/core/parcel-bundler/package.json index bfd2810a871..ae0c4838881 100644 --- a/packages/core/parcel-bundler/package.json +++ b/packages/core/parcel-bundler/package.json @@ -12,7 +12,8 @@ "bin/", "lib/", "src/", - "index.js" + "index.js", + "README.md" ], "dependencies": { "@babel/code-frame": "^7.0.0", @@ -130,7 +131,7 @@ "test-ci": "yarn test-coverage && yarn report-coverage", "format": "prettier --write \"./{src,bin,test}/**/*.{js,json,md}\"", "build": "yarn minify && babel src -d lib && ncp src/builtins lib/builtins", - "prepublish": "yarn build", + "prepublish": "yarn build && cp ../../../README.md .", "minify": "terser -c -m -o src/builtins/prelude.min.js src/builtins/prelude.js && terser -c -m -o src/builtins/prelude2.min.js src/builtins/prelude2.js", "precommit": "lint-staged", "lint": "eslint . && prettier \"./{src,bin,test}/**/*.{js,json,md}\" --list-different",