-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add usage section about prettier-plugin-embed
#327
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Seems like the CI error is related to the TOML package: $ pnpm run-s build lint test
> @unts/[email protected] build
> run-p build:*
> @unts/[email protected] build:r
> r -f cjs
> @unts/[email protected] build:ts
> tsc -b
Error [RollupError]: Could not resolve "./languages.js" from "packages/toml/src/index.ts"
at error (file:///home/runner/work/prettier/prettier/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:2245:30)
at ModuleLoader.handleInvalidResolvedId (file:///home/runner/work/prettier/prettier/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:24632:24)
at file:///home/runner/work/prettier/prettier/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:245[9](https://github.com/un-ts/prettier/actions/runs/7152253084/job/19477387552?pr=327#step:6:10)4:26 {
code: 'UNRESOLVED_IMPORT',
exporter: './languages.js',
id: '/home/runner/work/prettier/prettier/packages/toml/src/index.ts',
watchFiles: [
'/home/runner/work/prettier/prettier/packages/toml/src/index.ts',
'/home/runner/work/prettier/prettier/packages/toml/src/options.ts'
]
}
ERROR: "build:r" exited with 1.
ERROR: "build" exited with 1.
Error: Process completed with exit code 1. |
No worry, I'll fix the CI issue. |
prettier-plugin-embed
@karlhorky Please fix the CI issue about formatting. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #327 +/- ##
=======================================
Coverage 87.73% 87.73%
=======================================
Files 10 10
Lines 163 163
Branches 43 43
=======================================
Hits 143 143
Misses 19 19
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Closes #217
Alternative
.prettierrc
version of the config (downside: untyped):