diff --git a/package.json b/package.json index 30e7f2a..1ef447b 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "swissqrbill", - "version": "1.0.1", + "version": "1.0.2", "description": "Node implementation for the swiss QR bill", "main": "./index.js", "types": "./lib/index.d.ts", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "start": "node ./lib/index.js" + "test": "cd tests && sh run.sh", + "build": "tsc" }, "repository": { "type": "git", diff --git a/tests/run.sh b/tests/run.sh index c411698..c6ace08 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,23 +1,23 @@ #!/bin/sh echo "a4" -sudo node a4 + node a4 echo "english" -sudo node english + node english echo "euro" -sudo node euro + node euro echo "french" -sudo node french + node french echo "italian" -sudo node italian + node italian echo "multipage" -sudo node multipage + node multipage echo "no-amount" -sudo node no-amount + node no-amount echo "no-debitor" -sudo node no-debitor + node no-debitor echo "separate" -sudo node separate + node separate echo "ts" tsc ts.ts -sudo node ts -sudo rm ts.js \ No newline at end of file + node ts + rm ts.js \ No newline at end of file