Skip to content

Commit

Permalink
Fix duplicated dependencies (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
desfero authored Jan 23, 2023
1 parent fb53a70 commit 65afb45
Show file tree
Hide file tree
Showing 5 changed files with 660 additions and 384 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: pnpm/[email protected]

- run: pnpm install
- run: pnpm deduplicate:check
- run: pnpm build
- run: pnpm lint
- run: pnpm test
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ To run the tests for all packages, run the following command in the repo root:
pnpm test
```

### Deduplicating dependencies

To check if there are unneeded duplicates run:

```bash
pnpm deduplicate:check
```

To fix all duplicates run:
```bash
pnpm deduplicate:fix
```

## Releasing new version

Release flow is managed by [changesets](https://github.com/changesets/changesets).
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
"test": "turbo run test --no-cache",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint --parallel",
"lint:fix": "turbo run lint:fix --parallel"
"lint:fix": "turbo run lint:fix --parallel",
"deduplicate:check": "pnpm-deduplicate --list",
"deduplicate:fix": "pnpm-deduplicate"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"pnpm-deduplicate": "^0.4.1",
"prettier": "latest",
"turbo": "latest"
},
Expand All @@ -38,8 +42,5 @@
"node": "^18.12.1",
"pnpm": "^7.17.0"
},
"packageManager": "[email protected]",
"dependencies": {
"@changesets/cli": "^2.26.0"
}
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/domain/src/use-cases/publications/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export type NoCollectPolicy = {

export type CollectPolicy = ChargeCollectPolicy | FreeCollectPolicy | NoCollectPolicy;

export type SupportedPublicationMediaType = typeof SUPPORTED_PUBLICATION_MEDIA_TYPES[number];
export type SupportedPublicationMediaType = (typeof SUPPORTED_PUBLICATION_MEDIA_TYPES)[number];

export type Media = {
url: string;
Expand Down
Loading

0 comments on commit 65afb45

Please sign in to comment.