Skip to content

Commit

Permalink
chore: scope packages [LIVE-10978] (#290)
Browse files Browse the repository at this point in the history
* chore: scope packages

* chore: add changeset

* chore: add missing scope changes for examples folder
  • Loading branch information
Justkant authored Jan 18, 2024
1 parent 59f7f6d commit d183e61
Show file tree
Hide file tree
Showing 27 changed files with 71 additions and 78 deletions.
11 changes: 11 additions & 0 deletions .changeset/poor-students-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@ledgerhq/wallet-api-manifest-validator": patch
"@ledgerhq/wallet-api-tools": patch
"@ledgerhq/wallet-api-client-react": patch
"@ledgerhq/wallet-api-simulator": patch
"@ledgerhq/wallet-api-client": patch
"@ledgerhq/wallet-api-server": patch
"@ledgerhq/wallet-api-core": patch
---

chore: scope all packages
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
// This tells ESLint to load the config from the package `@ledgerhq/eslint-config-custom`
extends: ["@ledgerhq/eslint-config-custom"],
};
4 changes: 2 additions & 2 deletions apps/docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ["custom/next"],
extends: ["@ledgerhq/eslint-config-custom/next"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
Expand All @@ -8,4 +8,4 @@ module.exports = {
},
},
rules: {},
};
};
2 changes: 1 addition & 1 deletion apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wallet-api-docs
# @ledgerhq/wallet-api-docs

## 0.3.0

Expand Down
3 changes: 2 additions & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "wallet-api-docs",
"name": "@ledgerhq/wallet-api-docs",
"version": "0.3.0",
"description": "",
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-api-tools/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ["custom/next"],
extends: ["@ledgerhq/eslint-config-custom/next"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-api-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wallet-api-tools
# @ledgerhq/wallet-api-tools

## 0.4.5

Expand Down
4 changes: 2 additions & 2 deletions apps/wallet-api-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wallet-api-tools",
"name": "@ledgerhq/wallet-api-tools",
"version": "0.4.5",
"repository": "[email protected]:LedgerHQ/wallet-api.git",
"private": true,
Expand Down Expand Up @@ -32,10 +32,10 @@
"zod": "^3.22.2"
},
"devDependencies": {
"@ledgerhq/eslint-config-custom": "workspace:*",
"@types/uuid": "^9.0.3",
"autoprefixer": "^10.4.16",
"eslint": "^8.48.0",
"eslint-config-custom": "workspace:*",
"postcss": "^8.4.31",
"postcss-import": "^15.1.0",
"tailwindcss": "^3.3.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/client-nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# client-nextjs
# @ledgerhq/client-nextjs

## 0.1.3

Expand Down
2 changes: 1 addition & 1 deletion examples/client-nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "client-nextjs",
"name": "@ledgerhq/client-nextjs",
"version": "0.1.3",
"private": true,
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wallet-api",
"name": "@ledgerhq/wallet-api",
"version": "0.0.0",
"private": true,
"workspaces": [
Expand Down Expand Up @@ -30,8 +30,8 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@ledgerhq/eslint-config-custom": "workspace:*",
"eslint": "^8.48.0",
"eslint-config-custom": "workspace:*",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"turbo": "^1.10.13"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"@ledgerhq/wallet-api-client": "workspace:*"
},
"devDependencies": {
"@ledgerhq/jest-shared-config": "workspace:*",
"@types/jest": "^29.5.4",
"@types/node": "^20.8.7",
"@types/react": "^18.2.38",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-shared-config": "workspace:*",
"prettier": "^3.0.3",
"react": "^18.2.0",
"ts-jest": "^29.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { JestConfigWithTsJest } from "ts-jest";

const config: JestConfigWithTsJest = {
preset: "jest-shared-config",
preset: "@ledgerhq/jest-shared-config",
};

export default config;
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"bignumber.js": "^9.1.2"
},
"devDependencies": {
"@ledgerhq/jest-shared-config": "workspace:*",
"@types/jest": "^29.5.4",
"@types/node": "^20.8.7",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-shared-config": "workspace:*",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { JestConfigWithTsJest } from "ts-jest";

const config: JestConfigWithTsJest = {
preset: "jest-shared-config",
preset: "@ledgerhq/jest-shared-config",
};

export default config;
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"test": "jest"
},
"devDependencies": {
"@ledgerhq/jest-shared-config": "workspace:*",
"@types/jest": "^29.5.4",
"@types/node": "^20.8.7",
"@types/uuid": "^9.0.3",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-shared-config": "workspace:*",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
Expand Down
19 changes: 0 additions & 19 deletions packages/eslint-config-custom/CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-custom",
"name": "@ledgerhq/eslint-config-custom",
"private": true,
"version": "0.3.0",
"version": "0.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-shared-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jest-shared-config",
"name": "@ledgerhq/jest-shared-config",
"private": true,
"version": "0.1.0",
"version": "0.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/manifest-validator/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { JestConfigWithTsJest } from "ts-jest";

const config: JestConfigWithTsJest = {
preset: "jest-shared-config",
preset: "@ledgerhq/jest-shared-config",
};

export default config;
2 changes: 1 addition & 1 deletion packages/manifest-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"test": "jest"
},
"devDependencies": {
"@ledgerhq/jest-shared-config": "workspace:*",
"@types/jest": "^29.5.4",
"@types/node": "^20.8.7",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-shared-config": "workspace:*",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { JestConfigWithTsJest } from "ts-jest";

const config: JestConfigWithTsJest = {
preset: "jest-shared-config",
preset: "@ledgerhq/jest-shared-config",
};

export default config;
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"build": "rm -rf lib/* lib-es/* && tsc -p prod.tsconfig.json && tsc -p prod-esm.tsconfig.json"
},
"devDependencies": {
"@ledgerhq/jest-shared-config": "workspace:*",
"@types/jest": "^29.5.4",
"@types/node": "^20.8.7",
"@types/picomatch": "^2.3.0",
"@types/react": "^18.2.38",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-shared-config": "workspace:*",
"react": "^18.2.0",
"rxjs": "^7.8.1",
"ts-jest": "^29.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/simulator/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import path from "path";
import type { JestConfigWithTsJest } from "ts-jest";

const config: JestConfigWithTsJest = {
preset: "jest-shared-config",
preset: "@ledgerhq/jest-shared-config",
moduleNameMapper: {
"^@ledgerhq/wallet-api-(.*)$": path.join(
__dirname,
"../../packages/$1/src/index.ts"
"../../packages/$1/src/index.ts",
),
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"test": "jest"
},
"devDependencies": {
"@ledgerhq/jest-shared-config": "workspace:*",
"@types/jest": "^29.5.4",
"@types/node": "^20.8.7",
"@types/ws": "^8.5.5",
"bignumber.js": "^9.1.2",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-shared-config": "workspace:*",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
Expand Down
Loading

2 comments on commit d183e61

@vercel
Copy link

@vercel vercel bot commented on d183e61 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wallet-api – ./apps/docs

wallet-api-ledgerhq.vercel.app
wallet-api-git-main-ledgerhq.vercel.app
wallet.api.live.ledger.com

@vercel
Copy link

@vercel vercel bot commented on d183e61 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wallet-api-wallet-api-tools – ./apps/wallet-api-tools

wallet-api-wallet-api-tools-git-main-ledgerhq.vercel.app
wallet-api-wallet-api-tools.vercel.app
wallet-api-wallet-api-tools-ledgerhq.vercel.app

Please sign in to comment.