fougere 0.2.0-alpha.2 → 0.4.0-alpha.0

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 +1 -1
  2. package/package.json +4 -3
  3. package/src/bin.ts +12 -0
package/README.md CHANGED
@@ -12,4 +12,4 @@ npx fougere check # read the model, report what a split would break
12
12
  Same binary as [`@fougere/cli`](https://www.npmjs.com/package/@fougere/cli) — this
13
13
  package holds no code, only the name. Install either one.
14
14
 
15
- **[Documentation →](https://chok.github.io/fougere/)**
15
+ **[Documentation →](https://fougere.dev/)**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fougere",
3
- "version": "0.2.0-alpha.2",
3
+ "version": "0.4.0-alpha.0",
4
4
  "description": "The Fougere CLI, under its unscoped name — compose a workspace, serve a frond, call an operation.",
5
5
  "keywords": [
6
6
  "fougere",
@@ -22,10 +22,11 @@
22
22
  "fougere": "dist/bin.js"
23
23
  },
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "src"
26
27
  ],
27
28
  "dependencies": {
28
- "@fougere/cli": "0.2.0-alpha.2"
29
+ "@fougere/cli": "0.4.0-alpha.0"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "public"
package/src/bin.ts ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * `fougere` — the CLI under its unscoped name.
4
+ *
5
+ * It holds nothing. `@fougere/cli` already installs a `fougere` binary; this
6
+ * package exists so that `npx fougere` and `npm i -g fougere` reach it, because
7
+ * an unscoped name is first-come-first-served and a scope does not reserve it.
8
+ *
9
+ * Importing the bin runs it — it is a script, not a module with an entry point,
10
+ * and `argv` travels untouched.
11
+ */
12
+ import '@fougere/cli/bin';