@titanpl/cli 5.0.5 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titanpl/cli",
3
- "version": "5.0.5",
3
+ "version": "6.0.0",
4
4
  "description": "The unified CLI for Titan Planet. Use it to create, manage, build, and deploy high-performance backend projects.",
5
5
  "keywords": [
6
6
  "titanpl",
@@ -29,13 +29,13 @@
29
29
  "tit": "./index.js"
30
30
  },
31
31
  "optionalDependencies": {
32
- "@titanpl/engine-win32-x64": "2.0.4",
33
- "@titanpl/engine-linux-x64": "2.0.4"
32
+ "@titanpl/engine-win32-x64": "6.0.0",
33
+ "@titanpl/engine-linux-x64": "6.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@titanpl/packet": "4.0.2",
36
+ "@titanpl/packet": "6.0.0",
37
37
  "prompts": "^2.4.2",
38
38
  "commander": "^11.0.0",
39
39
  "chalk": "^4.1.2"
40
40
  }
41
- }
41
+ }
@@ -14,13 +14,14 @@ ENV NODE_ENV=production
14
14
 
15
15
  COPY package.json package-lock.json* ./
16
16
 
17
- # Install dependencies (including optional engines)
17
+ # Install with optional dependencies so it grabs the correct engine for the Linux builder
18
+ RUN npm install -g @titanpl/cli
19
+
18
20
  RUN npm install --include=optional
19
21
 
20
22
  COPY . .
21
23
 
22
- # Run the Titan release build step
23
- # This extracts extensions to .ext and prepares the 'build/' folder
24
+ # Run the Titan release build step (generates a 'build' folder)
24
25
  RUN npx titan build --release
25
26
 
26
27
 
@@ -38,11 +39,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
38
39
  ca-certificates curl \
