From 007860f8f771a7ee62b1c384fbe4f741528a75d5 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 30 May 2022 14:26:54 -0400 Subject: react: Add Router hook & fix typescript issues (#68) * add rollup watch command, add pnpm lockfile * wait for react * add WIP patcher, window hook, and webpack * fix typescript, fix React, lint, add pnpm to gitignore * actually fix react * show frontend JS errors in console * cleanup * Add Router hook * Remove console.log * Expose routerHook in createPluginAPI Co-authored-by: Jonas Dellinger --- frontend/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontend/package.json') diff --git a/frontend/package.json b/frontend/package.json index 51bed2db..73c033b1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,6 +6,7 @@ "scripts": { "prepare": "cd .. && husky install frontend/.husky", "build": "rollup -c", + "watch": "rollup -c -w", "lint": "prettier -c src", "format": "prettier -c src -w" }, @@ -23,7 +24,9 @@ "prettier-plugin-import-sort": "^0.0.7", "react": "16.14.0", "react-dom": "16.14.0", - "rollup": "^2.70.2" + "rollup": "^2.70.2", + "tslib": "^2.4.0", + "typescript": "^4.7.2" }, "importSort": { ".js, .jsx, .ts, .tsx": { -- cgit v1.2.3