# \[TYPESCRIPT] cài đặt package chạy trực tiếp ts, tsx, ts-node (ok)

C:\Users\Administrator\Desktop\typescript-decorators\package.json

```
{
  "name": "learn-decorator",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "build": "tsc",
    "start": "ts-node calculate-time.ts"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@types/node": "^13.13.5",
    "ts-node": "^8.10.1",
    "typescript": "^3.9.2"
  },
  "dependencies": {
    "reflect-metadata": "^0.1.13"
  }
}

```

C:\Users\Administrator\Desktop\typescript-decorators\index.tsx

```
console.log('aaaaaaaaaaaa');
```

C:\Users\Administrator\Desktop\typescript-decorators\tsconfig.json

![](https://2726517656-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1E4Gk2ppVKb4olmnun%2F-MM5aUyNeDfxBg36h66C%2F-MM5cIS0qNUfo0eOM5nx%2FScreenshot_1.png?alt=media\&token=f9b5df9b-9e5c-4d56-96c5-55355d6df617)

```
{
  "compilerOptions": {
    "target": "ES5",
    "experimentalDecorators": true
  }
}

```
