Running Your Project
Update your package.json to include scripts:
"scripts": {
"start": "node dist/index.js",
"dev": "ts-node src/index.ts",
"build": "tsc"
}After the change it will look like:
{
"name": "my-project",
"version": "1.0.0",
"main": "index.ts",
"scripts": {
"start": "node dist/index.js",
"dev": "ts-node src/index.ts",
"build": "tsc"
},
"dependencies": {
"vkrun": "*"
},
"devDependencies": {
"typescript": "*",
"ts-node": "*",
"@types/node": "*"
}
}To start the development server:
NPM
npm run devYARN
yarn devTo start the production server:
NPM
npm run build
npm run startYARN
yarn build
yarn startHappy coding with VkrunJS!