Skip to content

Commit 9043594

Browse files
committed
chore: align package.json and memory bank with style guideline v1.1
1 parent f64ec14 commit 9043594

File tree

86 files changed

+13010
-21808
lines changed

Some content is hidden

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

86 files changed

+13010
-21808
lines changed

.eslintcache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ updates:
88
interval: 'weekly' # Check for updates weekly
99
open-pull-requests-limit: 10 # Limit open PRs
1010
versioning-strategy: 'auto' # Use default strategy
11+
# Allow only non-major updates for production dependencies initially
12+
allow:
13+
- dependency-type: 'production'
14+
update-types:
15+
['version-update:semver-minor', 'version-update:semver-patch']
16+
- dependency-type: 'development'
17+
update-types:
18+
[
19+
'version-update:semver-major',
20+
'version-update:semver-minor',
21+
'version-update:semver-patch',
22+
]
1123
commit-message:
1224
prefix: 'chore' # Use 'chore' for dependency updates
1325
prefix-development: 'chore(dev)' # Use 'chore(dev)' for devDependencies

.github/workflows/publish.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,30 @@ jobs:
2626
- name: Set up Node.js
2727
uses: actions/setup-node@v4.0.3 # Specific version
2828
with:
29-
node-version: '20'
30-
cache: 'npm' # Added caching
29+
node-version: '22' # Use latest LTS
30+
cache: 'pnpm' # Use pnpm cache
3131

3232
- name: Install dependencies
33-
run: npm ci
33+
run: pnpm install --frozen-lockfile # Use pnpm install
3434

3535
- name: Check formatting
36-
run: npm run check-format
36+
run: pnpm run check-format
3737

3838
- name: Lint code
39-
run: npm run lint
39+
run: pnpm run lint
4040

4141
- name: Perform type checking
42-
run: npm run typecheck
42+
run: pnpm run typecheck
4343

4444
- name: Run tests with coverage
45-
run: npm run test:cov
45+
run: pnpm run test:cov
4646

4747
- name: Upload coverage to Coveralls
4848
uses: coverallsapp/github-action@v2.3.0 # Specific version
4949
with:
5050
github-token: ${{ secrets.GITHUB_TOKEN }}
5151
path-to-lcov: ./coverage/lcov.info # Verify path exists after test:cov
52-
flag-name: run-${{ matrix.node-version || 'node-20' }} # Use matrix or default
52+
flag-name: run-${{ matrix.node-version || 'node-22' }} # Use matrix or default (updated node version)
5353
parallel: false # Set to true if using parallel matrix later
5454

5555
build:
@@ -66,14 +66,14 @@ jobs:
6666
- name: Set up Node.js
6767
uses: actions/setup-node@v4.0.3 # Specific version
6868
with:
69-
node-version: '20'
70-
cache: 'npm' # Added caching
69+
node-version: '22' # Use latest LTS
70+
cache: 'pnpm' # Use pnpm cache
7171

7272
- name: Install dependencies
73-
run: npm ci
73+
run: pnpm install --frozen-lockfile # Use pnpm install
7474

7575
- name: Build project
76-
run: npm run build
76+
run: pnpm run build
7777

7878
- name: Get package version
7979
id: get_version
@@ -92,7 +92,7 @@ jobs:
9292
id: archive_build
9393
run: |
9494
# Ensure scripts directory is included if postbuild.js is needed
95-
tar -czf build-artifacts.tar.gz build package.json package-lock.json README.md CHANGELOG.md LICENSE Dockerfile .dockerignore scripts/postbuild.js
95+
tar -czf build-artifacts.tar.gz build package.json pnpm-lock.yaml README.md CHANGELOG.md LICENSE Dockerfile .dockerignore scripts/postbuild.js # Replaced package-lock with pnpm-lock
9696
echo "archive_name=build-artifacts.tar.gz" >> $GITHUB_OUTPUT
9797
9898
- name: Upload build artifacts (only on tag push)
@@ -122,9 +122,9 @@ jobs:
122122
- name: Set up Node.js for npm publish
123123
uses: actions/setup-node@v4.0.3 # Specific version
124124
with:
125-
node-version: '20'
125+
node-version: '22' # Use latest LTS
126126
registry-url: 'https://registry.npmjs.org/'
127-
cache: 'npm' # Added caching
127+
cache: 'pnpm' # Use pnpm cache
128128

129129
# Install only production dependencies before publishing (optional but good practice)
130130
# - name: Install production dependencies

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "$1"

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm test

0 commit comments

Comments
 (0)