Skip to content

Commit

Permalink
Merge pull request #995 from openmeterio/fix/web-client
Browse files Browse the repository at this point in the history
Update Web SDK to include file extensions for imports
  • Loading branch information
tothandras authored Jun 10, 2024
2 parents 1eeb4e4 + e56d407 commit c4f1a94
Show file tree
Hide file tree
Showing 9 changed files with 622 additions and 985 deletions.
3 changes: 1 addition & 2 deletions api/client/web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"prettier",
"eslint:recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vitest/recommended"
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-mixed-spaces-and-tabs": "warn",
Expand Down
35 changes: 17 additions & 18 deletions api/client/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,38 @@
"node": ">=18.16.1"
},
"scripts": {
"lint": "eslint . --ext .ts --format=pretty",
"lint": "eslint . --ext .ts",
"format": "prettier --list-different --find-config-path --write .",
"build": "rimraf ./dist && tsc --build",
"generate": "openapi-typescript '../../openapi.yaml' --output src/client/openapi.ts && prettier --write src/client/openapi.ts",
"pretest": "pnpm run build",
"test": "vitest --run --threads=false",
"test:watch": "vitest --watch --threads=false",
"test": "vitest --run",
"test:watch": "vitest --watch",
"prepublishOnly": "pnpm run generate && pnpm run build && pnpm run lint && pnpm run test"
},
"devDependencies": {
"@testing-library/react": "^14.1.2",
"@types/node": "^20.12.12",
"@types/react": "^18.3.3",
"@typescript-eslint/eslint-plugin": "6.9.0",
"@typescript-eslint/parser": "6.9.0",
"eslint": "8.52.0",
"@testing-library/react": "16.0.0",
"@types/node": "20.12.12",
"@types/react": "18.3.3",
"@typescript-eslint/eslint-plugin": "7.12.0",
"@typescript-eslint/parser": "7.12.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-formatter-pretty": "5.0.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-unused-imports": "3.0.0",
"eslint-plugin-vitest": "^0.3.10",
"jsdom": "^22.1.0",
"eslint-plugin-unused-imports": "3.2.0",
"eslint-plugin-vitest": "0.5.3",
"jsdom": "24.1.0",
"openapi-typescript": "6.7.6",
"prettier": "3.2.5",
"prettier": "3.3.1",
"react": "18.3.1",
"rimraf": "5.0.7",
"typescript": "5.2.2",
"undici": "^5.27.2",
"vitest": "^0.34.6"
"typescript": "5.4.5",
"undici": "6.18.2",
"vitest": "1.6.0"
},
"dependencies": {
"openapi-typescript-fetch": "^1.1.3"
"openapi-typescript-fetch": "^2.0.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
Loading

0 comments on commit c4f1a94

Please sign in to comment.