@nzila/sdk 0.1.3 → 0.1.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/README.md CHANGED
@@ -11,6 +11,20 @@ npm install @nzila/sdk
11
11
  # Vitest projects also need vitest as a peer
12
12
  ```
13
13
 
14
+ ### TypeScript
15
+
16
+ Subpaths such as `@nzila/sdk/vitest` need **`moduleResolution`** set to **`bundler`**, **`node16`**, or **`nodenext`** (recommended for Vitest/Vite repos). If you still use legacy `"node"` resolution, upgrade to one of those options in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "moduleResolution": "bundler"
22
+ }
23
+ }
24
+ ```
25
+
26
+ `@nzila/sdk@0.1.4+` also ships root `.d.ts` shims and `typesVersions` for broader editor support.
27
+
14
28
  ## CLI (onboarding)
15
29
 
16
30
  `npx @nzila/sdk` opens the [Nzila dashboard](https://nzila-kappa.vercel.app) and prints setup commands. No separate CLI package.
package/jest.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./dist/jest-reporter.js";
2
+ export * from "./dist/jest-reporter.js";
package/mocha.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./dist/mocha-reporter.js";
2
+ export * from "./dist/mocha-reporter.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nzila/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Send test runs to Nzila, trace live feature errors, and onboard via npx @nzila/sdk.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -14,9 +14,23 @@
14
14
  },
15
15
  "files": [
16
16
  "dist",
17
+ "vitest.d.ts",
18
+ "jest.d.ts",
19
+ "mocha.d.ts",
20
+ "runtime.d.ts",
21
+ "react.d.ts",
17
22
  "README.md",
18
23
  "examples"
19
24
  ],
25
+ "typesVersions": {
26
+ "*": {
27
+ "vitest": ["./dist/vitest-reporter.d.ts"],
28
+ "jest": ["./dist/jest-reporter.d.ts"],
29
+ "mocha": ["./dist/mocha-reporter.d.ts"],
30
+ "runtime": ["./dist/runtime/index.d.ts"],
31
+ "react": ["./dist/react/index.d.ts"]
32
+ }
33
+ },
20
34
  "main": "./dist/index.js",
21
35
  "types": "./dist/index.d.ts",
22
36
  "bin": {
@@ -28,24 +42,29 @@
28
42
  "import": "./dist/index.js"
29
43
  },
30
44
  "./vitest": {
31
- "types": "./dist/vitest-reporter.d.ts",
32
- "import": "./dist/vitest-reporter.js"
45
+ "types": "./vitest.d.ts",
46
+ "import": "./dist/vitest-reporter.js",
47
+ "default": "./dist/vitest-reporter.js"
33
48
  },
34
49
  "./jest": {
35
- "types": "./dist/jest-reporter.d.ts",
36
- "import": "./dist/jest-reporter.js"
50
+ "types": "./jest.d.ts",
51
+ "import": "./dist/jest-reporter.js",
52
+ "default": "./dist/jest-reporter.js"
37
53
  },
38
54
  "./mocha": {
39
- "types": "./dist/mocha-reporter.d.ts",
40
- "import": "./dist/mocha-reporter.js"
55
+ "types": "./mocha.d.ts",
56
+ "import": "./dist/mocha-reporter.js",
57
+ "default": "./dist/mocha-reporter.js"
41
58
  },
42
59
  "./runtime": {
43
- "types": "./dist/runtime/index.d.ts",
44
- "import": "./dist/runtime/index.js"
60
+ "types": "./runtime.d.ts",
61
+ "import": "./dist/runtime/index.js",
62
+ "default": "./dist/runtime/index.js"
45
63
  },
46
64
  "./react": {
47
- "types": "./dist/react/index.d.ts",
48
- "import": "./dist/react/index.js"
65
+ "types": "./react.d.ts",
66
+ "import": "./dist/react/index.js",
67
+ "default": "./dist/react/index.js"
49
68
  }
50
69
  },
51
70
  "scripts": {
package/react.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/react/index.js";
package/runtime.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/runtime/index.js";
package/vitest.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./dist/vitest-reporter.js";
2
+ export * from "./dist/vitest-reporter.js";