pnpm / meta-updater

MIT License
54 stars 6 forks source link

feat: support user-defined formats #4

Closed ibezkrovnyi closed 2 years ago

ibezkrovnyi commented 2 years ago

resolves #1

simplified

{
    ".eslintrc [.json]": (content, options) => ...
}

explicit with 'files' property

{
  "files": {
    "package.json": (content, { dir, manifest, file, resolvedPath, _writeProjectManifest }) => ...
  }
}

with user-defined formats

{
  "files": {
    ".somefile [.csv]": () => ...
  },
  "formats": {
    ".csv": createFormat({ ... })
  }
}
zkochan commented 2 years ago

I am not sure why you have bumped the version in the PR. Now I released 0.2.0

ibezkrovnyi commented 2 years ago

I am not sure why you have bumped the version in the PR. Now I released 0.2.0

Apologize for the accident, I assume if there is no configured changesets in the package.json#scripts, version bump has to be done manually.