OVERVIEW
Running Project

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 dev
YARN
yarn dev

To start the production server:

NPM
npm run build
npm run start
YARN
yarn build
yarn start

Happy coding with VkrunJS!

Copyright © 2024 MIT by Mario Elvio