Skip to content

Commit 4f35a2b

Browse files
committed
build: configure ava for ts and add to scripts
1 parent b0184ab commit 4f35a2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,18 @@
3434
"dist/index.d.ts",
3535
"README.md"
3636
],
37+
"ava": {
38+
"extensions": ["ts"],
39+
"require": [
40+
"ts-node/register"
41+
]
42+
},
3743
"scripts": {
3844
"build": "rollup -c",
3945
"watch": "rollup -cw",
4046
"types": "tsc src/index.ts --declaration --emitDeclarationOnly --outDir dist",
47+
"test": "ava",
48+
"watch-tests": "ava -w",
4149
"clean": "trash dist",
4250
"prepublishOnly": "npm run clean && npm run build && npm run types"
4351
},

0 commit comments

Comments
 (0)