8000 build: pin the core dependency of the adapters to the exact version by morellodev · Pull Request #337 · awesome-reveal/awesome-reveal · GitHub
[go: up one dir, main page]

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
2 changes: 1 addition & 1 deletion .claude/skills/adding-framework-adapters/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Keep the item of the adapter on the plan board, https://github.com/orgs/awesome-
- The framework peer dependency and its dev dependencies.
- The JSX options in `tsconfig.json`, such as `jsxImportSource`. Remove them if the framework has no JSX.

Keep `"@awesome-reveal/core": "workspace:^"`, and keep `"version"` equal to the other packages. Add the package to the `paths` in `tsconfig.base.json`, so that the example type-checks against the sources.
Keep `"@awesome-reveal/core": "workspace:*"`, and keep `"version"` equal to the other packages. Add the package to the `paths` in `tsconfig.base.json`, so that the example type-checks against the sources.

2. Prefer plain TypeScript sources, such as render functions, when the framework allows it. Then the build needs no compiler plugin, and `vite-plugin-dts` emits the declarations. If the framework needs a compiler plugin, pass it to `defineLibConfig` in `vite.config.ts` as the second argument. Check the declarations and the output format:
- `vite-plugin-dts` emits declarations for `.vue` files only when `@vue/language-core` is installed.
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The pre-commit hook runs oxlint and oxfmt on the staged files. CI runs the tests

- Open PRs against `next`. `main` keeps the v4 line until 1.0 ships.
- Use Conventional Commits. release-please writes the changelog from them, so mark each breaking change with `!` and a `BREAKING CHANGE:` footer.
- All packages share one version, through `linked-versions` in `release-please-config.json`. Each adapter depends on `@awesome-reveal/core` with `workspace:^`.
- All packages share one version, through `linked-versions` in `release-please-config.json`. Each adapter depends on `@awesome-reveal/core` with `workspace:*`, so it publishes an exact version. The `/adapter` entry of core is a private contract, not semver API. The `data-awesome-reveal` attributes are public API: the READMEs document them, and users forward them.
- `react-awesome-reveal` is the exception. It continues the v4 version line, from 5.0.0. Do not add it to `linked-versions`: release-please gives all linked packages the highest version.
- Core imports no framework. The reveal options and all the behavior live in core, and an adapter only binds them to its framework, so that all adapters behave the same. The contract suite in `packages/test-utils` checks it.
- The packages are ESM-only. `"sideEffects"` lists only `*.css` when the package exports `reveal.css` or a JS module imports it, or is `false`. Astro is `false`, because its CSS import is in `Host.astro`, which Astro compiles. The build keeps one file per module, so bundlers drop the modules that a consumer does not import.
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/core": "workspace:^"
"@awesome-reveal/core": "workspace:*"
},
"devDependencies": {
"astro": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/core": "workspace:^"
"@awesome-reveal/core": "workspace:*"
},
"devDependencies": {
"@types/react": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/core": "workspace:^"
"@awesome-reveal/core": "workspace:*"
},
"devDependencies": {
"vitest-browser-vue": "catalog:",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
0