@bjesuiter/codex-switcher 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +8 -0
  2. package/cdx.mjs +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -106,6 +106,14 @@ bun install
106
106
  bun link
107
107
  ```
108
108
 
109
+ ### Releasing a new version
110
+
111
+ 1. Increase version in `package.json`
112
+ 2. Add changelog entry for the version in `CHANGELOG.md`
113
+ 3. Commit the changes
114
+ 4. Create a git tag with the version number (no prefix): `git tag X.Y.Z`
115
+ 5. Push both the commit and the tag: `git push && git push --tags`
116
+
109
117
  ### Manual Configuration (Advanced)
110
118
 
111
119
  You can also manually add accounts to Keychain:
package/cdx.mjs CHANGED
@@ -704,7 +704,7 @@ const createProgram = (deps = {}) => {
704
704
  const main = async () => {
705
705
  await createProgram().parseAsync(process.argv);
706
706
  };
707
- main().catch((error) => {
707
+ if (import.meta.main) main().catch((error) => {
708
708
  const message = error instanceof Error ? error.message : String(error);
709
709
  process.stderr.write(`${message}\n`);
710
710
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bjesuiter/codex-switcher",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "CLI tool to switch between multiple OpenAI accounts for OpenCode",
6
6
  "bin": {