032215b102
* refactor: migrate from eslint to biome and improve architecture - Replace ESLint with Biome for linting and formatting - Configure Biome with strict rules for: - Type checking and type safety - Code correctness (unused imports, variables, parameters) - Security (noExplicitAny, noConsole, dangerouslySetInnerHTML) - Improve VSCode integration: - Set up Biome formatters for TypeScript, JavaScript, and JSON - Configure Prettier for Markdown and HTML - Add automatic code actions and formatting - Improve React internals: - Remove react-reconciler dependency - Use bippy for Fiber/FiberRoot types - Use installRDTHook for React DevTools hook to avoid side effects - Update package dependencies and development tooling - General improvements and code cleanup BREAKING CHANGE: ESLint configuration removed in favor of Biome * bump extension with react-scan@0.0.55 * improve build-extension workflow * improve extension * fix getChangedState issue and create getCompositeFiberFromElement for overlay * resolve comments + fix flushes * resolve comments * resolve comments * improvements and small bug fixes * fix: overlay cursor + fadeout canvas instead of flick * fix: prevent inspecting the toolbar widget * fix: handle missing fiber when inspecting elements * ui/ux/dx, fixed animations, fixed what changed calculations * fix: circular refsm, perf improvements * feat(scan): implement new whats-changed, offscreen outline impl, bug fixes, ux improvements" * fix: react component names + turbopack loader (#189) * fix: react component names + turbopack loader * fix: tests for ReactComponentNames * fix: typesVersions for ReactComponentNames loader * fix: map return for filtered * docs: No changes in the text * chore: cleanup * chore: add back scan in kitchen sink example * chore: remove unsupported apis --------- Co-authored-by: Pavel Ivanov <pafelka@gmail.com> Co-authored-by: Nisarg Patel <awesomenisarg@gmail.com> Co-authored-by: Aiden Bai <aiden.bai05@gmail.com>
21 lines
714 B
JavaScript
21 lines
714 B
JavaScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
|
|
// Read the current version from scan package.json
|
|
const scanPackagePath = path.join(__dirname, '../packages/scan/package.json');
|
|
const scanPackage = JSON.parse(fs.readFileSync(scanPackagePath, 'utf8'));
|
|
|
|
// Bump patch version
|
|
const version = scanPackage.version.split('.');
|
|
version[2] = Number.parseInt(version[2]) + 1;
|
|
const newVersion = version.join('.');
|
|
|
|
// Update the version in package.json
|
|
scanPackage.version = newVersion;
|
|
|
|
// Write back to package.json
|
|
fs.writeFileSync(scanPackagePath, `${JSON.stringify(scanPackage, null, 2)}\n`);
|
|
|
|
// biome-ignore lint/suspicious/noConsole: Intended debug output
|
|
console.log(`Bumped version to ${newVersion}`);
|