Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Jan 21, 2021
1 parent be54b87 commit 625ab5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"main": "out/init.lua",
"scripts": {
"prepare": "npm run build",
"build": "cross-env NODE_ENV=production TYPE=ts rbxtsc --verbose",
"build:luau": "cross-env NODE_ENV=production TYPE=luau rbxtsc --verbose --type=model --rojo=\"luau/default.project.json\"",
"build": "cross-env NODE_ENV=production rbxtsc --verbose",
"build:luau": "cross-env NODE_ENV=production TYPE=Luau rbxtsc --verbose --type=model --rojo=\"luau/default.project.json\"",
"build:docs": "cd docs && npm run build",
"build:dev": "cross-env NODE_ENV=development TYPE=ts rbxtsc --verbose",
"build:dev": "cross-env NODE_ENV=development rbxtsc --verbose",
"luau": "npm run build:luau && rojo build luau.project.json -o luau.net.rbxmx",
"build:example": "cross-env NODE_ENV=development TYPE=ts rbxtsc-dev --type=game -p ./example -i ./include",
"watch:example": "cross-env NODE_ENV=development TYPE=ts rbxtsc-dev -w --type=game -p ./example -i ./include",
"build:example": "cross-env NODE_ENV=development rbxtsc-dev --type=game -p ./example -i ./include",
"watch:example": "cross-env NODE_ENV=development rbxtsc-dev -w --type=game -p ./example -i ./include",
"serve:example": "rojo serve ./example/default.project.json --port 34567"
},
"repository": {
Expand All @@ -27,7 +27,7 @@
"homepage": "https://github.com/roblox-aurora/rbx-net#readme",
"publishConfig": {
"access": "public",
"tag": "next"
"tag": "beta"
},
"types": "out/index.d.ts",
"devDependencies": {
Expand Down
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { $env, $ifEnv } from "rbxts-transform-env";
import { $dbg } from "rbxts-transform-debug";
import { IS_SERVER } from "./internal";

const BUILD_TYPE = $env("TYPE", "TS");

/**
* Networking Library for Roblox
* @version 2.0
Expand All @@ -26,11 +28,11 @@ namespace Net {
*/
export const Definitions = CreateNetDefinitionBuilder;

export const VERSION = `${PKG_VERSION}${
export const VERSION = `${PKG_VERSION} (${
$env<"production" | "development">("NODE_ENV", "production") === "development"
? "-dev-" + $env("TYPE", "ts")
: "-" + $env("TYPE", "ts")
}`;
? "DEV " + BUILD_TYPE
: BUILD_TYPE
})`;

/**
* Built-in middlewares
Expand Down

0 comments on commit 625ab5f

Please sign in to comment.