39
40
  && rm -rf /var/lib/apt/lists/*
40
41
 
41
- # Copy the entire release build folder prepared by Stage 1
42
- COPY --from=builder /app/build ./
42
+ # Copy EVERYTHING from the generated build folder into Stage 2
43
+ # This includes dist/, .ext/, package.json, .env, and the titan-server binary
44
+ COPY --from=builder /app/build/ ./
43
45
 
44
- # Ensure permissions
45
- RUN chown -R titan:titan /app
46
+ # CRITICAL SYSTEM SETUP:
47
+ # Ensure the worker threads can find the extensions through the symlink
48
+ RUN ln -s /app/.ext /app/node_modules && \
49
+ chown -R titan:titan /app
46
50
 
47
51
  # Standard environment variables
48
52
  ENV HOST=0.0.0.0
@@ -52,9 +56,9 @@ ENV TITAN_DEV=0
52
56
  USER titan
53
57
  EXPOSE 5100
54
58
 
55
- # Health check
59
+ # Health check to ensure the server is alive
56
60
  HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
57
61
  CMD curl -f http://localhost:5100/ || exit 1
58
62
 
59
- # Start the server using the 'titan-server' binary created by the release process
60
- CMD ["./titan-server", "run", "dist"]
63
+ # DYNAMIC ENTRYPOINT: Use the portable binary in the root of /app
64
+ CMD ["./titan-server", "start"]
@@ -78,7 +78,7 @@ docker run -p 5100:5100 my-titan-app
78
78
 
79
79
  ## 🌐 Community & Support
80
80
 
81
- - **Documentation**: [docs.titanpl.com](https://titanpl.vercel.app)
81
+ - **Documentation**: [titanpl.vercel.app](https://titanpl.vercel.app)
82
82
  - **GitHub**: [github.com/t8nlab/titanpl](https://github.com/t8nlab/titanpl)
83
83
  - **Discord**: [Join our community](https://discord.gg/titanpl)
84
84
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "{{name}}",
3
- "version": "2.0.4",
3
+ "version": "6.0.0",
4
4
  "description": "A Titan Planet extension",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "@titanpl/core": "latest",
19
19
  "chokidar": "^5.0.0",
20
20
  "esbuild": "^0.27.2",
21
- "titanpl-sdk": "2.0.4"
21
+ "titanpl-sdk": "6.0.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tgrv/microgravity": "latest"
@@ -6,16 +6,16 @@
6
6
  "template": "js"
7
7
  },
8
8
  "dependencies": {
9
- "@titanpl/cli": "2.0.4",
10
- "@titanpl/route": "2.0.4",
11
- "@titanpl/native": "2.0.4",
9
+ "@titanpl/cli": "6.0.0",
10
+ "@titanpl/route": "6.0.0",
11
+ "@titanpl/native": "6.0.0",
12
12
  "@titanpl/core": "latest",
13
13
  "@titanpl/node": "latest",
14
- "@titanpl/packet": "2.0.4"
14
+ "@titanpl/packet": "6.0.0"
15
15
  },
16
16
  "optionalDependencies": {
17
- "@titanpl/engine-linux-x64": "2.0.5",
18
- "@titanpl/engine-win32-x64": "2.0.3"
17
+ "@titanpl/engine-linux-x64": "6.0.0",
18
+ "@titanpl/engine-win32-x64": "6.0.0"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "titan build",
@@ -28,5 +28,5 @@
28
28
  "eslint": "^9.39.2",
29
29
  "eslint-plugin-titanpl": "latest"
30
30
  },
31
- "version": "2.0.4"
32
- }
31
+ "version": "6.0.0"
32
+ }
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "titanpl",
3
- "version": "2.0.4",
3
+ "version": "6.0.0",
4
4
  "description": "A Titan Planet server",
5
5
  "type": "module",
6
6
  "titan": {
7
7
  "template": "rust-js"
8
8
  },
9
9
  "dependencies": {
10
- "@titanpl/cli": "2.0.4",
11
- "@titanpl/route": "2.0.4",
12
- "@titanpl/native": "2.0.4",
10
+ "@titanpl/cli": "6.0.0",
11
+ "@titanpl/route": "6.0.0",
12
+ "@titanpl/native": "6.0.0",
13
13
  "@titanpl/core": "latest",
14
14
  "@titanpl/node": "latest"
15
15
  },
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "titanpl",
3
- "version": "2.0.4",
3
+ "version": "6.0.0",
4
4
  "description": "A Titan Planet server (Rust + TypeScript)",
5
5
  "type": "module",
6
6
  "titan": {
7
7
  "template": "rust-ts"
8
8
  },
9
9
  "dependencies": {
10
- "@titanpl/cli": "2.0.4",
11
- "@titanpl/route": "2.0.4",
12
- "@titanpl/native": "2.0.4",
10
+ "@titanpl/cli": "6.0.0",
11
+ "@titanpl/route": "6.0.0",
12
+ "@titanpl/native": "6.0.0",
13
13
  "@titanpl/core": "latest",
14
14
  "@titanpl/node": "latest",
15
15
  "typescript": "^5.0.0"
@@ -6,18 +6,18 @@
6
6
  "template": "ts"
7
7
  },
8
8
  "dependencies": {
9
- "@titanpl/cli": "2.0.4",
10
- "@titanpl/route": "2.0.4",
11
- "@titanpl/native": "2.0.4",
9
+ "@titanpl/cli": "6.0.0",
10
+ "@titanpl/route": "6.0.0",
11
+ "@titanpl/native": "6.0.0",
12
12
  "@titanpl/core": "latest",
13
13
  "@titanpl/node": "latest",
14
- "@titanpl/packet": "2.0.4",
14
+ "@titanpl/packet": "6.0.0",
15
15
  "typescript": "^5.0.0"
16
16
  },
17
17
  "optionalDependencies": {
18
18
  "@titanpl/engine-linux-arm64": "2.0.5",
19
- "@titanpl/engine-linux-x64": "2.0.5",
20
- "@titanpl/engine-win32-x64": "2.0.3"
19
+ "@titanpl/engine-linux-x64": "6.0.0",
20
+ "@titanpl/engine-win32-x64": "6.0.0"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "titan build",
@@ -31,5 +31,5 @@
31
31
  "eslint-plugin-titanpl": "latest",
32
32
  "@typescript-eslint/parser": "^8.54.0"
33
33
  },
34
- "version": "2.0.4"
35
- }
34
+ "version": "6.0.0"
35
+ }