modern-json-react 1.0.1 → 1.1.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,15 +1,15 @@
1
1
  {
2
2
  "name": "modern-json-react",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "A production-grade, fully-featured JSON editor React component with tree view, code editing, JSON Schema validation, and accessibility-first design.",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
- "import": "./dist/index.esm.js",
12
- "require": "./dist/index.cjs.js"
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
13
  },
14
14
  "./styles.css": "./dist/styles.css"
15
15
  },
@@ -25,8 +25,11 @@
25
25
  "test:watch": "vitest",
26
26
  "test:coverage": "vitest run --coverage",
27
27
  "lint": "eslint src/ --ext .ts,.tsx",
28
+ "lint:fix": "eslint src/ --ext .ts,.tsx --fix",
28
29
  "typecheck": "tsc --noEmit",
29
30
  "format": "prettier --write 'src/**/*.{ts,tsx}'",
31
+ "format:check": "prettier --check 'src/**/*.{ts,tsx}'",
32
+ "validate": "npm run typecheck && npm run lint && npm test && npm run build",
30
33
  "prepublishOnly": "npm run build"
31
34
  },
32
35
  "peerDependencies": {
@@ -34,12 +37,23 @@
34
37
  "react-dom": ">=18.0.0"
35
38
  },
36
39
  "devDependencies": {
40
+ "@commitlint/cli": "^20.4.2",
41
+ "@commitlint/config-conventional": "^20.4.2",
37
42
  "@testing-library/jest-dom": "^6.6.3",
38
43
  "@testing-library/react": "^16.1.0",
39
44
  "@testing-library/user-event": "^14.5.2",
40
45
  "@types/react": "^18.3.0",
41
46
  "@types/react-dom": "^18.3.0",
47
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
48
+ "@typescript-eslint/parser": "^7.18.0",
49
+ "eslint": "^8.57.1",
50
+ "eslint-config-prettier": "^10.1.8",
51
+ "eslint-plugin-react": "^7.37.5",
52
+ "eslint-plugin-react-hooks": "^4.6.2",
53
+ "husky": "^9.1.7",
42
54
  "jsdom": "^25.0.0",
55
+ "lint-staged": "^16.2.7",
56
+ "prettier": "^3.8.1",
43
57
  "react": "^18.3.0",
44
58
  "react-dom": "^18.3.0",
45
59
  "tsup": "^8.3.0",
@@ -62,6 +76,10 @@
62
76
  "license": "MIT",
63
77
  "repository": {
64
78
  "type": "git",
65
- "url": ""
66
- }
79
+ "url": "git+https://github.com/dileeppandey/modern-json-react.git"
80
+ },
81
+ "bugs": {
82
+ "url": "https://github.com/dileeppandey/modern-json-react/issues"
83
+ },
84
+ "homepage": "https://github.com/dileeppandey/modern-json-react#readme"
67
85
  }