In-app is the default. Each plugin gets its own folder under plugins/
(or --folder), so it can be exported as a package later, and the
factory is registered in createApp({ plugins }). A plugins value that
is not an array literal is left alone with a hint, as modules already
is.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The directory must be empty, so a package never mixes into another
project. JSR is the default and the README says why; JSR + npm adds an
ESM-only tsc build, since npm consumers need compiled output, and
suggests the green-tea- name without enforcing it.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
beta.2 made serveDeno and serveBun boot the app before they bind. The
starters called Deno.serve and Bun.serve with app.fetch directly, so a
provider that failed left an open port answering 500 to everything.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
With a package.json beside deno.json, Deno expects node_modules to be
installed, so deno test failed until a deno install, and then failed
to type-check node:assert without @types/node. nodeModulesDir "auto"
installs on demand, and the package now passes deno test, node --test
and bun test as generated.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
`delete`, `class` or `default` made `export function delete(...)`, which
is not TypeScript. `create app` and `app` made a factory named after
something the entry already binds, so the import broke src/app.ts, and
the command still reported the wiring as a success. Both are now
refused before anything is written.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The collision check scanned the whole file as text, so every scaffolded
app refused `core`, `tea` or `module` because they appear inside import
strings. It now reads identifiers from the parse tree.
Typing `npm` at the registry question silently produced a JSR-only
package. An answer that is not offered is now asked again.
The generated test only awaited boot(); it now checks the plugin's token
is in app.graph(), and fails if it is not. engines.node moves to
>=22.18, the first Node that runs `node --test` on .ts unflagged.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
- `--package` takes a directory only as `--package=DIR`, so
`create plugin --package algo` names the plugin instead of writing
into ./algo.
- A NAME passed on the command line is checked before any question.
- The package directory is named in its errors, a file there is
reported as a file, and a failed write lists what was already written.
- An in-app plugin folder is removed again if the entry cannot be
written, so the rerun does not stop on "already exists".
- `--folder .` and `./plugins/` give clean import paths.
- Flags for the other mode are named as ignored; plugin flags on
another create kind are an error.
- Array elements are read from the parse tree, so `algo({ a, b })` is
one element when checking for a duplicate.
- Scopes follow JSR's rule: 2 to 20 characters, no leading hyphen.
- Packages ship a LICENSE (MIT, which the README says to change), the
license field in both manifests, and @types/node for the test file.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
CI runs as root, which ignores a 0444 mode, so the entry write never
fails there and there is nothing to roll back. The test now says it
skipped instead of failing on a write that worked.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Promotes develop to main, fast-forward only, so main becomes an exact copy of develop. The v26.9.0-beta.1 tag is cut afterwards, on main.
In-app is the default. Each plugin gets its own folder under plugins/ (or --folder), so it can be exported as a package later, and the factory is registered in createApp({ plugins }). A plugins value that is not an array literal is left alone with a hint, as modules already is. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>- `--package` takes a directory only as `--package=DIR`, so `create plugin --package algo` names the plugin instead of writing into ./algo. - A NAME passed on the command line is checked before any question. - The package directory is named in its errors, a file there is reported as a file, and a failed write lists what was already written. - An in-app plugin folder is removed again if the entry cannot be written, so the rerun does not stop on "already exists". - `--folder .` and `./plugins/` give clean import paths. - Flags for the other mode are named as ignored; plugin flags on another create kind are an error. - Array elements are read from the parse tree, so `algo({ a, b })` is one element when checking for a duplicate. - Scopes follow JSR's rule: 2 to 20 characters, no leading hyphen. - Packages ship a LICENSE (MIT, which the README says to change), the license field in both manifests, and @types/node for the test file. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>