From 9ba882619c50652ca5566442d8d9d44b37400873 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Thu, 20 Jan 2022 04:09:06 -0500 Subject: [PATCH] fix: typings generation script --- extensions/akismet/js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/akismet/js/package.json b/extensions/akismet/js/package.json index af5e399fc..1aef3b44c 100644 --- a/extensions/akismet/js/package.json +++ b/extensions/akismet/js/package.json @@ -11,7 +11,7 @@ "check-typings": "tsc --noEmit --emitDeclarationOnly false", "check-typings-coverage": "typescript-coverage-report", "clean-typings": "npx rimraf dist-typings && mkdir dist-typings", - "build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc" + "build-typings": "npm run clean-typings && tsc && [[ -e src/@types ]] && cp -r src/@types dist-typings/@types" }, "devDependencies": { "@flarum/prettier-config": "^1.0.0",