From 61496cb0efe50a1c81e00cdb20240392866cb2f6 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 30 Dec 2021 14:13:56 +1300 Subject: [PATCH] Dev fixes --- example/tsconfig.json | 5 ++++- package.json | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/example/tsconfig.json b/example/tsconfig.json index 7c49078..8f1a5f5 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -33,7 +33,10 @@ "transform": "rbxts-transform-env" }, { - "transform": "rbxts-transform-debug" + "transform": "rbxts-transform-debug", + "environmentRequires": { + "NODE_ENV": "development" + } } ] }, diff --git a/package.json b/package.json index 27de933..0c5196b 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,11 @@ "prepare": "npm run build", "build": "rbxtsc --verbose", "dev:example": "concurrently npm:watch:example npm:serve:example", + "prod:example": "concurrently npm:watch-prod:example npm:serve:example", "build:example": "rbxtsc --type=game -p ./example -i ./include", "build:luau": "rbxtsc --verbose --type=model --rojo=\"luau/build.project.json\"", "watch:example": "cross-env NODE_ENV=development rbxtsc -w --type=game -p ./example -i ./include", + "watch-prod:example": "rbxtsc -w --type=game -p ./example -i ./include", "serve:example": "rojo serve ./example/default.project.json --port 34567" }, "keywords": [