Skip to content

Commit

Permalink
chore: add typescript support (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza authored Aug 8, 2024
1 parent 67401d2 commit ad86c89
Show file tree
Hide file tree
Showing 10 changed files with 711 additions and 38 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install

- run: |
pnpm install
pnpm test
working-directory: tests/basic
- run: |
pnpm install
pnpm test
working-directory: tests/test-unimport
- run: pnpm -r install
- run: pnpm build
- run: pnpm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
23 changes: 15 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"version": "0.1.2",
"description": "mongodb-memory-server integration for vitest",
"type": "module",
"exports": {
"./globalSetup": "./dist/globalSetup.js",
"./test": {
"types": "./dist/mmsTest.d.ts",
"default": "./dist/mmsTest.js"
}
},
"author": "Daniel Perez Alvarez (http://github.com/danielpza",
"homepage": "https://github.com/danielpza/vitest-mms",
"repository": "https://github.com/danielpza/vitest-mms",
Expand All @@ -15,25 +22,25 @@
"mongodb",
"mongodb-memory-server"
],
"exports": {
"./globalSetup": "./src/globalSetup.js",
"./test": {
"types": "./src/mmsTest.d.ts",
"default": "./src/mmsTest.js"
}
},
"files": [
"src"
"dist"
],
"scripts": {
"build": "pkgroll",
"test": "pnpm -r test",
"release": "changelogen --release --push"
},
"devDependencies": {
"@tsconfig/node-lts": "^20.1.3",
"@types/node": "^22.1.0",
"changelogen": "^0.5.5",
"mongodb": "^6.8.0",
"pkgroll": "^2.4.2",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"peerDependencies": {
"vitest": "*",
"mongodb": "*",
"mongodb-memory-server": "*"
}
Expand Down
Loading

0 comments on commit ad86c89

Please # to comment.