From 38df4a8e947c85cdd6484d2476d9dcedc4c5e79a Mon Sep 17 00:00:00 2001 From: Enzo Ferey Date: Mon, 25 Jul 2022 13:19:06 +0200 Subject: [PATCH] core: implement first release improvements --- .prettierignore | 3 ++- package.json | 15 +++++++++++++-- vite.config.js | 5 +++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.prettierignore b/.prettierignore index db4c6d9..0498e17 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ dist -node_modules \ No newline at end of file +node_modules +coverage \ No newline at end of file diff --git a/package.json b/package.json index db77da7..18e5dc7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,17 @@ { "name": "@enzoferey/ethers-error-parser", - "version": "0.1.0", + "version": "0.1.1", + "license": "MIT", + "homepage": "https://github.com/enzoferey/ethers-error-parser", + "repository": { + "type": "git", + "url": "https://github.com/enzoferey/ethers-error-parser.git" + }, + "keywords": [ + "ethers-js", + "error", + "parsing" + ], "type": "module", "files": [ "dist" @@ -16,7 +27,7 @@ }, "scripts": { "build": "tsc && vite build", - "prepublish": "yarn build", + "prepublishOnly": "yarn build", "ts:check": "tsc --noEmit", "format": "prettier --write .", "format:check": "prettier --check .", diff --git a/vite.config.js b/vite.config.js index d573018..d1bcfcb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -13,11 +13,12 @@ export default defineConfig({ }, plugins: [dts()], test: { + mockReset: true, coverage: { src: ["lib"], - reporter: ["lcov"], + reporter: ["text", "lcov"], all: true, - exclude: ["lib/index.ts", "lib/types.ts"], + exclude: ["lib/**/index.ts", "lib/types.ts", "*.d.ts"], 100: true, }, },