lume / lume/cli

write the project's version to a version.ts file, and only if it exists

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

At the moment `lume release*` command try to write the project version to the last line of `src/index.ts`, and it will fail if `src/index.ts` does not have this line.

This should be optional, and should be opted-into by making a `src/version.ts` file whose whole contents will be replaced. The initial file can be empty,to be populated by `lime` cli.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation of the `lume release*` commands and the existing logic that writes to `src/index.ts`. Verify how the command detects `src/version.ts`, then ensure only that file is replaced when it exists and that projects without it no longer fail; confirm the release flow still completes in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.