Skip to content

Clean up CLI package#44

Merged
jodeleeuw merged 3 commits into
mainfrom
cleanup/cli
May 27, 2026
Merged

Clean up CLI package#44
jodeleeuw merged 3 commits into
mainfrom
cleanup/cli

Conversation

@jodeleeuw
Copy link
Copy Markdown
Member

@jodeleeuw jodeleeuw commented May 27, 2026

Summary

  • Remove unused cli.ts entry point (duplicate of index.ts, not referenced in bin or exports)
  • Simplify build from 14 per-file esbuild scripts down to 2 bundled entry point builds
  • Remove unused fuzzy and inquirer dependencies
  • Use * version for @jspsych/metadata so npm resolves the local workspace package instead of pulling from the registry
  • Add TypeScript types to all untyped function parameters in data.ts and index.ts
  • Remove .js extensions from local imports (aligns with ES2020 module resolution used in the metadata package)
  • Remove unused saveTextToFile export

Test plan

  • npm run build passes in packages/cli
  • npm run build passes at root (all packages)
  • Verified @jspsych/metadata resolves as workspace symlink
  • Smoke test jspsych-metadata-cli interactive flow

🤖 Generated with Claude Code

cli.ts was a simpler duplicate of index.ts that nothing imported or
referenced in bin/exports. Removes the file and the 6 associated
build scripts (build:no-prompt:esm/cjs, data, data:abs, data:rec, options).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

⚠️ No Changeset found

Latest commit: d423c66

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

jodeleeuw and others added 2 commits May 27, 2026 12:14
Replaces 12 per-file build scripts with a single --bundle entry point
build for each format (ESM and CJS). esbuild resolves the module graph
from index.ts, so individual file builds are unnecessary.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Remove unused `fuzzy` and `inquirer` dependencies (only `@inquirer/prompts` is used)
- Change `@jspsych/metadata` dependency to `*` so npm resolves the local workspace package
- Remove unused `saveTextToFile` export from data.ts
- Add TypeScript types to all untyped function parameters
- Remove `.js` extensions from local imports

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jodeleeuw jodeleeuw changed the title Remove unused cli.ts entry point Clean up CLI package May 27, 2026
@jodeleeuw jodeleeuw merged commit 2637dfa into main May 27, 2026
2 checks passed
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.

1 participant