|
1 | 1 | { |
2 | 2 | "name": "multiform-validator", |
3 | | - "version": "2.1.8", |
4 | | - "description": "Javascript library made to validate, several form fields, such as: email, phone, password, cpf etc.", |
| 3 | + "version": "2.1.9", |
| 4 | + "description": "Javascript library made to validate, several form fields, such as: email, images, phone, password, cpf etc.", |
5 | 5 | "main": "./dist/index.js", |
6 | 6 | "types": "./types/index.d.ts", |
7 | | - "unpkg": "./dist/bundle.js", |
| 7 | + "module": "./dist/index.mjs", |
| 8 | + "unpkg": "./dist/index.js", |
8 | 9 | "scripts": { |
9 | 10 | "test": "jest --coverage", |
10 | 11 | "test:file": "jest tests/src/isDecimal.test --watch", |
11 | 12 | "test:watch": "jest --watch", |
12 | 13 | "build:types": "tsc -p tsconfig.types.json", |
13 | | - "build:src": "tsc", |
| 14 | + "build:src": "tsup index.ts --format esm", |
14 | 15 | "build:browser": "webpack", |
15 | 16 | "build": "yarn build:types && yarn build:src && yarn build:browser", |
16 | 17 | "lint": "eslint . --ext .ts", |
|
57 | 58 | "Breno A" |
58 | 59 | ], |
59 | 60 | "devDependencies": { |
| 61 | + "@swc/core": "^1.7.2", |
60 | 62 | "@types/jest": "^29.5.12", |
61 | 63 | "@types/mocha": "^10.0.6", |
62 | 64 | "@types/node": "^20.5.1", |
|
70 | 72 | "ts-jest": "^29.1.1", |
71 | 73 | "ts-loader": "^9.5.1", |
72 | 74 | "ts-node": "^10.9.2", |
| 75 | + "tsup": "^8.2.3", |
73 | 76 | "typescript": "^5.4.2", |
74 | 77 | "webpack": "^5.91.0", |
75 | 78 | "webpack-cli": "^5.1.4" |
|
0 commit comments