Skip to content

Commit

Permalink
fix(handlers): fix bug in useNuiEvents which caused all handlers to b…
Browse files Browse the repository at this point in the history
…e removed
  • Loading branch information
antonstjernquist committed Sep 20, 2024
1 parent be195af commit 0bef9ec
Show file tree
Hide file tree
Showing 13 changed files with 2,866 additions and 99 deletions.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 100,
"singleQuote": true,
"semi": true,
"bracketSpacing": true,
"trailingComma": "all",
"useTabs": false,
"tabWidth": 2
}
36 changes: 12 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-fivem-hooks",
"version": "1.0.3",
"version": "1.0.4",
"description": "Essential React hooks for FiveM NUI development written in Typescript",
"main": "dist/index.js",
"repository": "git@github.com:antonstjernquist/react-fivem-hooks.git",
Expand All @@ -11,40 +11,28 @@
],
"types": "dist/index.d.ts",
"dependencies": {
"esbuild": "^0.19.12",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.3.2"
},
"scripts": {
"build": "tsc",
"test": "jest"
"test": "vitest"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.12.0",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^11.2.7",
"@types/jest": "^26.0.23",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.6",
"@vitejs/plugin-react": "^4.3.1",
"global-jsdom": "^8.1.0",
"jest": "^27.0.3",
"jsdom": "^16.6.0",
"ts-jest": "^27.0.2"
},
"jest": {
"verbose": true,
"roots": [
"<rootDir>"
],
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/jest-setup.js"
],
"testMatch": [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
}
"jsdom": "^16.7.0",
"rollup": "^4.9.6",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.0",
"vite": "^5.4.7",
"vitest": "^2.1.1"
}
}
Loading

0 comments on commit 0bef9ec

Please sign in to comment.