I have the following `tsconfig.json` file:

```
{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "outDir": "./public",
    "rootDir": "./src"
  }
}

```

and I'd like to make the following output when I'm compiling the app.ts file into app.js:

```
MyProject
├── tsconfig.json
├── public
│   ├── index.html
│   ├── app.js
├── src
│   ├── app.ts

```

How I can achieve the app.js file output be in the public folder?

What did I do wrong in the config file? I keep reading the official documents but I cannot figure it out.