|
1 | 1 | { |
2 | 2 | "name": "robust-validator", |
3 | | - "version": "1.1.1", |
| 3 | + "version": "2.0.0-rc-2", |
4 | 4 | "description": "Rule-based data validation library", |
5 | 5 | "type": "module", |
6 | | - "source": "./index.ts", |
| 6 | + "main": "dist/index.cjs", |
| 7 | + "module": "dist/index.mjs", |
| 8 | + "types": "dist/index.d.ts", |
7 | 9 | "exports": { |
8 | | - "require": "./dist/index.cjs", |
9 | | - "default": "./dist/index.modern.js" |
| 10 | + ".": { |
| 11 | + "import": "./dist/index.mjs", |
| 12 | + "require": "./dist/index.cjs", |
| 13 | + "types": "./dist/index.d.ts" |
| 14 | + } |
10 | 15 | }, |
11 | | - "main": "./dist/index.cjs", |
12 | | - "module": "./dist/index.module.js", |
13 | | - "unpkg": "./dist/index.umd.js", |
14 | | - "types": "./dist/index.d.ts", |
15 | 16 | "scripts": { |
16 | 17 | "test": "vitest", |
17 | 18 | "test:run": "vitest run", |
18 | 19 | "test:coverage": "vitest run --coverage", |
19 | 20 | "test:consumer": "sh scripts/consumer-test.sh", |
20 | 21 | "lint": "eslint .", |
21 | 22 | "prepare": "husky", |
22 | | - "build": "rm -rf ./dist && microbundle" |
| 23 | + "build": "rm -rf ./dist && rollup -c" |
23 | 24 | }, |
24 | 25 | "files": [ |
25 | 26 | "/dist" |
|
53 | 54 | "@babel/preset-env": "^7.23.6", |
54 | 55 | "@babel/preset-typescript": "^7.23.3", |
55 | 56 | "@jest/globals": "^29.7.0", |
| 57 | + "@rollup/plugin-typescript": "^12.1.0", |
56 | 58 | "@types/jest": "^29.5.11", |
57 | 59 | "@typescript-eslint/eslint-plugin": "^6.15.0", |
58 | 60 | "@typescript-eslint/parser": "^6.15.0", |
|
65 | 67 | "eslint-plugin-promise": "^6.1.1", |
66 | 68 | "husky": "^9.0.10", |
67 | 69 | "jest": "^29.7.0", |
68 | | - "microbundle": "^0.15.1", |
69 | 70 | "rollup": "^4.9.1", |
70 | 71 | "rollup-plugin-analyzer": "^4.0.0", |
71 | 72 | "rollup-plugin-auto-external": "^2.0.0", |
|
0 commit comments