|
40 | 40 | "build:res": "node scripts/copy-res.js", |
41 | 41 | "build:genfiles": "yarn reskindex && yarn build:res", |
42 | 42 | "build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js", |
43 | | - "build:compile": "babel -d lib --verbose --extensions \".ts,.js\" src", |
| 43 | + "build:compile": "babel -d lib --verbose --extensions \".ts,.js,.tsx\" src", |
44 | 44 | "build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail --mode production", |
45 | 45 | "build:electron": "yarn build && yarn install:electron && electron-builder -wml --ia32 --x64", |
46 | 46 | "build:electron:linux": "yarn build && electron-builder -l --x64", |
47 | 47 | "build:electron:macos": "yarn build && electron-builder -m --x64", |
48 | 48 | "build:electron:windows": "yarn build && electron-builder -w --ia32 --x64", |
49 | | - "build:types": "tsc --emitDeclarationOnly", |
| 49 | + "build:types": "tsc --emitDeclarationOnly --jsx react", |
50 | 50 | "install:electron": "electron-builder install-app-deps", |
51 | 51 | "dist": "scripts/package.sh", |
52 | 52 | "start": "concurrently --kill-others-on-fail --prefix \"{time} [{name}]\" -n reskindex,reskindex-react,res,riot-js \"yarn reskindex:watch\" \"yarn reskindex:watch-react\" \"yarn start:res\" \"yarn start:js\"", |
|
56 | 56 | "lint": "yarn lint:types && yarn lint:ts && yarn lint:js && yarn lint:style", |
57 | 57 | "lint:js": "eslint src", |
58 | 58 | "lint:ts": "echo 'We don't actually have a typescript linter at this layer because tslint is being removed from our stack. Presumably your TS is fine.'", |
59 | | - "lint:types": "tsc --noEmit", |
| 59 | + "lint:types": "tsc --noEmit --jsx react", |
60 | 60 | "lint:style": "stylelint 'res/css/**/*.scss'", |
61 | 61 | "test": "jest" |
62 | 62 | }, |
|
94 | 94 | "@babel/preset-typescript": "^7.7.4", |
95 | 95 | "@babel/register": "^7.7.4", |
96 | 96 | "@babel/runtime": "^7.7.6", |
97 | | - "@types/react": "^16.9.17", |
| 97 | + "@types/react": "16.9", |
98 | 98 | "@types/react-dom": "^16.9.4", |
99 | 99 | "autoprefixer": "^9.7.3", |
100 | 100 | "babel-eslint": "^10.0.3", |
|
0 commit comments