Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-tags: true
path: docs-dist
repository: nanoforge-dev/docs
token: ${{ secrets.ACTIONS_KEY }}
token: ${{ secrets.TOKEN }}

- name: Prepare
uses: ./.github/actions/prepare
Expand Down
1 change: 1 addition & 0 deletions .idea/[NanoForge] Loader.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

# [1.5](https://github.com/NanoForge-dev/Loader/compare/@nanoforge-dev/loader@1.4.0...@nanoforge-dev/loader@1.5) - (2026-08-29)
# [1.5.0](https://github.com/NanoForge-dev/Loader/compare/@nanoforge-dev/loader@1.4.0...@nanoforge-dev/loader@1.5) - (2026-08-29)

## Bug Fixes

Expand Down
9 changes: 5 additions & 4 deletions apps/client/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@nanoforge-dev/loader-client",
"version": "1.5",
"version": "1.5.0",
"description": "NanoForge Loader - Client",
"homepage": "https://github.com/NanoForge-dev/Loader#readme",
"bugs": "https://github.com/NanoForge-dev/Loader/issues",
"license": "MIT",
"contributors": [
"Bill <timothe.jacquot@epitech.eu>",
"Exelo <exelo.corp@gmail.com>",
"Exelo <contact@exelo.dev>",
"Fexkoser <martin.fillon@epitech.eu>",
"Tchips <leo.outmizguine@epitech.eu>"
"Harper <timothe.jacquot@epitech.eu>",
"Josephine <josephine.chicouras@epitech.eu>",
"Leo <leo.outmizguine@epitech.eu>"
],
"files": [
"dist"
Expand Down
6 changes: 4 additions & 2 deletions apps/client/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ program
.name("client loader")
.description("run client loader")
.option("-p, --port <port>", "port of the client", "3000")
.option("-d, --dir <dir>", "dir of the game", ".nanoforge/client")
.option("-d, --dir <dir>", "dir of the game")
.option("--watch", "watch the game dir", false)
.option("--watch-port <watch port>", "port for watch websocket (default: first port available)")
.option("--watch-server-dir <watch server dir>", "dir of the server for watch it too")
Expand All @@ -25,14 +25,16 @@ program

const { port, dir, watch, watchPort, watchServerDir, cert, key } = program.opts<{
port: string;
dir: string;
dir?: string;
watch: boolean;
watchPort?: string;
watchServerDir?: string;
cert?: string;
key?: string;
}>();

if (!dir) throw new Error("No game dir specified");

export const MANIFEST: IManifest = {
version: "",
files: [],
Expand Down
9 changes: 5 additions & 4 deletions apps/server/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@nanoforge-dev/loader-server",
"version": "1.5",
"version": "1.5.0",
"description": "NanoForge Loader - Server",
"homepage": "https://github.com/NanoForge-dev/Loader#readme",
"bugs": "https://github.com/NanoForge-dev/Loader/issues",
"license": "MIT",
"contributors": [
"Bill <timothe.jacquot@epitech.eu>",
"Exelo <exelo.corp@gmail.com>",
"Exelo <contact@exelo.dev>",
"Fexkoser <martin.fillon@epitech.eu>",
"Tchips <leo.outmizguine@epitech.eu>"
"Harper <timothe.jacquot@epitech.eu>",
"Josephine <josephine.chicouras@epitech.eu>",
"Leo <leo.outmizguine@epitech.eu>"
],
"files": [
"dist"
Expand Down
10 changes: 6 additions & 4 deletions apps/server/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { program } from "commander";
import { type ChildProcess, fork } from "node:child_process";
import { join } from "node:path";
import { dirname } from "node:path";
import { dirname, join, resolve } from "node:path";
import * as process from "node:process";
import { fileURLToPath } from "node:url";

import { getFiles } from "./files";
Expand All @@ -11,7 +11,7 @@ const bootstrap = async () => {
program
.name("server loader")
.description("run server loader")
.option("-d, --dir <dir>", "dir of the game", ".nanoforge/server")
.option("-d, --dir <dir>", "dir of the game")
.option("--watch", "watch the game dir", false)
.parse();

Expand All @@ -20,12 +20,14 @@ const bootstrap = async () => {
watch: boolean;
}>();

if (!dir) throw new Error("No game dir specified");

const paths = getFiles(dir);
let mainPath: string | undefined = undefined;

paths.filter(([path, fullPath]) => {
if (path !== "/main.js") return true;
mainPath = fullPath;
mainPath = resolve(fullPath);
return false;
});

Expand Down
9 changes: 5 additions & 4 deletions apps/website/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@nanoforge-dev/loader-website",
"version": "1.5",
"version": "1.5.0",
"description": "NanoForge Loader - Website",
"homepage": "https://github.com/NanoForge-dev/Loader#readme",
"bugs": "https://github.com/NanoForge-dev/Loader/issues",
"license": "MIT",
"contributors": [
"Bill <timothe.jacquot@epitech.eu>",
"Exelo <exelo.corp@gmail.com>",
"Exelo <contact@exelo.dev>",
"Fexkoser <martin.fillon@epitech.eu>",
"Tchips <leo.outmizguine@epitech.eu>"
"Harper <timothe.jacquot@epitech.eu>",
"Josephine <josephine.chicouras@epitech.eu>",
"Leo <leo.outmizguine@epitech.eu>"
],
"files": [
"dist"
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@nanoforge-dev/loader",
"version": "1.5",
"version": "1.5.0",
"description": "NanoForge Loader - Monorepo",
"homepage": "https://github.com/NanoForge-dev/Loader#readme",
"bugs": "https://github.com/NanoForge-dev/Engine/issues",
"license": "MIT",
"contributors": [
"Bill <timothe.jacquot@epitech.eu>",
"Exelo <exelo.corp@gmail.com>",
"Exelo <contact@exelo.dev>",
"Fexkoser <martin.fillon@epitech.eu>",
"Tchips <leo.outmizguine@epitech.eu>"
"Harper <timothe.jacquot@epitech.eu>",
"Josephine <josephine.chicouras@epitech.eu>",
"Leo <leo.outmizguine@epitech.eu>"
],
"repository": {
"type": "git",
Expand Down
Loading
Loading