crossroad 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,4 +8,4 @@ import { default as useQuery } from './hooks/useQuery';
8
8
  import { default as useHash } from './hooks/useHash';
9
9
  import { default as useParams } from './hooks/useParams';
10
10
  export default Router;
11
- export { Route, Switch, useUrl, usePath, useQuery, useHash, useParams, Context };
11
+ export { Route, Switch, useUrl, usePath, useQuery, useHash, useParams, Context, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crossroad",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "A React library to handle navigation easily in your WebApp",
5
5
  "homepage": "https://crossroad.page/",
6
6
  "repository": "github:franciscop/crossroad",
@@ -24,7 +24,8 @@
24
24
  }
25
25
  },
26
26
  "scripts": {
27
- "build": "vite build",
27
+ "build": "vite build && npm run build:prettier",
28
+ "build:prettier": "prettier src *.ts *.json --write",
28
29
  "lint": "tsc",
29
30
  "size": "echo $(gzip -c dist/index.min.js | wc -c) bytes",
30
31
  "start": "vitest",
@@ -42,6 +43,7 @@
42
43
  "@vitejs/plugin-react": "^6.0.1",
43
44
  "@vitest/coverage-v8": "^3.2.4",
44
45
  "jsdom": "^26.1.0",
46
+ "prettier": "^3.8.1",
45
47
  "react": "^18.3.1",
46
48
  "react-dom": "^18.3.1",
47
49
  "react-test": "^0.23.3",