Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ version: 'v0.0.3'
workflows:
'.github/workflows/ci.yml':
- 'actions/checkout@v7.0.1'
- 'oven-sh/setup-bun@v2.2.0'
- 'actions/setup-node@v7.1.0'
- 'pnpm/action-setup@v6.1.0'
'.github/workflows/release.yml':
- 'actions/checkout@v7.0.1'
- 'actions/setup-node@v7.1.0'
- 'changesets/action@v1.9.0'
- 'oven-sh/setup-bun@v2.2.0'
- 'pnpm/action-setup@v6.1.0'
dependencies:
'actions/checkout@v7.0.1':
ref: 'v7.0.1'
Expand All @@ -27,8 +28,8 @@ dependencies:
commit: 'sha1-a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d'
owner_id: 51163350
repo_id: 202093906
'oven-sh/setup-bun@v2.2.0':
ref: 'v2.2.0'
commit: 'sha1-0c5077e51419868618aeaa5fe8019c62421857d6'
owner_id: 108928776
repo_id: 512644635
'pnpm/action-setup@v6.1.0':
ref: 'v6.1.0'
commit: 'sha1-ea17c68df8912ef543352723c149a84f56e3d413'
owner_id: 21320719
repo_id: 262289747
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@ jobs:
steps:
- uses: actions/checkout@v7.0.1

- uses: oven-sh/setup-bun@v2.2.0
- uses: pnpm/action-setup@v6.1.0

- uses: actions/setup-node@v7.1.0
with:
bun-version: 1.3.13
node-version: 24
cache: pnpm

- name: Install
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Typecheck
run: bun run typecheck
run: pnpm typecheck

- name: Lint
run: bun run lint
run: pnpm lint

- name: Test
run: bun run test
run: pnpm test

- name: Build
run: bun run build
run: pnpm build
20 changes: 6 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,17 @@ jobs:
steps:
- uses: actions/checkout@v7.0.1

- uses: oven-sh/setup-bun@v2.2.0
with:
bun-version: 1.3.13
- uses: pnpm/action-setup@v6.1.0

# `changeset publish` shells out to `npm publish` (changesets only
# special-cases pnpm; everything else, incl. bun, uses npm). npm performs
# the OIDC token exchange for Trusted Publishing, so install a recent
# Node/npm and point publishing at npmjs.
# OIDC Trusted Publishing requires npm >= 11.5.1, which Node 24 bundles.
- uses: actions/setup-node@v7.1.0
with:
node-version: 24
cache: pnpm
registry-url: https://registry.npmjs.org

# OIDC Trusted Publishing requires npm >= 11.5.1.
- name: Ensure npm supports trusted publishing
run: npm install -g npm@latest

- name: Install
run: bun install --frozen-lockfile
run: pnpm install --frozen-lockfile

# Opens/updates a "Version Packages" PR, or publishes when one is merged.
# Publishing is token-less via OIDC: each @love-rox/ptpt-* package must
Expand All @@ -44,8 +36,8 @@ jobs:
- name: Changesets
uses: changesets/action@v1.9.0
with:
version: bun run version
publish: bun run release
version: pnpm ci:version
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"
1,584 changes: 0 additions & 1,584 deletions bun.lock

This file was deleted.

2 changes: 1 addition & 1 deletion docs/IMPLEMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ ptpt/
├── .gitignore
├── .npmignore
├── biome.json # Linter/Formatter(Biome 推奨、ESLint+Prettier より高速)
├── bun.lock # Bun v1.2 以降はテキストベース(JSONC)
├── pnpm-lock.yaml # pnpm のロックファイル
├── LICENSE
├── package.json # ルート(workspaces 定義)
├── README.md # トップREADME(日英)
Expand Down
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
"name": "ptpt-monorepo",
"private": true,
"workspaces": [
"packages/*"
],
"type": "module",
"scripts": {
"build": "bun run --filter='./packages/*' build",
"test": "bun run --filter='./packages/*' test",
"typecheck": "bun run --filter='./packages/*' typecheck",
"build": "pnpm -r --filter \"./packages/*\" run build",
"test": "pnpm -r --filter \"./packages/*\" run test",
"typecheck": "pnpm -r --filter \"./packages/*\" run typecheck",
"lint": "vp lint",
"format": "vp fmt",
"format:check": "vp fmt --check",
"check": "vp check",
"changeset": "changeset",
"version": "changeset version",
"release": "bun run build && changeset publish"
"ci:version": "changeset version",
"ci:publish": "pnpm build && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.29.7",
Expand All @@ -27,5 +24,6 @@
"vite-plugin-dts": "^4.5.4",
"vite-plus": "0.1.22",
"vitest": "^4.0.18"
}
},
"packageManager": "pnpm@10.33.0"
}
6 changes: 3 additions & 3 deletions packages/ptpt-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@love-rox/ptpt-rehype": "^0.1.1"
"@love-rox/ptpt-rehype": "workspace:^"
},
"devDependencies": {
"@love-rox/ptpt-core": "^0.1.1",
"@love-rox/ptpt-rehype": "^0.1.1",
"@love-rox/ptpt-core": "workspace:^",
"@love-rox/ptpt-rehype": "workspace:^",
"astro": "^5.15.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ptpt-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@love-rox/ptpt-core": "^0.1.1",
"@love-rox/ptpt-core": "workspace:^",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ptpt-rehype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@love-rox/ptpt-core": "^0.1.1",
"@love-rox/ptpt-core": "workspace:^",
"@types/hast": "^3.0.4",
"rehype": "^13.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ptpt-rehype/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function rehypePtpt(options: RehypePtptOptions = {}) {
export { rehypePtpt }

function hasClass(node: Element, name: string): boolean {
const value = node.properties?.className
const value: unknown = node.properties?.className
if (Array.isArray(value)) return value.includes(name)
if (typeof value === 'string') return value.split(/\s+/).includes(name)
return false
Expand Down
2 changes: 1 addition & 1 deletion packages/ptpt-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@love-rox/ptpt-core": "^0.1.1",
"@love-rox/ptpt-core": "workspace:^",
"@vue/test-utils": "^2.4.6",
"vue": "^3.5.22"
},
Expand Down
Loading
Loading