@oxog/scrollex 1.0.0 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxog/scrollex",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Zero-dependency React virtualization library with micro-kernel plugin architecture",
5
5
  "author": {
6
6
  "name": "Ersin KOC",
@@ -50,7 +50,8 @@
50
50
  "types": "./dist/plugins/index.d.cts",
51
51
  "default": "./dist/plugins/index.cjs"
52
52
  }
53
- }
53
+ },
54
+ "./package.json": "./package.json"
54
55
  },
55
56
  "files": [
56
57
  "dist",
@@ -61,35 +62,51 @@
61
62
  "sideEffects": false,
62
63
  "scripts": {
63
64
  "dev": "tsup --watch",
64
- "build": "tsup",
65
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsup && node -e \"const fs=require('fs');const files=['dist/index.js','dist/index.cjs','dist/index.d.ts','dist/index.d.cts','dist/index.js.map','dist/index.cjs.map','dist/plugins/index.js','dist/plugins/index.cjs','dist/plugins/index.d.ts','dist/plugins/index.d.cts','dist/plugins/index.js.map','dist/plugins/index.cjs.map'];const missing=files.filter(f=>!fs.existsSync(f));if(missing.length){console.error('Build incomplete - missing: '+missing.join(', '));process.exit(1)};console.log('Build verified: 12/12 dist files present.')\"",
65
66
  "test": "vitest run",
66
67
  "test:watch": "vitest",
67
68
  "test:coverage": "vitest run --coverage",
68
- "lint": "eslint src --ext .ts,.tsx",
69
- "typecheck": "tsc --noEmit",
70
- "prepublishOnly": "npm run build && npm test",
71
- "docs:dev": "vitepress dev docs",
72
- "docs:build": "vitepress build docs",
73
- "docs:preview": "vitepress preview docs"
69
+ "test:package": "node scripts/check-package.mjs",
70
+ "lint": "eslint src tests --max-warnings=0",
71
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
72
+ "check": "npm run lint && npm run typecheck && npm run test:coverage",
73
+ "prepublishOnly": "npm run check && npm run build && npm run test:package"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": ">=17.0.0",
77
77
  "react-dom": ">=17.0.0"
78
78
  },
79
+ "peerDependenciesMeta": {
80
+ "react-dom": {
81
+ "optional": true
82
+ }
83
+ },
79
84
  "devDependencies": {
85
+ "@eslint/js": "^9.39.5",
80
86
  "@testing-library/react": "^14.1.2",
87
+ "@types/node": "^22.20.7",
81
88
  "@types/react": "^18.2.45",
82
89
  "@types/react-dom": "^18.2.18",
83
- "@vitest/coverage-v8": "^1.6.1",
90
+ "@vitest/coverage-v8": "^5.1.1",
91
+ "eslint": "^9.39.5",
92
+ "eslint-plugin-react-hooks": "^5.2.0",
93
+ "globals": "^16.5.0",
84
94
  "jsdom": "^23.2.0",
85
95
  "react": "^18.2.0",
86
96
  "react-dom": "^18.2.0",
87
- "tsup": "^8.0.1",
97
+ "tsup": "^9.0.0",
88
98
  "typescript": "^5.3.3",
89
- "vitepress": "^1.0.0",
90
- "vitest": "^1.6.1"
99
+ "typescript-eslint": "^8.74.0",
100
+ "vitest": "^5.1.1"
91
101
  },
92
102
  "engines": {
93
103
  "node": ">=18.0.0"
104
+ },
105
+ "devEngines": {
106
+ "runtime": {
107
+ "name": "node",
108
+ "version": "^22.18.0 || ^24.11.0 || >=26.0.0",
109
+ "onFail": "warn"
110
+ }
94
111
  }
95
112
  }