@midnight-ntwrk/midnight-did 0.5.0-rc1

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 ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@midnight-ntwrk/midnight-did",
3
+ "version": "0.5.0-rc1",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/midnightntwrk/midnight-did.git",
9
+ "directory": "packages/did"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "engines": {
16
+ "node": ">=24",
17
+ "pnpm": ">=10"
18
+ },
19
+ "main": "dist/index.js",
20
+ "module": "dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "require": "./dist/index.js",
26
+ "import": "./dist/index.js",
27
+ "default": "./dist/index.js"
28
+ },
29
+ "./midnight": {
30
+ "types": "./dist/midnight.d.ts",
31
+ "require": "./dist/midnight.js",
32
+ "import": "./dist/midnight.js",
33
+ "default": "./dist/midnight.js"
34
+ }
35
+ },
36
+ "dependencies": {
37
+ "zod": "^4.1.0",
38
+ "@midnight-ntwrk/midnight-did-contract": "0.5.0-rc1",
39
+ "@midnight-ntwrk/midnight-did-domain": "0.5.0-rc1"
40
+ },
41
+ "devDependencies": {
42
+ "globals": "14.0.0"
43
+ },
44
+ "files": [
45
+ "dist/**",
46
+ "README.md",
47
+ "package.json",
48
+ "tsconfig.json",
49
+ "tsconfig.build.json"
50
+ ],
51
+ "scripts": {
52
+ "prebuild": "pnpm --filter @midnight-ntwrk/midnight-did-domain build",
53
+ "build": "rm -rf dist && tsc -b tsconfig.build.json --force",
54
+ "pretypecheck": "pnpm --filter @midnight-ntwrk/midnight-did-domain build",
55
+ "typecheck": "tsc -p tsconfig.json --noEmit",
56
+ "pretest": "pnpm --filter @midnight-ntwrk/midnight-did-domain build",
57
+ "test": "vitest run",
58
+ "pretest:ci": "pnpm --filter @midnight-ntwrk/midnight-did-domain build",
59
+ "test:ci": "vitest run",
60
+ "precoverage": "pnpm --filter @midnight-ntwrk/midnight-did-domain build",
61
+ "coverage": "vitest run --coverage",
62
+ "clean": "rm -rf dist && rm -rf coverage",
63
+ "lint": "eslint src",
64
+ "lint:fix": "eslint src --fix"
65
+ }
66
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["src/test/**/*.ts"],
4
+ "compilerOptions": {
5
+ "sourceMap": true,
6
+ "inlineSources": true,
7
+ "declarationMap": true
8
+ }
9
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ES2022",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "sourceMap": true,
8
+ "outDir": "dist",
9
+ "rootDir": "src",
10
+ "strict": true,
11
+ "moduleResolution": "Bundler",
12
+ "esModuleInterop": true,
13
+ "forceConsistentCasingInFileNames": true,
14
+ "skipLibCheck": true
15
+ },
16
+ "include": ["src/**/*.ts"]
17
+ }