From 3812d2e7a17e632f571cb5f896c10b30158296d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Sun, 3 Mar 2024 00:26:03 +0000 Subject: [PATCH] chore: improved package.json --- package.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0b85ead..86b6743 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,14 @@ }, "license": "Apache-2.0", "scripts": { - "build": "tsc", - "lint": "eslint .", - "pretty": "prettier --config .prettierrc \"./**/*.{js,ts,tsx,json}\" --write", + "build": "tsc -p .", + "lint": "eslint \"./**/*.{js,ts,cjs}\"", + "lint-fix": "eslint \"./**/*.{js,ts,cjs}\" --fix", + "prettier": "prettier \"./**/*.{js,ts,cjs,json}\" --write", + "pretty": "npm run prettier && npm run lint-fix", "test": "npm run test:mocha", "test:mocha": "mocha --require ts-node/register --recursive test", - "watch": "tsc --watch" + "watch": "tsc -p . --watch" }, "type": "module", "source": "index.ts",