From ba3944035b1c2771ddf56a24244b156cb37ff85b Mon Sep 17 00:00:00 2001 From: nyxb Date: Sun, 21 May 2023 14:49:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(package.json):=20add=20new?= =?UTF-8?q?=20scripts=20for=20build,=20linting,=20testing,=20and=20releasi?= =?UTF-8?q?ng=20Added=20new=20scripts=20to=20the=20package.json=20file=20t?= =?UTF-8?q?o=20improve=20the=20development=20workflow.=20The=20new=20scrip?= =?UTF-8?q?ts=20include=20prepack,=20build,=20test:dts,=20type-check,=20li?= =?UTF-8?q?nt,=20lint:fix,=20release,=20and=20test.=20The=20prepack=20scri?= =?UTF-8?q?pt=20runs=20the=20nyxr=20build=20command=20and=20cleans=20the?= =?UTF-8?q?=20package.json=20file.=20The=20build=20script=20runs=20the=20b?= =?UTF-8?q?uildkarium=20command.=20The=20test:dts=20script=20runs=20the=20?= =?UTF-8?q?tsd=20command.=20The=20type-check=20script=20runs=20the=20tsc?= =?UTF-8?q?=20command=20with=20the=20--noEmit=20flag.=20The=20lint=20scrip?= =?UTF-8?q?t=20runs=20the=20eslint=20command=20with=20the=20.ts=20and=20.j?= =?UTF-8?q?s=20extensions.=20The=20lint:fix=20script=20runs=20the=20eslint?= =?UTF-8?q?=20command=20with=20the=20--fix=20flag.=20The=20release=20scrip?= =?UTF-8?q?t=20runs=20the=20nyxr=20test=20command,=20generates=20a=20chang?= =?UTF-8?q?elog=20with=20nyxlx=20changelogen,=20publishes=20the=20package?= =?UTF-8?q?=20with=20pnpm=20publish,=20and=20pushes=20the=20changes=20with?= =?UTF-8?q?=20git=20push=20--follow-tags.=20The=20test=20script=20runs=20t?= =?UTF-8?q?he=20lint=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d894a6b..f519646 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,16 @@ "default": "./dist/index.mjs" } }, + "scripts": { + "prepack": "nyxr build && clean-pkg-json", + "build": "buildkarium", + "test:dts": "tsd", + "type-check": "tsc --noEmit", + "lint": "eslint --ext .ts,.js .", + "lint:fix": "eslint --ext .ts,.js . --fix", + "release": "nyxr test && nyxlx changelogen --release && pnpm publish && git push --follow-tags", + "test": "nyxr lint && vitest run --coverage" + }, "files": [ "dist" ], @@ -43,4 +53,4 @@ "typed", "typescript" ] -} \ No newline at end of file +}