From 9204821ff84ef0bd0848bf3181d45ecff66facb2 Mon Sep 17 00:00:00 2001 From: Mikhail Nasyrov Date: Sat, 10 Dec 2022 15:07:36 +0300 Subject: [PATCH] chore: Added 'pack' script --- .gitignore | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 29728a4..a0105c9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ node_modules npm-debug.log Thumbs.db +/dist diff --git a/package.json b/package.json index d096a8d..7b2c85b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "type": "module", "scripts": { "postinstall": "lerna bootstrap", - "clean": "lerna run clean", + "clean": "rm -rf dist && lerna run clean", "lint": "npm run lint:eslint && npm run lint:tsc", "lint:eslint": "eslint \"packages/*/{src,test*}/**\"", "lint:tsc": "tsc --noEmit --jsx react", @@ -26,7 +26,8 @@ "prepare": "husky install", "prepublishOnly": "npm run clean && npm run build", "lerna-version": "lerna version", - "lerna-publish": "lerna publish from-git" + "lerna-publish": "lerna publish from-git", + "pack": "npm run build && mkdir -p dist && npx lerna exec 'npm pack --pack-destination ../../dist'" }, "devDependencies": { "@types/jest": "29.2.4",