Add npmignore
Fixes built files not added to npmjs
This commit is contained in:
parent
793b6aece0
commit
fe9e51a297
4 changed files with 9 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
target/
|
dist/
|
||||||
README.md
|
README.md
|
||||||
|
|
4
.npmignore
Normal file
4
.npmignore
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
*
|
||||||
|
!bin/
|
||||||
|
!dist/
|
||||||
|
!README.md
|
6
Makefile
6
Makefile
|
@ -15,7 +15,7 @@ build: node_modules
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -r target node_modules
|
rm -r dist node_modules
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@read -p "Enter version bump (patch, minor, major): " bump && \
|
@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."
|
echo "Version $$version created. Run 'make publish' to push the changes and publish the package."
|
||||||
|
|
||||||
update-npmjs-readme:
|
update-npmjs-readme:
|
||||||
asciidoctor -b docbook -o target/README.xml README.adoc
|
asciidoctor -b docbook -o dist/README.xml README.adoc
|
||||||
pandoc -f docbook -t gfm target/README.xml -o README.md
|
pandoc -f docbook -t gfm dist/README.xml -o README.md
|
||||||
|
|
||||||
publish: update-npmjs-readme
|
publish: update-npmjs-readme
|
||||||
@git push && \
|
@git push && \
|
||||||
|
|
2
bin/wtc
2
bin/wtc
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
import '../target/main.js';
|
import '../dist/main.js';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue