redweb-client 0.1.0 → 0.3.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,12 +1,16 @@
1
1
  {
2
2
  "name": "redweb-client",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Browser-first WebSocket client for Redweb",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
+ "./live-html": {
11
+ "import": { "types": "./dist/live-html.d.ts", "default": "./dist/live-html.js" },
12
+ "require": { "types": "./dist/live-html.d.cts", "default": "./dist/live-html.cjs" }
13
+ },
10
14
  ".": {
11
15
  "import": {
12
16
  "types": "./dist/index.d.ts",
@@ -21,16 +25,21 @@
21
25
  "files": [
22
26
  "dist",
23
27
  "README.md",
28
+ "CHANGELOG.md",
24
29
  "LICENSE"
25
30
  ],
26
31
  "sideEffects": false,
27
32
  "scripts": {
28
- "build": "tsup src/index.ts --format esm,cjs --dts --clean",
33
+ "prepack": "npm run build 1>&2",
34
+ "build": "tsup src/index.ts src/live-html.ts --format esm,cjs --dts --clean --splitting false",
29
35
  "typecheck": "tsc --noEmit",
30
- "test": "vitest run --coverage",
36
+ "test": "npm run check",
37
+ "test:v8": "vitest run --coverage",
31
38
  "test:unit": "vitest run tests/unit",
32
39
  "test:integration": "vitest run tests/integration --coverage.enabled=false",
33
- "check": "npm run build && npm run typecheck && npm run test"
40
+ "check:link": "node ../redweb/scripts/verify-client-source-coverage.js --check-client .",
41
+ "test:source": "node ../redweb/scripts/verify-client-source-coverage.js --client .",
42
+ "check": "npm run check:link && npm run build && npm run typecheck && npm run test:source"
34
43
  },
35
44
  "engines": {
36
45
  "node": ">=18"