@manototh/do11y 0.1.2 → 0.2.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.
@@ -43,7 +43,7 @@ window.Do11yConfig = {
43
43
  // ⚠️ CORS: Cloud OTLP endpoints (Grafana, Datadoc, etc.) do not
44
44
  // return CORS headers, so browsers block direct cross-origin POSTs.
45
45
  // To use from a browser, run an OTel Collector or CORS proxy in front.
46
- // See https://docservable.com/configuration#otlp for details.
46
+ // See https://docservable.com/configuration for details.
47
47
 
48
48
  // Documentation framework. Supported values:
49
49
  // 'mintlify', 'docusaurus', 'nextra', 'starlight', 'mkdocs-material',
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@manototh/do11y",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Documentation observability",
5
5
  "type": "module",
6
6
  "main": "./dist/do11y.min.js",
7
7
  "exports": {
8
8
  ".": "./dist/do11y.min.js",
9
- "./min": "./dist/do11y.min.js"
9
+ "./min": "./dist/do11y.min.js",
10
+ "./instrumentation": "./dist/instrumentation/index.js"
10
11
  },
11
12
  "files": [
12
13
  "dist",
@@ -14,18 +15,40 @@
14
15
  ],
15
16
  "scripts": {
16
17
  "build": "rolldown -c rolldown.config.ts",
18
+ "postbuild": "node scripts/sync-test-sites.mjs",
19
+ "build:standalone": "rolldown -c rolldown.config.ts --configEntry src/standalone/index.ts",
20
+ "build:instrumentation": "rolldown -c rolldown.config.ts --configEntry src/instrumentation/index.ts",
17
21
  "lint": "oxlint src",
18
22
  "format": "oxfmt src",
19
- "check": "tsc --noEmit"
23
+ "check": "tsc --noEmit",
24
+ "ci": "npm run build && npm run lint && npm run format && npm run check",
25
+ "all": "npm run ci && npm -C tests run test:all"
20
26
  },
21
27
  "keywords": [
22
- "supabase",
23
- "analytics",
28
+ "opentelemetry",
29
+ "instrumentation",
30
+ "observability",
24
31
  "documentation",
25
- "observability"
32
+ "analytics",
33
+ "docs",
34
+ "supabase"
26
35
  ],
27
36
  "license": "MIT",
37
+ "peerDependencies": {
38
+ "@opentelemetry/api-logs": "^0.221.0",
39
+ "@opentelemetry/instrumentation": "^0.221.0"
40
+ },
41
+ "peerDependenciesMeta": {
42
+ "@opentelemetry/api-logs": {
43
+ "optional": true
44
+ },
45
+ "@opentelemetry/instrumentation": {
46
+ "optional": true
47
+ }
48
+ },
28
49
  "devDependencies": {
50
+ "@opentelemetry/api-logs": "^0.221.0",
51
+ "@opentelemetry/instrumentation": "^0.221.0",
29
52
  "oxfmt": "latest",
30
53
  "oxlint": "latest",
31
54
  "rolldown": "latest",