@pracht/adapter-node 0.0.0 → 0.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/README.md +24 -0
  2. package/package.json +14 -2
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @pracht/adapter-node
2
+
3
+ Node.js HTTP adapter for pracht. Converts Node `http` requests to Web Requests, serves static assets, and handles ISG revalidation.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @pracht/adapter-node
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ After building with `pracht build`, start the production server:
14
+
15
+ ```bash
16
+ node dist/server/server.js
17
+ ```
18
+
19
+ ## Features
20
+
21
+ - Converts Node.js HTTP requests to standard Web Requests
22
+ - Serves static files from `dist/client/`
23
+ - Loads the Vite manifest for asset injection
24
+ - Supports ISG time-window revalidation
package/package.json CHANGED
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "@pracht/adapter-node",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/JoviDeCroock/pracht",
7
+ "directory": "packages/adapter-node"
8
+ },
9
+ "homepage": "https://github.com/JoviDeCroock/pracht/tree/main/packages/adapter-node",
10
+ "bugs": {
11
+ "url": "https://github.com/JoviDeCroock/pracht/issues"
12
+ },
4
13
  "files": [
5
14
  "dist"
6
15
  ],
7
16
  "type": "module",
17
+ "publishConfig": {
18
+ "provenance": true
19
+ },
8
20
  "exports": {
9
21
  ".": {
10
22
  "types": "./dist/index.d.mts",
@@ -12,7 +24,7 @@
12
24
  }
13
25
  },
14
26
  "dependencies": {
15
- "@pracht/core": "0.0.0"
27
+ "@pracht/core": "0.0.1"
16
28
  },
17
29
  "scripts": {
18
30
  "build": "tsdown"