|
1 | 1 | { |
2 | 2 | "name": "rutility", |
3 | | - "version": "1.0.11", |
4 | | - "main": "dist-node/index.js", |
5 | | - "browser": "dist-browser/index.js", |
| 3 | + "version": "1.0.14", |
| 4 | + "main": "dist/index.js", |
| 5 | + "browser": "dist/index.js", |
| 6 | + "module": "dist/index.js", |
6 | 7 | "scripts": { |
7 | 8 | "prettier-format": "prettier --config .prettierrc \"{src,test}/**/*.ts\" --write", |
8 | 9 | "test:unit": "jest", |
9 | 10 | "test:coverage": "npx jest --coverage --collectCoverageFrom='src/**/*.ts'", |
10 | 11 | "test:lint": "eslint --fix", |
11 | 12 | "test": "npm run test:unit & npm run test:coverage & npm run test:lint & npm run prettier-format", |
12 | | - "build-browser": "tsc --project tsconfig.browser.json", |
13 | | - "build-node": "tsc --project tsconfig.node.json", |
14 | | - "build": "npm run build-browser & npm run build-node" |
| 13 | + "build": "tsc --project tsconfig.json" |
15 | 14 | }, |
16 | | - "files": [ |
17 | | - "dist-node", |
18 | | - "dist-browser" |
19 | | - ], |
| 15 | + "files": ["dist"], |
20 | 16 | "exports": { |
21 | 17 | ".": { |
22 | | - "node": "./dist-node/index.js", |
23 | | - "browser": "./dist-browser/index.js" |
| 18 | + "import": "./dist/index.js", |
| 19 | + "require": "./dist/index.js", |
| 20 | + "default": "./dist/index.js" |
24 | 21 | } |
25 | 22 | }, |
26 | | - "types": "dist-node/index.d.ts", |
| 23 | + "types": "dist/index.d.ts", |
27 | 24 | "author": "Pedro Yanez <wotanCode> (https://github.com/wotanCode)", |
28 | 25 | "license": "MIT", |
29 | 26 | "description": "A JavaScript library for validating and formatting Chilean RUTs (Rol Único Tributario). It provides functions to add/remove dots and dashes, validate formats, and calculate check digits", |
|
0 commit comments