@freecodexyz/freecode 0.1.0 → 0.1.1
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.
- package/README.md +12 -0
- package/dist/index.js +1175 -1142
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -70,6 +70,11 @@ freecode doctor
|
|
|
70
70
|
|
|
71
71
|
Each origin is compiled into the build and may be overridden per run.
|
|
72
72
|
|
|
73
|
+
For the shared CloudFront deployment, set `FREECODE_API_ORIGIN` to
|
|
74
|
+
`https://<distribution>.cloudfront.net/api` and `FREECODE_WEB_ORIGIN` to
|
|
75
|
+
`https://<distribution>.cloudfront.net`. The installed CLI reads environment variables, not
|
|
76
|
+
the current directory's `.env`; `pnpm cli:publish` loads the root `.env` when building a release.
|
|
77
|
+
|
|
73
78
|
| Variable | What it points at |
|
|
74
79
|
| ----------------------- | ---------------------------------------------------- |
|
|
75
80
|
| `FREECODE_API_ORIGIN` | the FreeCode API |
|
|
@@ -82,6 +87,13 @@ Operations are recorded under `$XDG_STATE_HOME/freecode/operations` and each pla
|
|
|
82
87
|
written by atomic rename under a per-operation lock. They hold addresses, numeric identifiers, issue
|
|
83
88
|
numbers and commit hashes — never a credential of any kind.
|
|
84
89
|
|
|
90
|
+
## Publishing
|
|
91
|
+
|
|
92
|
+
Each release needs a new version in `apps/cli/package.json`. Source changes alone do not trigger
|
|
93
|
+
publication: `pnpm cli:publish` skips versions already on npm. From the repository root, bump the
|
|
94
|
+
version with `npm --prefix apps/cli version patch --no-git-tag-version`, commit the release changes,
|
|
95
|
+
then run `pnpm cli:publish`. Use `minor` or `major` instead of `patch` when appropriate.
|
|
96
|
+
|
|
85
97
|
## Shell completion
|
|
86
98
|
|
|
87
99
|
```sh
|