From 0a96deb961094855c278d04fe43013c6ed4b4beb Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 19 May 2023 21:37:49 +0300 Subject: [PATCH] Updated build process --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 08b6105..4e6ed74 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "main": "src/index.ts", "type": "module", "scripts": { + "clean": "rimraf dist", "generate": "ncc run scripts/generate.ts -t", - "prebuild": "npm run generate", - "build": "ncc build -s --license license.txt", + "prebuild": "npm run clean && npm run generate", + "build": "ncc build -m -s --license license.txt", "test:lint": "eslint \"@(src|scripts)/**/*.ts\" && eslint --rule \"no-invalid-this: off\" tests/**/*.ts", "test:unit": "jest --testPathPattern=unit --watchAll=false", "test:integration": "jest --testPathPattern=integration --watchAll=false --passWithNoTests",