← Back to team overview

sts-sponsors team mailing list archive

[Merge] ~petermakowski/maas-site-manager:add-ts-reset into maas-site-manager:main

 

Peter Makowski has proposed merging ~petermakowski/maas-site-manager:add-ts-reset into maas-site-manager:main.

Commit message:
add @total-typescript/ts-reset

Requested reviews:
  MAAS Committers (maas-committers)

For more details, see:
https://code.launchpad.net/~petermakowski/maas-site-manager/+git/site-manager/+merge/440017

add @total-typescript/ts-reset

TypeScript's built-in typings are not perfect. ts-reset makes them better. More on this: https://github.com/total-typescript/ts-reset
-- 
Your team MAAS Committers is requested to review the proposed merge of ~petermakowski/maas-site-manager:add-ts-reset into maas-site-manager:main.
diff --git a/frontend/package.json b/frontend/package.json
index db751a9..4df70a7 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -39,6 +39,7 @@
     "@testing-library/react": "14.0.0",
     "@testing-library/react-hooks": "8.0.1",
     "@testing-library/user-event": "14.4.3",
+    "@total-typescript/ts-reset": "0.4.2",
     "@types/axios": "0.14.0",
     "@types/chance": "1.1.3",
     "@types/lodash": "4.14.191",
diff --git a/frontend/reset.d.ts b/frontend/reset.d.ts
new file mode 100644
index 0000000..a3d4a03
--- /dev/null
+++ b/frontend/reset.d.ts
@@ -0,0 +1 @@
+import "@total-typescript/ts-reset";
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index d90df2e..338d1a6 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -18,6 +18,6 @@
     "noEmit": true,
     "jsx": "react-jsx"
   },
-  "include": ["src"],
+  "exclude": ["dist", "public", "node_modules"],
   "references": [{ "path": "./tsconfig.node.json" }]
 }
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index 499d977..4d4665b 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -1714,6 +1714,11 @@
   resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf";
   integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==
 
+"@total-typescript/ts-reset@0.4.2":
+  version "0.4.2"
+  resolved "https://registry.yarnpkg.com/@total-typescript/ts-reset/-/ts-reset-0.4.2.tgz#c564c173ba09973968e1046c93965b7a257878a4";
+  integrity sha512-vqd7ZUDSrXFVT1n8b2kc3LnklncDQFPvR58yUS1kEP23/nHPAO9l1lMjUfnPrXYYk4Hj54rrLKMW5ipwk7k09A==
+
 "@types/aria-query@^5.0.1":
   version "5.0.1"
   resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.1.tgz#3286741fb8f1e1580ac28784add4c7a1d49bdfbc";

Follow ups