Skip to content

Commit 25877cd

Browse files
committed
Make the package ESM-only and require Node.js >=14
1 parent 530857c commit 25877cd

File tree

1 file changed

+36
-30
lines changed

1 file changed

+36
-30
lines changed

package.json

+36-30
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
{
22
"name": "cashify",
3-
"version": "2.5.0",
3+
"version": "3.0.0",
44
"description": "Lightweight currency conversion library, successor of money.js",
55
"main": "dist/index.js",
6-
"module": "dist/index.esm.js",
6+
"type": "module",
77
"types": "dist/index.d.ts",
88
"files": [
99
"dist/**/*"
1010
],
11-
"author": "Antoni Kepinski <a@kepinski.me> (https://kepinski.me)",
11+
"author": "Antoni Kępiński <antoni@kepinski.ch> (https://www.kepinski.ch)",
1212
"bugs": {
1313
"url": "https://github.com/xxczaki/cashify/issues"
1414
},
1515
"scripts": {
1616
"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",
2119
"prepublishOnly": "npm run build"
2220
},
2321
"engines": {
24-
"node": ">=10"
22+
"node": ">=14"
2523
},
2624
"license": "MIT",
2725
"repository": "xxczaki/cashify",
@@ -50,34 +48,42 @@
5048
"money-conversion"
5149
],
5250
"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",
5654
"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"
6662
},
6763
"sideEffects": false,
6864
"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"
7473
]
7574
},
7675
"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"
8183
},
82-
"dependencies": {}
84+
"peerDependenciesMeta": {
85+
"big.js": {
86+
"optional": true
87+
}
88+
}
8389
}

0 commit comments

Comments
 (0)