From 44c60fe53b543e6f58b89e469c658a97c948ea83 Mon Sep 17 00:00:00 2001 From: Brendan Baldwin Date: Fri, 21 Dec 2018 13:19:57 -0800 Subject: [PATCH 1/2] [bundler] Update npmignore to reduce prod package bloat. --- packages/bundler/.npmignore | 17 ++++++++++------- packages/bundler/CHANGELOG.md | 3 ++- packages/bundler/package.json | 5 ----- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/bundler/.npmignore b/packages/bundler/.npmignore index 999d6ad2a..c2a1d721b 100644 --- a/packages/bundler/.npmignore +++ b/packages/bundler/.npmignore @@ -1,7 +1,10 @@ -node_modules -# npmignore -example -CHANGELOG.md -README.md -util -test +/.editorconfig +/.gitattributes +/.vscode/ +/CHANGELOG.md +/README.md +/lib/test/ +/src/ +/test/ +/tsconfig.json +/tslint.json diff --git a/packages/bundler/CHANGELOG.md b/packages/bundler/CHANGELOG.md index 8f422d211..87687fcf8 100644 --- a/packages/bundler/CHANGELOG.md +++ b/packages/bundler/CHANGELOG.md @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). - +## Unreleased +* Removed non-essential files from published package, such as tests. ## 4.0.4 - 2018-10-18 diff --git a/packages/bundler/package.json b/packages/bundler/package.json index 4525f5d6f..4db8a050a 100644 --- a/packages/bundler/package.json +++ b/packages/bundler/package.json @@ -9,11 +9,6 @@ "author": "The Polymer Project Authors", "main": "lib/bundler.js", "typings": "lib/bundler.d.ts", - "files": [ - "LICENSE", - "lib/", - "custom_typings/" - ], "bin": { "polymer-bundler": "lib/bin/polymer-bundler.js" }, From 75304a7a3c657bb374983067379d8e97c1d29ad5 Mon Sep 17 00:00:00 2001 From: Brendan Baldwin Date: Mon, 7 Jan 2019 14:18:20 -0800 Subject: [PATCH 2/2] [polymer-bundler] Removed .npmignore and added files property to package.json --- packages/bundler/.npmignore | 10 ---------- packages/bundler/package.json | 5 +++++ 2 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 packages/bundler/.npmignore diff --git a/packages/bundler/.npmignore b/packages/bundler/.npmignore deleted file mode 100644 index c2a1d721b..000000000 --- a/packages/bundler/.npmignore +++ /dev/null @@ -1,10 +0,0 @@ -/.editorconfig -/.gitattributes -/.vscode/ -/CHANGELOG.md -/README.md -/lib/test/ -/src/ -/test/ -/tsconfig.json -/tslint.json diff --git a/packages/bundler/package.json b/packages/bundler/package.json index 4db8a050a..209e7fbdd 100644 --- a/packages/bundler/package.json +++ b/packages/bundler/package.json @@ -12,6 +12,11 @@ "bin": { "polymer-bundler": "lib/bin/polymer-bundler.js" }, + "files": [ + "custom_typings/", + "lib/", + "!lib/test/" + ], "dependencies": { "@types/babel-generator": "^6.25.1", "@types/babel-traverse": "^6.25.3",