From a8b4a24933ab129f7c66f3e7b86f2e4406aef182 Mon Sep 17 00:00:00 2001 From: Max Beatty Date: Tue, 23 Mar 2021 19:45:10 -0700 Subject: [PATCH 1/2] fix: publish only dist publicly by default, scoped organization packages are considered private --- .npmignore | 5 +++-- .npmrc | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index 4d1364e..a497ee3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,3 @@ -.github -.husky +# only publish dist directory +* +!dist/ diff --git a/.npmrc b/.npmrc index 40b3611..aa38de4 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ registry=https://registry.npmjs.com/ +access=public From e5cfd8a567e9be0be714a87085808ffae4e371a6 Mon Sep 17 00:00:00 2001 From: Max Beatty Date: Tue, 23 Mar 2021 19:52:37 -0700 Subject: [PATCH 2/2] fix: npmignore all except dist verified with: npm publish --dry-run --- .npmignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index a497ee3..f11de9f 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,3 @@ # only publish dist directory * -!dist/ +!dist/*