{
  "name": "interspan-server",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build":"node build-client.ts",
    "start": "node ./dist/index.js",
    "client": "node start-client.ts"
  },
  "engines": {
    "node": ">=4.3.2"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "body-parser": "^1.17.1",
    "ejs": "^2.5.6",
    "express": "^4.15.2",
    "method-override": "^2.3.8",
    "morgan": "^1.8.1",
    "mysql": "^2.13.0"
  },
  "devDependencies": {
    "@types/express": "^4.0.35",
    "@types/mysql": "0.0.32",
    "@types/node": "^7.0.16",
    "core-js": "^2.4.1",
    "typescript": "^2.3.2"
  }
}

{
  "name": "interspan-server",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build":"node build-client.ts && tsc src/index --outDir dist --lib es2015",
    "start": "node ./dist/index.js",
    "client": "node start-client.ts"
  },
  "engines": {
    "node": ">=4.3.2"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "body-parser": "^1.17.1",
    "ejs": "^2.5.6",
    "express": "^4.15.2",
    "method-override": "^2.3.8",
    "morgan": "^1.8.1",
    "mysql": "^2.13.0"
  },
  "devDependencies": {
    "@types/express": "^4.0.35",
    "@types/mysql": "0.0.32",
    "@types/node": "^7.0.16",
    "core-js": "^2.4.1",
    "typescript": "^2.3.2"
  }
}

Write script to built server code from command shell
Write script to built server code from command shell
