fix: dependencies

main
Colloque Tsui 4 years ago
parent 1c73aed898
commit e80859b35e
  1. 14
      package.json
  2. 2
      src/index.ts

@ -5,26 +5,26 @@
"main": "index.js",
"scripts": {
"start": "npm run serve",
"build": "npm run npm run build-ts && npm run lint",
"build": "npm run build-ts",
"serve": "node dist/index.js",
"watch-node": "nodemon dist/index.js",
"watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run watch-node\"",
"watch": "tsc && concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run watch-node\"",
"build-ts": "tsc",
"watch-ts": "tsc -w",
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\" --quiet --fix"
"watch-ts": "tsc -w"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"typescript": "^3.7.3"
"typescript": "^4.0.3"
},
"devDependencies": {
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"@types/concurrently": "^4.1.0",
"@types/concurrently": "^5.2.1",
"@types/node-fetch": "^2.5.4",
"concurrently": "^5.0.0"
"concurrently": "^5.0.0",
"nodemon": "^2.0.4"
}
}

@ -2,4 +2,4 @@ function init(firstName: string, lastName: string) {
return `${firstName} ${lastName}`;
}
console.log(init('Hello', 'world'));
console.log(init('Hello', 'world'));

Loading…
Cancel
Save