Add testing script and vitest as a dev dependency in package.json

This commit is contained in:
2025-12-23 16:42:07 +01:00
parent a14206d32c
commit c04c144b33
10 changed files with 1910 additions and 188 deletions

View File

@@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "node index.js",
"build": "ncc build index.js -o dist --external utf-8-validate --external bufferutil"
"build": "ncc build index.js -o dist --external utf-8-validate --external bufferutil",
"test": "vitest run --globals"
},
"dependencies": {
"@actions/core": "^2.0.0",
@@ -13,6 +14,7 @@
"screeps-api": "^1.7.2"
},
"devDependencies": {
"@vercel/ncc": "^0.38.4"
"@vercel/ncc": "^0.38.4",
"vitest": "^4.0.16"
}
}