Add npmignore

Fixes built files not added to npmjs
This commit is contained in:
Marko Korhonen 2023-11-14 19:35:28 +02:00
parent 793b6aece0
commit fe9e51a297
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
4 changed files with 9 additions and 5 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
node_modules/
target/
dist/
README.md

4
.npmignore Normal file
View file

@ -0,0 +1,4 @@
*
!bin/
!dist/
!README.md

View file

@ -15,7 +15,7 @@ build: node_modules
npm run build
clean:
rm -r target node_modules
rm -r dist node_modules
release:
@read -p "Enter version bump (patch, minor, major): " bump && \
@ -23,8 +23,8 @@ release:
echo "Version $$version created. Run 'make publish' to push the changes and publish the package."
update-npmjs-readme:
asciidoctor -b docbook -o target/README.xml README.adoc
pandoc -f docbook -t gfm target/README.xml -o README.md
asciidoctor -b docbook -o dist/README.xml README.adoc
pandoc -f docbook -t gfm dist/README.xml -o README.md
publish: update-npmjs-readme
@git push && \

View file

@ -1,2 +1,2 @@
#!/usr/bin/env node
import '../target/main.js';
import '../dist/main.js';