Skip to content

Commit e2c8715

Browse files
author
Dale Nguyen
committed
chore: migrate to vitest
1 parent 91316f3 commit e2c8715

10 files changed

+2745
-2027
lines changed

.mocharc.json

-12
This file was deleted.

package.json

+19-41
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "firestore-export-import",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "NPM package for backup and restore Firebase Firestore",
5+
"type": "module",
56
"main": "./dist/index.js",
67
"types": "dist/index.d.ts",
78
"files": [
@@ -10,53 +11,30 @@
1011
"dist/*.*"
1112
],
1213
"scripts": {
13-
"watch": "tsc -w",
14-
"test": "mocha",
15-
"build": "tsc --skipLibCheck && npm run minify",
14+
"build": "tsc --skipLibCheck --noCheck && pnpm run minify",
15+
"build:vite": "vite build",
16+
"test": "vitest",
17+
"coverage": "vitest run --coverage",
18+
"typecheck": "tsc --noEmit",
1619
"minify": "jsmin -o dist/index.js dist/index.js && jsmin -o dist/import.js dist/import.js && jsmin -o dist/export.js dist/export.js && jsmin -o dist/helper.js dist/helper.js"
1720
},
18-
"repository": {
19-
"type": "git",
20-
"url": "git+https://github.com/dalenguyen/firestore-backup-restore.git"
21-
},
22-
"keywords": [
23-
"firebase",
24-
"firestore",
25-
"backup",
26-
"restore",
27-
"import",
28-
"export"
29-
],
30-
"author": "Dale Nguyen <[email protected]> (http://dalenguyen.me)",
31-
"license": "ISC",
32-
"bugs": {
33-
"url": "https://github.com/dalenguyen/firestore-backup-restore/issues"
34-
},
35-
"homepage": "https://github.com/dalenguyen/firestore-backup-restore#readme",
3621
"devDependencies": {
37-
"@types/chai": "^4.3.5",
38-
"@types/expect": "^24.3.0",
39-
"@types/mocha": "^10.0.1",
40-
"@types/node": "^20.4.5",
41-
"chai": "^4.3.7",
22+
"@types/node": "^20.11.5",
23+
"@vitest/coverage-v8": "^1.2.1",
4224
"jsmin": "^1.0.1",
43-
"minimist": "1.2.8",
44-
"mocha": "^10.2.0",
45-
"request": "^2.88.2",
4625
"request-promise": "^4.2.6",
47-
"ts-node": "^10.9.1",
48-
"typescript": "^5.1.6"
26+
"typescript": "^5.3.3",
27+
"vite": "^5.0.12",
28+
"vite-plugin-dts": "^3.7.1",
29+
"vitest": "^1.2.1"
4930
},
5031
"dependencies": {
51-
"firebase-admin": "^11.10.1",
52-
"google-gax": "^4.0.3",
53-
"uuid": "^9.0.0"
54-
},
55-
"resolutions": {
56-
"minimist": "1.2.8"
32+
"firebase-admin": "^13.0.2",
33+
"google-gax": "^4.1.1",
34+
"uuid": "^9.0.1"
5735
},
5836
"engines": {
59-
"node": ">=16.0.0",
60-
"pnpm": ">=7"
37+
"node": ">=18.0.0",
38+
"pnpm": ">=8"
6139
}
62-
}
40+
}

0 commit comments

Comments
 (0)