Skip to content

Commit 57cf13a

Browse files
authored
fix: resolve issue with publishing empty package on the npm (#413)
Changed "files" field in the package.json from "./lib" back to "lib". It seems that there is different behavior between npm and yarn.
1 parent 4c38cc1 commit 57cf13a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
uses: actions/download-artifact@v1
6868
with:
6969
name: lib
70-
70+
path: lib
71+
7172
- name: Run unit tests
7273
run: yarn test:unit
7374

@@ -93,6 +94,7 @@ jobs:
9394
uses: actions/download-artifact@v1
9495
with:
9596
name: lib
97+
path: lib
9698

9799
- name: Release
98100

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"John Reilly <[email protected]> (https://blog.johnnyreilly.com)"
2727
],
2828
"files": [
29-
"./lib"
29+
"lib"
3030
],
3131
"main": "lib/index.js",
3232
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)