From fcd93d9f81d1722f2d702756f630446597a84c6d Mon Sep 17 00:00:00 2001 From: Marco Lipparini Date: Wed, 4 May 2022 23:28:16 +0200 Subject: [PATCH] Adding build on publish --- package.json | 8 +++++--- yarn.lock | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5806520..d709d15 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "A flexible library to update collection data programmatically.", "keywords": [], "license": "MIT", - "version": "1.0.0-beta.1", + "version": "1.0.0-beta.2", "contributors": [ "Marco Lipparini (https://www.liarco.net)" ], @@ -22,9 +22,11 @@ }, "devDependencies": { "@aws-sdk/types": "^3.78.0", - "@types/node": "^17.0.31" + "@types/node": "^17.0.31", + "typescript": "^4.6.4" }, "scripts": { - "build": "tsc" + "build": "rm -rf ./dist && tsc", + "prepublishOnly": "yarn build" } } diff --git a/yarn.lock b/yarn.lock index e74c3e3..f3a6450 100644 --- a/yarn.lock +++ b/yarn.lock @@ -549,6 +549,11 @@ scrypt-js@3.0.1: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== +typescript@^4.6.4: + version "4.6.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" + integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== + url@0.10.3: version "0.10.3" resolved "https://registry.yarnpkg.com/url/-/url-0.10.3.tgz#021e4d9c7705f21bbf37d03ceb58767402774c64"