🔧 Add typescript config
This commit is contained in:
parent
a3ffa63fcf
commit
1257dd8b21
5 changed files with 33 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
dist
|
||||
node_modules
|
||||
|
|
8
README.md
Normal file
8
README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
This tool is used for fetching releases from SWTOR's patch server CDN and installing them.
|
||||
|
||||
# Dependencies
|
||||
For this tool to work, ```tsc``` must be globally available, e.g. by running:
|
||||
|
||||
```bash
|
||||
npm install -g typescript
|
||||
```
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"name": "patcher",
|
||||
"main": "index.js",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"start": "tsc && node dist/index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
}
|
||||
}
|
||||
|
|
1
src/index.ts
Normal file
1
src/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
console.log('Hello world!');
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
//settings:
|
||||
"baseUrl": ".",
|
||||
"inlineSourceMap": true,
|
||||
"module": "ES2015",
|
||||
"moduleResolution": "node",
|
||||
"newLine": "lf",
|
||||
"outDir": "dist",
|
||||
"paths": {
|
||||
"*": [
|
||||
"node_modules/*"
|
||||
]
|
||||
},
|
||||
"strict": true,
|
||||
"target": "es2018",
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue