Skip to content

Commit 8c3d371

Browse files
committed
Include README and LICENSE in distribution
Changed: - Copy 'README.md' and 'LICENSE' from root into 'dist/' to include when publishing. - Update Git ignore rules to exclude extraneous files in 'dist/' and any 'node_modules/' in sub-directories.
1 parent 3f1deb5 commit 8c3d371

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/coverage/
2-
/dist/*/*
3-
!/dist/*/package.json
4-
!/dist/*/tsconfig.json
5-
/node_modules/
1+
coverage/
2+
dist/
3+
!dist/package.json
4+
node_modules/
65
*.log*
76
report.*.json

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
publishable: publishable-cjs publishable-esm
1+
publishable: publishable-cjs publishable-esm copy-files
22
@echo "Done"
33

44
publishable-cjs: clean-cjs _publishable-cjs _fix-cjs
@@ -12,6 +12,11 @@ testable-cjs: clean-cjs _testable-cjs _fix-cjs
1212

1313
testable-esm: clean-esm _testable-esm
1414

15+
copy-files:
16+
@echo "Copy repository files for publishing"
17+
@cp README.md dist
18+
@cp LICENSE dist
19+
1520
clean: clean-cjs clean-esm
1621
@echo "Done"
1722

0 commit comments

Comments
 (0)