Skip to content

Commit

Permalink
⬆️ (repo) [NO-ISSUE]: Update libraries to latest version + fix build …
Browse files Browse the repository at this point in the history
…for libs (#54)
  • Loading branch information
valpinkman authored Apr 11, 2024
2 parents 7c5ba68 + a902295 commit 6a7d979
Show file tree
Hide file tree
Showing 26 changed files with 1,346 additions and 1,660 deletions.
15 changes: 15 additions & 0 deletions apps/sample/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
const { overrides } = require("../../packages/config/eslint");

module.exports = {
extends: ["next", "@ledgerhq/dsdk"],
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
overrides: [
{
files: [
"src/app/page.tsx",
"src/app/global-error.tsx",
"src/app/client-layout.tsx",
"src/app/**/page.tsx",
],
rules: {
"no-restricted-syntax": 0,
},
},
],
};
14 changes: 7 additions & 7 deletions apps/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"dependencies": {
"@ledgerhq/device-sdk-core": "workspace:*",
"@ledgerhq/react-ui": "^0.14.13",
"@sentry/nextjs": "^7.105.0",
"next": "14.0.4",
"@ledgerhq/react-ui": "^0.14.16",
"@sentry/nextjs": "^7.109.0",
"next": "14.1.4",
"react": "^18",
"react-dom": "^18",
"styled-components": "^5.3.11"
Expand All @@ -25,10 +25,10 @@
"@ledgerhq/eslint-config-dsdk": "workspace:*",
"@ledgerhq/prettier-config-dsdk": "workspace:*",
"@ledgerhq/tsconfig-dsdk": "workspace:*",
"@types/react": "^18",
"@types/react": "^18.2.75",
"@types/styled-components": "^5.1.25",
"autoprefixer": "^10.0.1",
"eslint-config-next": "14.0.4",
"postcss": "^8"
"autoprefixer": "^10.4.19",
"eslint-config-next": "14.1.4",
"postcss": "^8.4.38"
}
}
1 change: 0 additions & 1 deletion apps/sample/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const Home: React.FC = () => {
return <MainView />;
};

// eslint-disable-next-line no-restricted-syntax
export default Home;
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.4",
"@types/node": "^20.12.7",
"concurrently": "^8.2.2",
"danger": "^11.3.1",
"esbuild": "^0.20.2",
"esbuild-plugin-d.ts": "^1.2.3",
"eslint": "^8.57.0",
"gitmoji-cli": "^9.2.0",
"hygen": "^6.2.11",
Expand All @@ -48,7 +46,7 @@
"tsc-alias": "^1.8.8",
"turbo": "^1.13.2",
"typescript": "^5.4.4",
"zx": "^7.2.3"
"zx": "^8.0.1"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
14 changes: 0 additions & 14 deletions packages/config/esbuild/config/common.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/config/esbuild/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/config/esbuild/package.json

This file was deleted.

66 changes: 0 additions & 66 deletions packages/config/esbuild/plugins/alias.js

This file was deleted.

42 changes: 0 additions & 42 deletions packages/config/esbuild/plugins/copy.js

This file was deleted.

5 changes: 4 additions & 1 deletion packages/config/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ const project = resolve(process.cwd(), "tsconfig.json");
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ["eslint:recommended", "prettier", "turbo"],
plugins: ["only-warn", "simple-import-sort"],
plugins: ["simple-import-sort"],
globals: {
React: true,
JSX: true,
node: true,
console: true,
},
parserOptions: {
ecmaVersion: "latest",
},
env: {
es6: true,
},
Expand Down
11 changes: 5 additions & 6 deletions packages/config/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
"index.js"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vercel/style-guide": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@vercel/style-guide": "^6.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^1.10.12",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-simple-import-sort": "^10.0.0"
"eslint-config-turbo": "^1.13.2",
"eslint-plugin-simple-import-sort": "^12.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/config/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"index.js"
],
"devDependencies": {
"prettier": "^3.1.1"
"prettier": "^3.2.5"
}
}
8 changes: 4 additions & 4 deletions packages/config/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"web.json"
],
"devDependencies": {
"@tsconfig/recommended": "^1.0.3",
"@types/eslint": "^8.44.9",
"@types/react": "^18",
"@types/react-dom": "^18"
"@tsconfig/recommended": "^1.0.6",
"@types/eslint": "^8.56.7",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24"
}
}
2 changes: 1 addition & 1 deletion packages/core/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
within: true,
},
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: "latest",
sourceType: "module",
},
},
Expand Down
29 changes: 21 additions & 8 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,32 @@
"license": "MIT",
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.js"
"default": "./index.ts",
"types": "./lib/esm/index.d.ts"
},
"./*.js": {
"import": "./lib/esm/*.js",
"require": "./lib/cjs/*.js",
"default": "./*.js",
"types": "./lib/esm/*.d.ts"
},
"./*": {
"import": "./lib/esm/*",
"require": "./lib/cjs/*",
"default": "./*",
"types": "./lib/esm/*"
}
},
"files": [
"./lib"
],
"scripts": {
"build": "rimraf lib && zx scripts/build.mjs",
"dev": "tsc && (concurrently \"tsc -w -p tsconfig.prod.json\" \"tsc-alias -w -p tsconfig.prod.json\")",
"lint": "eslint --cache --ext .ts \"src\"",
"lint:fix": "eslint --cache --fix --ext .ts \"src\"",
"dev": "tsc && (concurrently \"tsc -w -p tsconfig.json\" \"tsc-alias -w -p tsconfig.json\")",
"lint": "eslint --ext .ts \"src\"",
"lint:fix": "pnpm lint --fix",
"prettier": "prettier . --check",
"prettier:fix": "prettier . --write",
"test": "jest",
Expand All @@ -29,18 +43,17 @@
"inversify": "^6.0.2",
"inversify-logger-middleware": "^3.1.0",
"purify-ts": "^2.0.3",
"reflect-metadata": "^0.2.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"semver": "^7.5.4",
"semver": "^7.6.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@ledgerhq/esbuild-tools": "workspace:*",
"@ledgerhq/eslint-config-dsdk": "workspace:*",
"@ledgerhq/jest-config-dsdk": "workspace:*",
"@ledgerhq/prettier-config-dsdk": "workspace:*",
"@ledgerhq/tsconfig-dsdk": "workspace:*",
"@types/semver": "^7.5.6",
"@types/semver": "^7.5.8",
"@types/uuid": "^9.0.8",
"@types/w3c-web-hid": "^1.0.6",
"ts-node": "^10.9.2"
Expand Down
Loading

0 comments on commit 6a7d979

Please sign in to comment.