Skip to content

Commit

Permalink
refactor: update deps and add test config
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaz committed Aug 1, 2024
1 parent 3d61e94 commit 78a161a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,15 @@ module.exports = {
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.cjs.json", "./tsconfig.esm.json", "./tsconfig.json"],
project: ["./tsconfig.json"],
},
plugins: ["@typescript-eslint"],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: [
"lib",
"node_modules",
".eslintrc.cjs",
"**/__tests__/*.spec.ts",
"vitest.config.ts",
],
ignorePatterns: ["lib", "node_modules", ".eslintrc.cjs", "vitest.config.ts"],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": ["error", { default: "generic" }],
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@expressots/your-provider",
"name": "your-provider-name",
"version": "0.0.1",
"description": "Expressots - Your provider description (@expressots/your-provider)",
"description": "Expressots - Your provider description (your-provider-name)",
"author": "Author Name",
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/types/index.d.ts",
Expand Down Expand Up @@ -47,7 +47,7 @@
"server-side"
],
"engines": {
"node": ">=18.10.0"
"node": ">=18.0.0"
},
"scripts": {
"prepare": "husky install",
Expand All @@ -73,23 +73,23 @@
},
"devDependencies": {
"@codecov/vite-plugin": "0.0.1-beta.6",
"@commitlint/cli": "18.0.0",
"@commitlint/config-conventional": "17.7.0",
"@release-it/conventional-changelog": "7.0.1",
"@types/node": "20.4.9",
"@typescript-eslint/eslint-plugin": "6.6.0",
"@typescript-eslint/parser": "6.6.0",
"@vitest/coverage-v8": "1.4.0",
"eslint": "8.48.0",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@release-it/conventional-changelog": "8.0.1",
"@types/node": "22.0.2",
"@typescript-eslint/eslint-plugin": "8.0.0",
"@typescript-eslint/parser": "8.0.0",
"@vitest/coverage-v8": "2.0.5",
"eslint": "9.8.0",
"eslint-config-prettier": "9.0.0",
"husky": "8.0.3",
"husky": "9.1.4",
"prettier": "3.0.3",
"release-it": "16.1.5",
"release-it": "17.6.0",
"ts-jest": "29.0.5",
"typescript": "5.2.2",
"vite": "5.2.8",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.4.0"
"vitest": "2.0.5"
},
"release-it": {
"git": {
Expand Down
7 changes: 7 additions & 0 deletions test/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, it, expect } from "vitest";

describe("example", () => {
it("should work", () => {
expect(1 + 1).toBe(2);
});
});
4 changes: 2 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export default defineConfig({
globals: true,
environment: "node",
setupFiles: ["reflect-metadata"],
exclude: ["**/node_modules/**", "**/test/**", "**/lib/**"],
exclude: ["**/node_modules/**", "**/lib/**"],
coverage: {
all: true,
include: ["**/src/**"],
exclude: ["**/node_modules/**", "**/lib/**", "**/test/**", "**/index.ts/**"],
exclude: ["**/node_modules/**", "**/lib/**", "**/index.ts/**"],
thresholds: {
global: {
statements: 85,
Expand Down

0 comments on commit 78a161a

Please sign in to comment.