From 62bce1881744835405ae1144919f07f9d6eed618 Mon Sep 17 00:00:00 2001 From: Ryuu Mitsuki Date: Tue, 21 May 2024 17:50:40 +0700 Subject: [PATCH] chore(scripts): Add several new npm scripts - `prepublishOnly`: Builds the project with '--overwrite' argument. - `prepack`: Tests the project before packing the project (`npm pack`). --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c0f096..79c52c9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ "build:docs": "typedoc --options typedoc.config.js", "test": "node test/lsfnd.spec.cjs && node test/lsfnd.spec.mjs", "test:cjs": "node test/lsfnd.spec.cjs", - "test:mjs": "node test/lsfnd.spec.mjs" + "test:mjs": "node test/lsfnd.spec.mjs", + "prepublishOnly": "ts-node scripts/build.ts --overwrite", + "prepack": "npm test" }, "repository": { "type": "git",