Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const customRules = {
};

export default defineConfig([
globalIgnores(['dist', 'node_modules', 'build', 'coverage']),
globalIgnores(['dist', 'node_modules', '**/build', 'coverage']),
js.configs.recommended,
react.configs.flat.recommended,
prettier,
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@mapbox/mapbox-gl-draw": "^1.3.0",
"@mapbox/mapbox-gl-draw-static-mode": "^1.0.1",
"@tanstack/react-query": "^5.90.10",
"@tanstack/react-query": "link:../node_modules/@tanstack/react-query",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
Expand Down
22 changes: 5 additions & 17 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2474,23 +2474,11 @@ __metadata:
languageName: node
linkType: hard

"@tanstack/query-core@npm:5.90.10":
version: 5.90.10
resolution: "@tanstack/query-core@npm:5.90.10"
checksum: 10c0/c51762d4413f99886af24d0a4897e286233fae305131df2db8294c26b1375e74e87d0cd7dafbe1b7d23338221fca0304c05058dd9a909c0988a8829d8f7283e6
languageName: node
linkType: hard

"@tanstack/react-query@npm:^5.90.10":
version: 5.90.10
resolution: "@tanstack/react-query@npm:5.90.10"
dependencies:
"@tanstack/query-core": "npm:5.90.10"
peerDependencies:
react: ^18 || ^19
checksum: 10c0/a852c44fafb0331a47ba8b46f96bc6c3c66a1bfbec8a09de15fc0ba6fd1b867da42c4974f83489a03cc4d7fd9fa40ec23b8790d2f69a930ca63b85f2bf4a4885
"@tanstack/react-query@link:../node_modules/@tanstack/react-query::locator=example%40workspace%3A.":
version: 0.0.0-use.local
resolution: "@tanstack/react-query@link:../node_modules/@tanstack/react-query::locator=example%40workspace%3A."
languageName: node
linkType: hard
linkType: soft

"@testing-library/dom@npm:^8.5.0":
version: 8.13.0
Expand Down Expand Up @@ -5857,7 +5845,7 @@ __metadata:
dependencies:
"@mapbox/mapbox-gl-draw": "npm:^1.3.0"
"@mapbox/mapbox-gl-draw-static-mode": "npm:^1.0.1"
"@tanstack/react-query": "npm:^5.90.10"
"@tanstack/react-query": "link:../node_modules/@tanstack/react-query"
"@testing-library/jest-dom": "npm:^5.14.1"
"@testing-library/react": "npm:^13.0.0"
"@testing-library/user-event": "npm:^13.2.1"
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,35 @@
"stac-ts": "^1"
},
"devDependencies": {
"@tanstack/react-query": "^5.90.5",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@eslint/js": "^9.39.4",
"@tanstack/react-query": "^5.104.0",
"@testing-library/dom": "^10.4.2",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@types/geojson": "^7946.0.16",
"@types/jest": "^30.0.0",
"@types/node": "^24.9.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.0.4",
"eslint": "^9.38.0",
"@types/node": "^24.19.0",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"eslint": "^9.39.5",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.0",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.4.0",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"jest-fetch-mock": "^3.0.3",
"prettier": "^3.6.2",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.7",
"globals": "^17.12.0",
"jest": "^30.5.2",
"jest-environment-jsdom": "^30.5.2",
"jest-fetch-mock": "^4.2.0",
"prettier": "^3.9.9",
"react": "^19.3.0",
"react-dom": "^19.3.0",
"stac-ts": "^1.0.5",
"ts-jest": "^29.4.5",
"typescript": "~5.9.3",
"typescript-eslint": "^8.46.2",
"vite": "^7.1.11",
"vite-plugin-dts": "^4.5.4"
"ts-jest": "^29.4.14",
"typescript": "~6.0",
"typescript-eslint": "^8.71.0",
"vite": "^8.3.1",
"vite-plugin-dts": "^5.1.1"
},
"scripts": {
"lint": "eslint .",
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'path';
export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.ts'),
entry: path.resolve(import.meta.dirname, 'src/index.ts'),
name: 'StacReact',
formats: ['es', 'cjs'],
fileName: (format) => `stac-react.${format === 'es' ? 'es.mjs' : 'cjs'}`,
Expand All @@ -18,7 +18,7 @@ export default defineConfig({
plugins: [
dts({
exclude: ['**/*.test.ts'],
outDir: 'dist',
outDirs: 'dist',
insertTypesEntry: true,
copyDtsFiles: true,
beforeWriteFile(filePath, content) {
Expand Down
Loading
Loading