# tsc rejects a tsconfig.json when files are named on the command line
cat > webpack-tsconfig.json <<'JSON'
{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es2019",
    "types": ["node"]
  },
  "files": ["webpack.config.ts"]
}
JSON
tsc -p webpack-tsconfig.json
rm -f webpack-tsconfig.json
webpack --config webpack.config.js
