@alcedocore/cli 0.0.1-rc.2 → 0.0.1-rc.4

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": "@alcedocore/cli",
3
- "version": "0.0.1-rc.2",
3
+ "version": "0.0.1-rc.4",
4
4
  "description": "Alcedo plugin development CLI - scaffold, develop, and test plugins",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1,10 +1,16 @@
1
- FROM node:24-slim
1
+ FROM node:24-slim AS builder
2
2
 
3
3
  WORKDIR /app
4
4
 
5
- COPY . .
5
+ # Copy the rest of the files
6
+ COPY . .
6
7
  RUN npm ci
7
8
 
9
+ # Build the TypeScript project
10
+ RUN npm run build
11
+
12
+ # Expose the port your app runs on
8
13
  EXPOSE 8080
9
14
 
10
- CMD ["node", "server.js"]
15
+ # Run the compiled JavaScript file
16
+ CMD ["node", "server.js"]
@@ -1,10 +1,11 @@
1
1
  {
2
- "name": "<%= slug %>",
2
+ "name": "test-node",
3
3
  "version": "1.0.0",
4
- "description": "A plugin for Alcedo.",
4
+ "description": "A plugin for AlcedoCore.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "dev": "npx tsx server.ts"
7
+ "dev": "npx tsx server.ts",
8
+ "build": "tsc"
8
9
  },
9
10
  "keywords": [],
10
11
  "author": "",
@@ -14,6 +15,9 @@
14
15
  "typescript": "^7.0.2"
15
16
  },
16
17
  "dependencies": {
17
- "@alcedocore/sdk": "^0.0.1-rc.0"
18
+ "@alcedocore/sdk": "^0.0.1-rc.0",
19
+ "@types/express": "^5.0.6",
20
+ "@types/node": "^26.4.1",
21
+ "express": "^5.2.1"
18
22
  }
19
23
  }
@@ -23,7 +23,7 @@ app.get("/settings", async (_req, res) => {
23
23
  },
24
24
  });
25
25
  res.json({ slug: PLUGIN_SLUG, settings });
26
- } catch (err) {
26
+ } catch (err: any) {
27
27
  res.status(500).json({ slug: PLUGIN_SLUG, error: err.message });
28
28
  }
29
29
  });