From 43177c29a192b5515485e20a08782dfd41560d95 Mon Sep 17 00:00:00 2001 From: IT-MikeS <20338451+IT-MikeS@users.noreply.github.com> Date: Thu, 16 Jun 2022 11:55:13 -0400 Subject: [PATCH] fix: bundle platform types --- platform/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/package.json b/platform/package.json index fa7a4c1..2313c4c 100644 --- a/platform/package.json +++ b/platform/package.json @@ -8,13 +8,14 @@ "lint": "npm run eslint && npm run prettier -- --check", "fmt": "npm run eslint -- --fix && npm run prettier -- --write", "clean": "rimraf ./dist", - "build": "npm run clean && npm run fmt && npm run build-platform", + "build": "npm run clean && npm run fmt && npm run build-platform && npm run build-platform-types", "capacitor:add": "node dist/cli-scripts/cap-scripts.js add", "capacitor:copy": "node dist/cli-scripts/cap-scripts.js copy", "capacitor:update": "node dist/cli-scripts/cap-scripts.js update", "capacitor:sync": "node dist/cli-scripts/cap-scripts.js sync", "capacitor:open": "node dist/cli-scripts/cap-scripts.js open", "build-platform": "node ./build-platform.js", + "build-platform-types": "tsc ./src/electron/index.ts --outDir ./dist/core --declaration --emitDeclarationOnly --esModuleInterop", "prettier": "prettier \"**/*.{css,html,js,mjs,ts}\"", "eslint": "eslint . --ext ts" },