Skip to content

Conversation

@SBoudrias
Copy link
Owner

No description provided.

@SBoudrias SBoudrias force-pushed the chore/bye-tshy branch 3 times, most recently from f5c398b to b9f14c4 Compare October 20, 2025 20:43
@SBoudrias SBoudrias force-pushed the next-major branch 3 times, most recently from 3d858c7 to 71c9cb1 Compare October 25, 2025 19:33
@SBoudrias SBoudrias force-pushed the chore/bye-tshy branch 3 times, most recently from 98172bd to d972f45 Compare October 25, 2025 20:16
Remove tshy references from:
- .gitignore (tshy directories and build files)
- .prettierignore (tshy directory)
- turbo.json (tshy input pattern)

Also updates yarn cache after dependency changes.
Changes:
- Fixed TypeScript errors by removing examples from root tsconfig
- Re-added isolatedDeclarations to ansi, external-editor, figures, and type packages
- Updated tools/setup-packages.ts to handle all workspace packages (internals/)
- Added bin field handling in publishConfig for packages with CLI binaries
- Fixed TypeScript type errors in tools/setup-packages.ts
- Re-added .tshy to .gitignore as legacy build artifacts

Addresses PR #1856 review comments.
- Don't set author, license, repository, keywords, homepage for private packages
- Don't set publishConfig for private packages
- Updated tools/setup-packages.ts to check private flag and conditionally set/remove fields
Remove @arethetypeswrong/cli dependency and attw scripts from all packages
as they're no longer needed with the tshy removal. Create separate tsconfig
for examples directory to enable ESLint parsing without TypeScript
compilation errors (examples depend on built package, not source files).
The previous commit re-added examples to the root tsconfig.json which
caused TypeScript compilation errors. Examples should use their own
separate tsconfig files and not be checked by the root compilation.

Changes:
- Remove **/examples/**/* from root tsconfig.json include array
- Add tsconfig.json for packages/external-editor/examples/
- This allows ESLint to parse example files without TypeScript errors

The examples remain as-is with their 'as const' type assertions.
pkg.scripts = pkg.scripts ?? {};
pkg.scripts['tsc'] = 'tshy';
pkg.scripts ??= {};
pkg.scripts['tsc'] = 'tsc -p tsconfig.json';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll also need here to think about adding chmod +x <bin> after the compilation when there's bin defined in the package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants