From 8f5ea8bad847e54380e2aa9fab458df893aee22a Mon Sep 17 00:00:00 2001 From: Marcin Licznerski Date: Thu, 20 Jun 2024 21:00:28 +0200 Subject: [PATCH] Fix script "pack" script was failing when `dist` directory didn't exist. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2d8899b..a4003d4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.1", "description": "NodeJS client library for Adscore", "scripts": { - "pack": "rm -r ./dist && npm run generate-barrels && tsup && npm run copy-files && cd ./dist && npm pack", + "pack": "rm -r -f ./dist && npm run generate-barrels && tsup && npm run copy-files && cd ./dist && npm pack", "publish": "cd ./dist && npm publish --access public", "copy-files": "cp package.json ./dist/ && cp readme.md ./dist/", "generate-barrels": "barrelsby --delete --directory ./src --location all",