Skip to content

Commit

Permalink
Add a type checking command and declare test packages
Browse files Browse the repository at this point in the history
  • Loading branch information
skovy committed Oct 7, 2019
1 parent 87583fe commit dd07f9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions declarations.d.ts
@@ -0,0 +1,12 @@
// These packages are not actually used but are used in the test input/output
// to verify the transform functionality. They're declared here so type-checking
// can still be performed on all files.
declare module "react";
declare module "@fortawesome/free-brands-svg-icons";
declare module "@fortawesome/free-solid-svg-icons";
declare module "@fortawesome/free-regular-svg-icons";
declare module "@fortawesome/pro-regular-svg-icons";
declare module "@fortawesome/pro-solid-svg-icons";
declare module "@fortawesome/pro-light-svg-icons";
declare module "@fortawesome/react-fontawesome";
declare module "custom-design-system";
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -6,7 +6,8 @@
"author": "Spencer Miskoviak <smiskoviak@gmail.com>",
"license": "MIT",
"scripts": {
"test": "jest"
"test": "jest",
"check:types": "tsc --noEmit"
},
"devDependencies": {
"@types/jest": "^24.0.18",
Expand Down

0 comments on commit dd07f9a

Please sign in to comment.