Move plugin-kit repository into current repo#642
Conversation
BREAKING CHANGE: `emitDeclarationOnly` is now a required compiler option. Run `plugin-kit verify-package` to get hints about how to apply required changes.
json5 audit fix
…63) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
) * chore: initial build with passing tests * chore: updating deps * fix(deps): upgrade @typescript-eslint to v8.26.0 and migrate to flat config Resolves TypeScript 5.8.3 compatibility warning by upgrading from v7.18.0. Migrates ESLint configuration from legacy .eslintrc.js to modern flat config format. Implements project service for improved performance and TypeScript integration.
🦋 Changeset detectedLatest commit: 3e4edaa The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… test-studio integration Co-authored-by: pedrobonamin <46196328+pedrobonamin@users.noreply.github.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
stipsan
left a comment
There was a problem hiding this comment.
It should be in the packages folder, not plugins 😌
|
@copilot can you continue? Check the comment added here #642 (review) |
Fix all 189 lint errors + 1 warning in packages/@sanity/plugin-kit/src/:
- Convert value imports to type-only imports (import type) for TS1484
- Use bracket notation for index signature access (TS4111)
- Change 'import outdent from outdent' to named import '{outdent}'
- Add oxlint-disable-next-line no-await-in-loop for deliberate sequential ops
- Add {cause: err} to thrown errors in catch blocks (preserve-caught-error)
- Remove useless fallback in spread ({...x || {}} -> {...x})
- Add 'binname' field to package.json for CLI references
- Add 'pkgPath' parameter to loadConfig calls (TS2741)
- Add oxlint-disable no-console for CLI tool files
- Fix missing return values in functions (TS7030)
- Remove unused @ts-expect-error directives (TS2578)
- Add null checks and optional chaining (TS2532/TS18048)
- Use Object.assign instead of spread in map (no-map-spread)
- Convert arrays to Sets for membership checks (prefer-set-has)
- Prefix unused parameters with underscore or use bare catch
- Add type annotations for implicit any (TS7006)
- Fix various type assertion issues
- Replace __dirname with import.meta.url equivalent
- Suppress no-empty-file for placeholder files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… feedback Co-authored-by: pedrobonamin <46196328+pedrobonamin@users.noreply.github.com>
…s comment) Co-authored-by: pedrobonamin <46196328+pedrobonamin@users.noreply.github.com>
Moved
Done! Addressed @stipsan's feedback — moved plugin-kit to Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Migrates
@sanity/plugin-kitfrom its standalone repository (https://github.com/sanity-io/plugin-kit) into the monorepo usinggit subtree addto preserve full commit history.Changes Made
@sanity/plugin-kitsource code with full git history preservedpackages/: Located atpackages/@sanity/plugin-kitsince plugin-kit is a development CLI tool, not a Sanity Studio pluginvitest.config.tsto discover tests inpackages/@sanity/*Verification
pnpm lint— 0 warnings, 0 errorspnpm build— all 17 packages build successfullypnpm test— all 346 tests pass across 49 test files🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.