From 12acd7bdcae0fd1549d49e40bc01e70241f6138e Mon Sep 17 00:00:00 2001 From: OFF0 Date: Fri, 7 Apr 2023 11:08:47 +0200 Subject: [PATCH] scripts: add npm build, format and test scripts in addition to the just tasks, this commit adds npm scripts back, for convenience. example taks: - npm test - npm test filter.test.js - npm run build - npm run format in yarn it should just work without 'run' i.e. 'yarn build'. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 6a42b4d..8779e2b 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,11 @@ "client", "nostr" ], + "scripts": { + "build": "node build", + "format": "prettier --plugin-search-dir . --write .", + "test": "node build && jest" + }, "devDependencies": { "@types/node": "^18.13.0", "@typescript-eslint/eslint-plugin": "^5.51.0",