diff --git a/.gitignore b/.gitignore index aa4b8ea..9514c19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ node_modules tmp/* temp/* -.nexe \ No newline at end of file +.nexe +dist +.DS_Store \ No newline at end of file diff --git a/package.json b/package.json index a425843..6291713 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "v2f.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "./node_modules/.bin/nexe ./ --build", + "build": "sh ./scripts/build.sh", "compile": "./node_modules/.bin/tsc ./src/v2f.ts --outFile ./v2f.js --noImplicitAny --lib ES2017 --lib ES2016 -t ES2016", "docs": "./node_modules/.bin/jsdoc2md ./v2f.js > ./docs/Readme.md" }, diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100644 index 0000000..9df43de --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mkdir -p dist +./node_modules/.bin/nexe ./v2f.js --build --output ./dist/v2f