starmark 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/package.json +7 -2
  2. package/src/server.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starmark",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Browse and edit markdown content in local Astro sites",
5
5
  "keywords": [
6
6
  "cms",
@@ -32,11 +32,16 @@
32
32
  ],
33
33
  "scripts": {
34
34
  "start": "node bin/starmark.js",
35
- "dev": "node --watch bin/starmark.js"
35
+ "dev": "node --watch bin/starmark.js",
36
+ "test": "cucumber-js"
36
37
  },
37
38
  "dependencies": {
38
39
  "express": "^4.21.2"
39
40
  },
41
+ "devDependencies": {
42
+ "@cucumber/cucumber": "^11.3.0",
43
+ "supertest": "^7.1.0"
44
+ },
40
45
  "engines": {
41
46
  "node": ">=18"
42
47
  }
package/src/server.js CHANGED
@@ -1033,6 +1033,8 @@ app.get("/api/media/file", async (req, res) => {
1033
1033
  res.sendFile(resolved.target);
1034
1034
  });
1035
1035
 
1036
+ export { app };
1037
+
1036
1038
  export function startServer(options = {}) {
1037
1039
  const port = options.port ?? PORT;
1038
1040