Skip to content

Commit c7156aa

Browse files
authored
refactor: rename packages directory to apps for improved monorepo semantics (#639)
1 parent 5081b90 commit c7156aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+87
-287
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3838
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
3939
- run: pnpm install --frozen-lockfile
40-
- run: pnpm dlx [email protected] publish --pnpm './packages/*'
40+
- run: pnpm dlx [email protected] publish --pnpm './apps/*'
4141

4242
spell-check:
4343
runs-on: ubuntu-latest
@@ -57,18 +57,18 @@ jobs:
5757
- run: pnpm install --frozen-lockfile
5858
- name: Generate schema files
5959
run: pnpm run generate:schema
60-
working-directory: packages/ccusage
60+
working-directory: apps/ccusage
6161
- name: Check if schema files are up-to-date
6262
run: |
63-
if git diff --exit-code packages/ccusage/config-schema.json docs/public/config-schema.json; then
63+
if git diff --exit-code apps/ccusage/config-schema.json docs/public/config-schema.json; then
6464
echo "✅ Schema files are up-to-date"
6565
else
6666
echo "❌ Schema files are not up-to-date. Please run 'pnpm run generate:schema' and commit the changes."
6767
echo ""
6868
echo "Changed files:"
69-
git diff --name-only packages/ccusage/config-schema.json docs/public/config-schema.json
69+
git diff --name-only apps/ccusage/config-schema.json docs/public/config-schema.json
7070
echo ""
7171
echo "Diff:"
72-
git diff packages/ccusage/config-schema.json docs/public/config-schema.json
72+
git diff apps/ccusage/config-schema.json docs/public/config-schema.json
7373
exit 1
7474
fi

.github/workflows/release.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
tags:
66
- '*'
77

8-
env:
9-
PACKAGE_DIR: packages/ccusage
10-
118
jobs:
129
npm:
1310
runs-on: ubuntu-latest
@@ -26,8 +23,7 @@ jobs:
2623
node-version: lts/*
2724
- run: npm install -g npm@latest
2825
- run: pnpm install --frozen-lockfile
29-
- run: pnpm --filter='./packages/**' publish --provenance --no-git-checks --access public
30-
working-directory: ${{env.PACKAGE_DIR}}
26+
- run: pnpm --filter='./apps/**' publish --provenance --no-git-checks --access public
3127

3228
release:
3329
needs:

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "ccusage",
3-
"type": "module",
43
"version": "16.2.5",
54
"description": "Usage analysis tool for Claude Code",
6-
"author": "ryoppippi",
7-
"license": "MIT",
8-
"funding": "https://github.com/ryoppippi/ccusage?sponsor=1",
95
"homepage": "https://github.com/ryoppippi/ccusage#readme",
6+
"bugs": {
7+
"url": "https://github.com/ryoppippi/ccusage/issues"
8+
},
109
"repository": {
1110
"type": "git",
1211
"url": "git+https://github.com/ryoppippi/ccusage.git"
1312
},
14-
"bugs": {
15-
"url": "https://github.com/ryoppippi/ccusage/issues"
16-
},
13+
"funding": "https://github.com/ryoppippi/ccusage?sponsor=1",
14+
"license": "MIT",
15+
"author": "ryoppippi",
16+
"type": "module",
1717
"exports": {
1818
".": "./src/index.ts",
1919
"./calculate-cost": "./src/calculate-cost.ts",
@@ -31,9 +31,6 @@
3131
"config-schema.json",
3232
"dist"
3333
],
34-
"engines": {
35-
"node": ">=20.19.4"
36-
},
3734
"scripts": {
3835
"build": "pnpm run generate:schema && tsdown",
3936
"format": "pnpm run lint --fix",
@@ -92,6 +89,9 @@
9289
"vitest": "catalog:testing",
9390
"xdg-basedir": "catalog:runtime"
9491
},
92+
"engines": {
93+
"node": ">=20.19.4"
94+
},
9595
"publishConfig": {
9696
"bin": "./dist/index.js",
9797
"exports": {

0 commit comments

Comments
 (0)