@nuasite/cli 0.17.0 → 0.17.2
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 +27 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,10 +32,36 @@ bunx nua build
|
|
|
32
32
|
}
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
`nua
|
|
35
|
+
`nua build` runs `astro build` with the default Nua configuration (currently the
|
|
36
36
|
agent summary integration) and surfaces errors with inline source excerpts so
|
|
37
37
|
you can diagnose failures quickly.
|
|
38
38
|
|
|
39
|
+
### `nua clean`
|
|
40
|
+
|
|
41
|
+
Ejects your project from the Nua toolchain back to a standard Astro setup:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
nua clean # interactive — previews changes, asks for confirmation
|
|
45
|
+
nua clean --dry-run # show what would change without writing files
|
|
46
|
+
nua clean --yes # skip confirmation prompt
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
This rewrites your Astro config and `package.json` so the project no longer
|
|
50
|
+
depends on `@nuasite/*` tooling packages. Specifically it:
|
|
51
|
+
|
|
52
|
+
- Replaces `@nuasite/nua` with explicit Astro integrations (`mdx`, `sitemap`,
|
|
53
|
+
`tailwindcss`)
|
|
54
|
+
- Removes `@nuasite/*` tooling dependencies and adds their standard Astro
|
|
55
|
+
equivalents
|
|
56
|
+
- Updates scripts (`nua build` → `astro build`, etc.)
|
|
57
|
+
- Keeps runtime packages (e.g. `@nuasite/components`) if your source files
|
|
58
|
+
import them
|
|
59
|
+
- Respects disabled features — if a feature is set to `false` in your Nua
|
|
60
|
+
config, it will be omitted from the ejected config
|
|
61
|
+
|
|
62
|
+
After running, follow the printed next-steps: `bun install`, review the
|
|
63
|
+
config, and remove any remaining `@nuasite` tooling imports from source files.
|
|
64
|
+
|
|
39
65
|
## Programmatic usage
|
|
40
66
|
|
|
41
67
|
You can also drive the builder yourself if you need to supply a custom inline
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuasite/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "bun run ../../scripts/workspace-deps/resolve-deps.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nuasite/agent-summary": "0.17.
|
|
26
|
+
"@nuasite/agent-summary": "0.17.2",
|
|
27
27
|
"astro": "^6.0.2",
|
|
28
28
|
"stacktracey": "2.1.8"
|
|
29
29
|
},
|