webjsdev 0.1.0 → 0.8.5

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 CHANGED
@@ -1,22 +1,16 @@
1
1
  # webjsdev
2
2
 
3
- The [webjs](https://webjs.dev) CLI, published unscoped on npm. Installs three commands from one package: the canonical `webjs`, the short `wjs`, and the package-name `webjsdev` itself, all pointing at the same script.
3
+ The [webjs](https://webjs.dev) CLI under an unscoped npm name. Lets you `npm i -g webjsdev` (no scope prefix) and get the canonical `webjs` command on PATH.
4
4
 
5
5
  ```sh
6
- # one-shot via npx
7
- npx webjsdev create my-app
8
- cd my-app && npm run dev
9
-
10
- # or globally install once, get all three commands on PATH
11
6
  npm i -g webjsdev
12
- webjs dev # canonical, matches docs / scaffold scripts
13
- wjs dev # short alias, identical behavior
14
- webjsdev dev # full package-name form, identical behavior
7
+ webjs create my-app
8
+ cd my-app && npm run dev
15
9
  ```
16
10
 
17
- `webjsdev` exists because `@webjsdev/cli` is scoped, which means it can't power `npx <shortname>` without typing the scope. Publishing this thin unscoped shim gives users a `npx`-discoverable entry point for the CLI without changing the canonical scoped package they install long-term.
11
+ `webjsdev` is a thin one-line re-export of [`@webjsdev/cli`](https://www.npmjs.com/package/@webjsdev/cli)'s entry script. Either package installs the same `webjs` binary; the choice is purely about whether you'd rather type the scope or not.
18
12
 
19
- The full set of subcommands (`dev`, `start`, `create`, `test`, `check`, `db`, `ui`) lives in [`@webjsdev/cli`](https://www.npmjs.com/package/@webjsdev/cli), which `webjsdev` depends on. `webjsdev`'s entry script is a one-line re-export of `@webjsdev/cli/bin/webjs.js`, so all three command names run the same script with no behavior drift.
13
+ The full set of subcommands (`dev`, `start`, `create`, `test`, `check`, `db`, `ui`) lives in `@webjsdev/cli`. See its README for the surface.
20
14
 
21
15
  ## License
22
16
 
package/bin/webjsdev.js CHANGED
@@ -1,16 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * `wjs`: short alias for the `@webjsdev/cli` `webjs` binary.
3
+ * `webjsdev` is the unscoped npm name for `@webjsdev/cli`. Both packages
4
+ * ship the same `webjs` binary; this file is a one-line ESM re-export
5
+ * of the canonical CLI entry script, so behaviour matches exactly.
4
6
  *
5
- * npx wjs create my-app
6
- * npx wjs dev
7
- * npx wjs start
8
- * npx wjs check
9
- * npx wjs db migrate init
7
+ * npm i -g webjsdev && webjs create my-app
10
8
  *
11
9
  * The CLI's entry script reads `process.argv` and runs at module load,
12
- * so importing it transparently dispatches the same command. No argv
13
- * manipulation, no spawn overhead, no behaviour drift between
14
- * `webjs <cmd>` and `wjs <cmd>`.
10
+ * so the import below transparently dispatches the same command. No
11
+ * argv manipulation, no spawn overhead.
15
12
  */
16
13
  await import('@webjsdev/cli/bin/webjs.js');
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "webjsdev",
3
- "version": "0.1.0",
3
+ "version": "0.8.5",
4
4
  "type": "module",
5
- "description": "The webjs CLI, published unscoped. Installs the `webjs`, `wjs`, and `webjsdev` commands.",
5
+ "description": "The webjs CLI, published unscoped on npm. Unscoped alias for @webjsdev/cli. Installs the `webjs` command.",
6
6
  "bin": {
7
- "webjsdev": "bin/webjsdev.js",
8
- "webjs": "bin/webjsdev.js",
9
- "wjs": "bin/webjsdev.js"
7
+ "webjs": "bin/webjsdev.js"
10
8
  },
11
9
  "files": [
12
10
  "bin",
13
11
  "README.md"
14
12
  ],
15
13
  "dependencies": {
16
- "@webjsdev/cli": "^0.8.2"
14
+ "@webjsdev/cli": "^0.8.5"
17
15
  },
18
16
  "publishConfig": {
19
17
  "access": "public"
@@ -30,7 +28,7 @@
30
28
  "webjs",
31
29
  "cli",
32
30
  "alias",
33
- "shorthand"
31
+ "unscoped"
34
32
  ],
35
33
  "engines": {
36
34
  "node": ">=24.0.0"