github 0xGF/boneyard v1.7.8
v1.7.8 — CLI --version, Windows route fix, explicit routes config

latest releases: v1.8.1, v1.8.0, v1.7.9...
2 months ago

Features

`--version` / `-v` flag (#64)

```sh
$ npx boneyard-js --version
boneyard-js 1.7.8
```

Explicit routes in `boneyard.config.json` (#66)

Universal escape hatch for pages that aren't reachable by link crawling — Angular `loadChildren` lazy modules, auth-gated pages, custom routers. List them explicitly:

```json
{
"routes": ["/dashboard", "/home/some-route"]
}
```

Accepts plain paths or same-origin full URLs. Merged into the crawl queue alongside filesystem discovery.

Fixes

Filesystem route discovery on Windows (#65)

`path.dirname` and `path.join` return backslash-separated paths on Windows, breaking the group-stripping regex and every other string op in `discoverRoutes()`. A SvelteKit repro showed `(protected)/(app)/(admin_devs)/test_page` staying unchanged — the CLI was crawling `/(protected)/(app)/(admin_devs)/test_page` and the dev server 404'd.

Added a `toUrlPath()` helper that normalizes separators via `split(/[\\/]+/).join('/')` and applied it to every `dirName` and walked file across all 5 framework branches (Next App, Next Pages, SvelteKit, Nuxt, Remix).

Install

```bash
npm install boneyard-js@1.7.8
```

Full changelog

v1.7.7...v1.7.8

Don't miss a new boneyard release

NewReleases is sending notifications on new releases.