|
1 | 1 | {
|
2 | 2 | "name": "cashify",
|
3 |
| - "version": "2.5.0", |
| 3 | + "version": "3.0.0", |
4 | 4 | "description": "Lightweight currency conversion library, successor of money.js",
|
5 | 5 | "main": "dist/index.js",
|
6 |
| - "module": "dist/index.esm.js", |
| 6 | + "type": "module", |
7 | 7 | "types": "dist/index.d.ts",
|
8 | 8 | "files": [
|
9 | 9 | "dist/**/*"
|
10 | 10 | ],
|
11 |
| - "author": "Antoni Kepinski <a@kepinski.me> (https://kepinski.me)", |
| 11 | + "author": "Antoni Kępiński <antoni@kepinski.ch> (https://www.kepinski.ch)", |
12 | 12 | "bugs": {
|
13 | 13 | "url": "https://github.com/xxczaki/cashify/issues"
|
14 | 14 | },
|
15 | 15 | "scripts": {
|
16 | 16 | "prebuild": "del-cli dist",
|
17 |
| - "esm": "tsc --module esnext && cpy dist/index.js dist --rename index.esm.js", |
18 |
| - "cjs": "tsc --module commonjs", |
19 |
| - "build": "npm run esm && npm run cjs", |
20 |
| - "test": "xo && nyc ava", |
| 17 | + "build": "tsc", |
| 18 | + "test": "xo && c8 ava", |
21 | 19 | "prepublishOnly": "npm run build"
|
22 | 20 | },
|
23 | 21 | "engines": {
|
24 |
| - "node": ">=10" |
| 22 | + "node": ">=14" |
25 | 23 | },
|
26 | 24 | "license": "MIT",
|
27 | 25 | "repository": "xxczaki/cashify",
|
|
50 | 48 | "money-conversion"
|
51 | 49 | ],
|
52 | 50 | "devDependencies": {
|
53 |
| - "@akepinski/tsconfig": "0.0.2", |
54 |
| - "@typescript-eslint/eslint-plugin": "^4.14.0", |
55 |
| - "@typescript-eslint/parser": "^4.14.0", |
| 51 | + "@sindresorhus/tsconfig": "^2.0.0", |
| 52 | + "@types/big.js": "^6.1.2", |
| 53 | + "@types/node": "^16.11.6", |
56 | 54 | "ava": "^3.15.0",
|
57 |
| - "coveralls": "^3.1.0", |
58 |
| - "cpy-cli": "^3.1.1", |
59 |
| - "del-cli": "^3.0.1", |
60 |
| - "eslint-config-xo-typescript": "^0.37.0", |
61 |
| - "nyc": "^15.1.0", |
62 |
| - "ts-node": "^9.1.1", |
63 |
| - "type-fest": "^0.20.2", |
64 |
| - "typescript": "^4.1.3", |
65 |
| - "xo": "^0.37.1" |
| 55 | + "big.js": "^6.1.1", |
| 56 | + "c8": "^7.10.0", |
| 57 | + "coveralls": "^3.1.1", |
| 58 | + "del-cli": "^4.0.1", |
| 59 | + "ts-node": "^10.4.0", |
| 60 | + "typescript": "^4.4.4", |
| 61 | + "xo": "^0.46.4" |
66 | 62 | },
|
67 | 63 | "sideEffects": false,
|
68 | 64 | "ava": {
|
69 |
| - "extensions": [ |
70 |
| - "ts" |
71 |
| - ], |
72 |
| - "require": [ |
73 |
| - "ts-node/register" |
| 65 | + "extensions": { |
| 66 | + "ts": "module" |
| 67 | + }, |
| 68 | + "nonSemVerExperiments": { |
| 69 | + "configurableModuleFormat": true |
| 70 | + }, |
| 71 | + "nodeArguments": [ |
| 72 | + "--loader=ts-node/esm" |
74 | 73 | ]
|
75 | 74 | },
|
76 | 75 | "xo": {
|
77 |
| - "extends": "xo-typescript", |
78 |
| - "extensions": [ |
79 |
| - "ts" |
80 |
| - ] |
| 76 | + "rules": { |
| 77 | + "@typescript-eslint/naming-convention": "off" |
| 78 | + } |
| 79 | + }, |
| 80 | + "dependencies": {}, |
| 81 | + "peerDependencies": { |
| 82 | + "big.js": ">=6.1.1" |
81 | 83 | },
|
82 |
| - "dependencies": {} |
| 84 | + "peerDependenciesMeta": { |
| 85 | + "big.js": { |
| 86 | + "optional": true |
| 87 | + } |
| 88 | + } |
83 | 89 | }
|
0 commit comments