-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore(scripts): enable type-checks on ci and fix all ts-errors #24264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| /// <reference types="jest" /> | ||
|
|
||
| import { argv } from 'just-scripts'; | ||
| import { Arguments } from 'yargs'; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| { | ||
| "extends": "./typescript/tsconfig.common.json", | ||
| // This config is used for running build scripts through ts-node | ||
| "extends": "@tsconfig/node14/tsconfig.json", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mirror our supported nodejs version |
||
| "compilerOptions": { | ||
| "module": "CommonJS", | ||
| "target": "ES2018", // Node 10 per https://kangax.github.io/compat-table/es2016plus/#node10_9 | ||
| "lib": ["ES2018", "DOM"], // Node 10, occasional test-related stuff that uses DOM | ||
| "esModuleInterop": true, | ||
| "noEmit": true, | ||
| "allowJs": true, | ||
| "noImplicitAny": false, | ||
| "strictNullChecks": false, | ||
| "outDir": "../../dist", | ||
| "sourceMap": true, | ||
| "typeRoots": ["../typings", "../node_modules/@types"], | ||
| "types": ["node", "webpack-env"] | ||
| "types": ["node", "jest"], | ||
| "noUnusedLocals": true | ||
| }, | ||
| "include": ["."], | ||
| "exclude": ["./create-package/plop-templates*", "cypress.config.ts"] | ||
| "exclude": ["./cypress/**", "./cypress.js", "./cypress.config.ts"] | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import CleanWebpackPlugin from 'clean-webpack-plugin'; | ||
| import { CleanWebpackPlugin } from 'clean-webpack-plugin'; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TBH I don't think that this thing even works. @miroslavstastny is it still collecting stats?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dunno about before, but now it should :D |
||
| import fs from 'fs'; | ||
| import path from 'path'; | ||
| import webpack from 'webpack'; | ||
|
|
@@ -64,10 +64,7 @@ const makeConfig = (srcPath: string, name: string): webpack.Configuration => ({ | |
| optimization: { | ||
| minimizer: [ | ||
| new TerserWebpackPlugin({ | ||
| cache: true, | ||
| parallel: true, | ||
| sourceMap: false, | ||
|
|
||
| terserOptions: { | ||
| mangle: false, | ||
| output: { | ||
|
|
@@ -81,10 +78,7 @@ const makeConfig = (srcPath: string, name: string): webpack.Configuration => ({ | |
| }, | ||
| }), | ||
| plugins: [ | ||
| new CleanWebpackPlugin([paths.base('stats')], { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this config was invalid for some time.... also causing ts errors |
||
| root: paths.base(), | ||
| verbose: false, // do not log | ||
| }), | ||
| new CleanWebpackPlugin(), | ||
| new IgnoreNotFoundExportPlugin(), | ||
| // new BundleAnalyzerPlugin({ | ||
| // reportFilename: `${name}.html`, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant manual work that;s done by default by nodejs