Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: use c12 loader configuration #4

Merged
merged 2 commits into from Mar 29, 2023
Merged

Conversation

KeJunMao
Copy link

@KeJunMao KeJunMao commented Feb 24, 2023

Description

Configuration is loaded by unjs/c12 from cwd. We can use either bump.config.json, bump.config.{ts,js,mjs,cjs}, .bumprc.

Linked Issues

Additional context

I have a need to realize

  • Automatic bump
  • Changelog generation
  • Build project
  • Compact dist to zip
  • console a log of this change

Now, I use a series of scripts to implement, and I can't get the next version number and the previous version number in preversion or postversion

eg:

    "changelog": "changelogen --output > node_modules/.CHANGELOG",
    "zip": "zzip --name=format:dist-%cd.%tag ",
    "cat": "cat node_modules/.CHANGELOG",
    "preversion": "pnpm changelog",
    "release": "bumpp --all",
    "postversion": "pnpm build && pnpm zip && pnpm cat"

If we can loader configuration file, things will be much easier

谢谢你,偶像:)

@so1ve
Copy link

so1ve commented Mar 28, 2023

@antfu Sorry for disturbing and commenting in the wrong place... But can you enable issues on this repo? It seemed that issues are not enabled in fork repos by default.

@antfu antfu merged commit fd66bd7 into antfu-collective:main Mar 29, 2023
@renovate renovate bot mentioned this pull request Apr 4, 2023
1 task
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.

None yet

3 participants