From d87c9bf61de54936fc719f3fff1d808195b9a71f Mon Sep 17 00:00:00 2001 From: KianYang-Lee Date: Mon, 10 Feb 2025 10:01:44 +0800 Subject: [PATCH] fix: incorrect build command and instructions --- game-starter/README.md | 9 +++++++-- game-starter/package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/game-starter/README.md b/game-starter/README.md index 74c5125d..8e5f2322 100644 --- a/game-starter/README.md +++ b/game-starter/README.md @@ -1,4 +1,5 @@ # game-starter + ### This is a starter project using the core components of the G.A.M.E SDK To get an API KEY https://console.game.virtuals.io/ @@ -9,13 +10,17 @@ Typescript: https://github.com/game-by-virtuals/game-node NPM: https://www.npmjs.com/package/@virtuals-protocol/game ## Prerequisites + - nvm - git - node ## To run project -`npm install && npm run build && npm start` - +Create a new `.env` file at root with content below: +``` +API_KEY= +``` +`npm install && npm run build && npm start` diff --git a/game-starter/package.json b/game-starter/package.json index d03c5470..7617021f 100644 --- a/game-starter/package.json +++ b/game-starter/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "build": "tsc", + "build": "tsc --build", "start": "node dist/index.js", "plugin": "node dist/plugins/example.js", "dev": "ts-node src/index.ts",