mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-30 14:18:22 -05:00
Added tsconfig and start of TypeScript migration
This commit is contained in:
@@ -2,9 +2,14 @@
|
||||
"name": "account",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "./src/server.js",
|
||||
"main": "./dist/server.js",
|
||||
"scripts": {
|
||||
"lint": "./node_modules/.bin/eslint .",
|
||||
"build": "npm run clean && tsc && npm run copy-static",
|
||||
"clean": "rm -rf ./dist",
|
||||
"copy-static": "npm run copy-assets && npm run copy-timezones",
|
||||
"copy-assets": "cp -r ./src/assets ./dist/assets",
|
||||
"copy-timezones": "cp ./src/services/nnid/timezones.json ./dist/services/nnid/timezones.json",
|
||||
"start": "node .",
|
||||
"start:dev": "NODE_ENV=development node ."
|
||||
},
|
||||
|
||||
11
tsconfig.json
Normal file
11
tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"allowJs": true,
|
||||
"target": "es6",
|
||||
"noEmitOnError": true
|
||||
},
|
||||
"include": [
|
||||
"./src/**/*"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user