Skip to content

Commit

Permalink
fix(cli)!: set gfm to be a peer dependency (#896)
Browse files Browse the repository at this point in the history
* fix(cli)!: set gfm to be a peer dependency

* Create few-ants-greet.md

* ci: do not run api tests for packager changes

* test: use single concurrency for testing

* ci: remove run from script

* test: correct paths
  • Loading branch information
ayuhito committed Dec 5, 2023
1 parent 6bcdc00 commit e9dc0d1
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 285 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-ants-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fontsource-utils/cli": patch
---

fix(cli)!: set gfm to be a peer dependency to fix metadata not being updated
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "pnpm -r run lint",
"test": "vitest",
"ci:lint": "pnpm -r run ci:lint",
"ci:test": "CI=true pnpm build && pnpm coverage",
"ci:test": "CI=true pnpm --filter \"./packages/*\" run build && pnpm --filter \"./packages/*\" --workspace-concurrency 1 coverage",
"ci:version": "changeset version",
"ci:publish": "pnpm --filter \"./packages/*\" run build && pnpm --filter \"./packages/*\" publish",
"ci:publish-api": "pnpm --filter \"./packages/*\" run build && pnpm --filter \"./api/*\" run deploy"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Fontsource CLI allows users to build fontsource packages locally as well as
## Getting Started

```bash
npm install @fontsource-utils/cli
npm install @fontsource-utils/cli google-font-metadata
```

# Commands
Expand Down
7 changes: 5 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fontsource-utils/cli",
"version": "0.3.19",
"version": "0.4.0",
"description": "Fontsource CLI",
"bin": {
"fontsource": "./dist/cli.mjs"
Expand Down Expand Up @@ -53,7 +53,6 @@
"consola": "^3.1.0",
"dotenv": "^16.1.4",
"fs-extra": "^11.1.1",
"google-font-metadata": "^5.2.0",
"json-stringify-pretty-compact": "^4.0.0",
"p-queue": "^7.4.1",
"pathe": "^1.1.1",
Expand All @@ -64,12 +63,16 @@
"@types/fs-extra": "^11.0.1",
"@types/node": "^20.7.1",
"eslint": "^8.50.0",
"google-font-metadata": "^5.2.1",
"magic-string": "^0.30.0",
"pkgroll": "^1.10.0",
"sass": "^1.62.1",
"tsx": "^3.12.7",
"typescript": "^5.2.2"
},
"peerDependencies": {
"google-font-metadata": "^5.2.1"
},
"files": [
"dist/*"
],
Expand Down
12 changes: 6 additions & 6 deletions packages/publish/tests/changed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getChanged } from '../src/changed';

describe('get changed packages', () => {
const config = {
packages: ['./packages/publish/tests/fixtures/'],
packages: ['./tests/fixtures/'],
ignoreExtension: [],
commitMessage: 'chore: release new versions',
};
Expand All @@ -16,13 +16,13 @@ describe('get changed packages', () => {
expect(packages).toEqual([
{
name: 'package1',
path: 'packages/publish/tests/fixtures/package1',
path: 'tests/fixtures/package1',
hash: '2d7f1808da1fa63c',
version: '0.1.0',
},
{
name: 'package3',
path: 'packages/publish/tests/fixtures/package3diff',
path: 'tests/fixtures/package3diff',
hash: 'd4a613dee558a143',
version: '0.3.0',
},
Expand All @@ -37,19 +37,19 @@ describe('get changed packages', () => {
expect(packages).toEqual([
{
name: 'package1',
path: 'packages/publish/tests/fixtures/package1',
path: 'tests/fixtures/package1',
hash: '2d7f1808da1fa63c',
version: '0.1.0',
},
{
name: 'package2',
path: 'packages/publish/tests/fixtures/package2',
path: 'tests/fixtures/package2',
hash: '2d7f1808da1fa63c',
version: '0.2.0',
},
{
name: 'package3',
path: 'packages/publish/tests/fixtures/package3diff',
path: 'tests/fixtures/package3diff',
hash: 'd4a613dee558a143',
version: '0.3.0',
},
Expand Down

0 comments on commit e9dc0d1

Please sign in to comment.