ssqch 0.10.0 → 0.10.1

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 (60) hide show
  1. package/bundled/completions/bash +1 -1
  2. package/bundled/completions/elvish +1 -0
  3. package/bundled/completions/fish +1 -0
  4. package/bundled/completions/powershell +1 -0
  5. package/bundled/completions/zsh +1 -0
  6. package/bundled/docs/agents.md +1 -1
  7. package/bundled/docs/build-summary.md +31 -1
  8. package/bundled/docs/configuring.md +1 -1
  9. package/bundled/docs/netlify.md +2 -2
  10. package/bundled/ssqch.d.ts +7 -2
  11. package/lib/assets.js +10 -12
  12. package/lib/{chunk-HDQ4SRWM.js → chunk-26SHWRC6.js} +6 -8
  13. package/lib/{chunk-2LEOPLTZ.js → chunk-3BQJY6GF.js} +3 -5
  14. package/lib/{chunk-JXZT5L7W.js → chunk-3LODFCCH.js} +2 -3
  15. package/lib/{chunk-7HXCQEGA.js → chunk-3NDFUMV2.js} +3 -3
  16. package/lib/{chunk-Y2ESFAAD.js → chunk-6OUT5VFK.js} +2 -4
  17. package/lib/{chunk-HXCLCXRT.js → chunk-6RSZV5O2.js} +5 -3
  18. package/lib/{chunk-4Q6WMTER.js → chunk-7JGYYAKI.js} +1 -1
  19. package/lib/{chunk-LAV3DEY4.js → chunk-BT3NVQOD.js} +1 -1
  20. package/lib/{chunk-DDV6JEC2.js → chunk-BXARVN5Z.js} +1 -1
  21. package/lib/{chunk-RVBNVGZV.js → chunk-CXRHH5P5.js} +5 -6
  22. package/lib/{chunk-NFJJKDRI.js → chunk-DNWA7WNO.js} +1 -1
  23. package/lib/{chunk-E5UB2YY7.js → chunk-DTSTCVRX.js} +8 -9
  24. package/lib/{chunk-HGJ5VWUR.js → chunk-DUGGZ4EE.js} +1 -1
  25. package/lib/{chunk-LCPSKHAV.js → chunk-ERNVEZOK.js} +1 -1
  26. package/lib/{chunk-CB6YFUXU.js → chunk-FYRC2HBU.js} +4 -6
  27. package/lib/{chunk-DW7VMJEZ.js → chunk-FYU22VDK.js} +12 -13
  28. package/lib/{chunk-N4O5MDIB.js → chunk-FZGJUJAL.js} +5 -7
  29. package/lib/{chunk-RKFZSVNF.js → chunk-G67W2FTJ.js} +9 -11
  30. package/lib/{chunk-DMVJ53SM.js → chunk-HMVYNV6M.js} +13 -15
  31. package/lib/{chunk-SRNLKWXL.js → chunk-HNG372DW.js} +91 -47
  32. package/lib/{chunk-ZM6TU2JB.js → chunk-II7ZRIAC.js} +11 -13
  33. package/lib/{chunk-5DNDSNTP.js → chunk-IOXCGMSF.js} +5 -7
  34. package/lib/{chunk-BGCBSQ4A.js → chunk-JFPLNHEQ.js} +136 -25
  35. package/lib/{chunk-NUUEOGLZ.js → chunk-LU73FTIR.js} +10 -11
  36. package/lib/{chunk-EEJDLCD3.js → chunk-LYPKL524.js} +9 -10
  37. package/lib/{chunk-NKXEPHRZ.js → chunk-MDB3D3LP.js} +106 -4
  38. package/lib/{chunk-SA5KSJ4Y.js → chunk-MDG5A4NI.js} +10 -12
  39. package/lib/{chunk-3HHRKG33.js → chunk-MUYWL4ZX.js} +11 -12
  40. package/lib/{chunk-QMA7CK7B.js → chunk-P2TRR6XK.js} +59 -23
  41. package/lib/{chunk-RJFWTW2Y.js → chunk-R2YGC3VE.js} +2 -3
  42. package/lib/{chunk-JWCCVTTR.js → chunk-RFNLZM7W.js} +2 -4
  43. package/lib/{chunk-3EPHKJEG.js → chunk-X7C6GFUM.js} +4 -4
  44. package/lib/{chunk-RM5Q3KFB.js → chunk-XR7GFL4B.js} +12 -13
  45. package/lib/{chunk-Q4LFTYK2.js → chunk-ZZBHBLDB.js} +16 -18
  46. package/lib/cli.js +25 -25
  47. package/lib/elements.js +10 -12
  48. package/lib/image.js +10 -11
  49. package/lib/links.js +10 -12
  50. package/lib/minify.js +9 -10
  51. package/lib/redirects.js +10 -12
  52. package/lib/rss.js +10 -11
  53. package/lib/sass.js +10 -12
  54. package/lib/sitemap.js +10 -12
  55. package/lib/ssqch.js +4 -5
  56. package/package.json +1 -1
  57. package/types/index.d.ts +7 -2
  58. package/lib/chunk-VJWQSYEG.js +0 -119
  59. /package/lib/{chunk-SRNLKWXL.js.LEGAL.txt → chunk-HNG372DW.js.LEGAL.txt} +0 -0
  60. /package/lib/{chunk-BGCBSQ4A.js.LEGAL.txt → chunk-JFPLNHEQ.js.LEGAL.txt} +0 -0
@@ -135,7 +135,7 @@ _ssqch() {
135
135
  return 0
136
136
  ;;
137
137
  ssqch__subcmd__build)
138
- opts="-o -q -v -h --format --root --output --base --offline --env --quiet --verbose --help"
138
+ opts="-o -q -v -h --format --profile --root --output --base --offline --env --quiet --verbose --help"
139
139
  if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
140
140
  COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
141
141
  return 0
@@ -54,6 +54,7 @@ set edit:completion:arg-completer[ssqch] = {|@words|
54
54
  cand --base 'Serve the site under a path, like /repo/ (overrides the config''s `base`)'
55
55
  cand --env 'development or production (default: $SSQCH_ENV, $NODE_ENV, then production for `build` and development for `serve`)'
56
56
  cand --offline 'Don''t use the network: `fetch()` answers from the copies its `cache` option saved'
57
+ cand --profile 'Also time every page, template, layout, engine, filter, transform, data file, collection and hook, and list the slowest'
57
58
  cand -q 'Print only warnings and errors'
58
59
  cand --quiet 'Print only warnings and errors'
59
60
  cand -v 'Also list the slowest images to encode'
@@ -52,6 +52,7 @@ complete -c ssqch -n "__fish_ssqch_using_subcommand build" -s o -l output -d 'Ov
52
52
  complete -c ssqch -n "__fish_ssqch_using_subcommand build" -l base -d 'Serve the site under a path, like /repo/ (overrides the config\'s `base`)' -r
53
53
  complete -c ssqch -n "__fish_ssqch_using_subcommand build" -l env -d 'development or production (default: $SSQCH_ENV, $NODE_ENV, then production for `build` and development for `serve`)' -r
54
54
  complete -c ssqch -n "__fish_ssqch_using_subcommand build" -l offline -d 'Don\'t use the network: `fetch()` answers from the copies its `cache` option saved'
55
+ complete -c ssqch -n "__fish_ssqch_using_subcommand build" -l profile -d 'Also time every page, template, layout, engine, filter, transform, data file, collection and hook, and list the slowest'
55
56
  complete -c ssqch -n "__fish_ssqch_using_subcommand build" -s q -l quiet -d 'Print only warnings and errors'
56
57
  complete -c ssqch -n "__fish_ssqch_using_subcommand build" -s v -l verbose -d 'Also list the slowest images to encode'
57
58
  complete -c ssqch -n "__fish_ssqch_using_subcommand build" -s h -l help -d 'Print help'
@@ -58,6 +58,7 @@ Register-ArgumentCompleter -Native -CommandName 'ssqch' -ScriptBlock {
58
58
  [CompletionResult]::new('--base', '--base', [CompletionResultType]::ParameterName, 'Serve the site under a path, like /repo/ (overrides the config''s `base`)')
59
59
  [CompletionResult]::new('--env', '--env', [CompletionResultType]::ParameterName, 'development or production (default: $SSQCH_ENV, $NODE_ENV, then production for `build` and development for `serve`)')
60
60
  [CompletionResult]::new('--offline', '--offline', [CompletionResultType]::ParameterName, 'Don''t use the network: `fetch()` answers from the copies its `cache` option saved')
61
+ [CompletionResult]::new('--profile', '--profile', [CompletionResultType]::ParameterName, 'Also time every page, template, layout, engine, filter, transform, data file, collection and hook, and list the slowest')
61
62
  [CompletionResult]::new('-q', '-q', [CompletionResultType]::ParameterName, 'Print only warnings and errors')
62
63
  [CompletionResult]::new('--quiet', '--quiet', [CompletionResultType]::ParameterName, 'Print only warnings and errors')
63
64
  [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'Also list the slowest images to encode')
@@ -47,6 +47,7 @@ _arguments "${_arguments_options[@]}" : \
47
47
  '--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
48
48
  '--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
49
49
  '--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
50
+ '--profile[Also time every page, template, layout, engine, filter, transform, data file, collection and hook, and list the slowest]' \
50
51
  '-q[Print only warnings and errors]' \
51
52
  '--quiet[Print only warnings and errors]' \
52
53
  '-v[Also list the slowest images to encode]' \
@@ -37,7 +37,7 @@ ssqch build --format json
37
37
 
38
38
  - **Each warning and error** has a `code` and the `message` a person would have read. `file` (from the project root) is there when the problem is in a file that exists, `line` when the line is known, `field` for a [schema](content-schemas.md) problem, and `url` for a problem in a written page, like a broken link.
39
39
  - **`line` is a line of the file.** Template languages count from the end of the front matter, which is the number in the message (`index.edge:4`); the report adds the front matter back (`"line": 7`).
40
- - **The codes:** `config`, `data`, `front-matter`, `template`, `schema`, `conflict` (two pages write the same file), `links`, `images`, `assets`, `fetch`, `passthrough`, `last-modified`, `hook`, `console` (`console.warn` in a config), `template-formats` (files in a template language the site doesn't list), `other-generator`, `foreign-key` and `foreign-global` (another generator's config, front matter or template data), `over-budget` (a [footprint budget](footprint.md)), `missing-asset` (from `ssqch serve`), and `build` for anything else.
40
+ - **The codes:** `config`, `data`, `front-matter`, `template`, `schema`, `conflict` (two pages write the same file), `links`, `images`, `assets`, `fetch`, `passthrough`, `last-modified`, `hook`, `console` (`console.warn` in a config), `template-formats` (files in a template language the site doesn't list), `other-generator`, `foreign-key` and `foreign-global` (another generator's config, front matter or template data), `over-budget` (a [footprint budget](footprint.md)), `slow-call` (a filter, transform or collection of the site's that took a second or more in one call: [Where the time went](build-summary.md#where-the-time-went)), `missing-asset` (from `ssqch serve`), and `build` for anything else.
41
41
  - **A build that works** also has `durationMs`, `pages` (`written`, `templates`, `bytes`, and `new` and `gone` since the last build to that folder, or `null` when there wasn't one), `copied`, `removed`, `drafts` (the `draft: true` pages a production build left out), `written` (each page's file, from the output folder), `summary` (the lines plugins add to the [build summary](build-summary.md)) and `timings`.
42
42
  - **Standard output is only the report.** The lines a person would have read (`[ssqch] Writing ...`), `console.log` from your config and the output of `beforeBuild` commands go to standard error; `--quiet` leaves the progress lines out.
43
43
 
@@ -18,10 +18,40 @@ Built in 110 ms (production)
18
18
  - **Drafts** is in production builds that left `draft: true` pages out: `Drafts 3 unconfirmed (built in development only)`, or `3 left out` when the report's themed line is another one.
19
19
  - **Removed** is the stale files `leaveNoTrace` deleted: `Removed 2 stale files, left no trace`, or just `2 stale files`.
20
20
  - **One themed line at most:** a report says one thing in the ranger's voice, the one that matters most (in this order: nothing to build, a first build, files removed, drafts, unused templates), and says the rest plainly.
21
- - **Images** counts the image files this build used, the source images they came from, and how many had to be encoded. With `prune` on, it also says how many stale files it deleted.
21
+ - **Images** counts the image files this build used, the source images they came from, how many had to be encoded, and how many were copied as they are (GIFs that keep their animation, and SVGs), when there are some. With `prune` on, it also says how many stale files it deleted.
22
22
  - **Output** is everything in the output folder, including files left from earlier builds.
23
23
  - **Time** splits the build into phases. `write` includes layouts, transforms and image encoding, so a build that encodes images spends most of its time there. `after` is the `afterBuild` hooks.
24
24
 
25
25
  With `--verbose`, a line under the summary names the templates in the includes folder that nothing used as a layout, an include or a component in this build: `Uninhabited: 1 template that nothing used in this build (src/_includes/cabin.jinja).` (`Unused:` when the report's themed line is another one.) It covers every template language: Jinja, Nunjucks, Edge, Liquid, Handlebars, Mustache and EJS.
26
26
 
27
27
  `ssqch serve` prints the same summary after every rebuild.
28
+
29
+ ## Where the time went
30
+
31
+ `Time` says which phase was slow, not what in it. `ssqch build --profile` times everything the build calls, and lists the slowest of each kind after the summary. Here's part of the ReverentGeek blog's, a development build:
32
+
33
+ ```text
34
+ Profile: where the time went, slowest first (a call's time includes the calls it makes)
35
+ Pages
36
+ 233 ms /avatars/
37
+ 71.4 ms /illustrations/
38
+ ...and 174 more (--format json lists them all)
39
+ Template engines (renders)
40
+ 152 ms edge (692)
41
+ 17.8 ms md (128)
42
+ Filters (calls)
43
+ 45.1 ms imageUrl (357)
44
+ 21.3 ms postDate (819)
45
+ ...
46
+ Transforms (pages)
47
+ 1.42 s image (176)
48
+ 142 µs assets (176)
49
+ ```
50
+
51
+ - **The kinds:** pages (by URL), templates (each with its pages), layouts, template engines, filters (yours and ssqch's), transforms, data files and data functions, collections, and `beforeBuild` and `afterBuild` hooks. Each lists the ten that took the most time in total, with how many calls (or pages, or renders) that was.
52
+ - **A call's time includes the calls it makes**, from the moment it starts until it returns, or until its promise settles. A template engine's time has its filters' in it, and a page's has its layouts' and transforms'.
53
+ - **`async`** marks a function with a call that returned a promise (`htmlToAbsoluteUrls (65, async)`). It's timed until the promise settles, and calls that ran at the same time overlap, so its total can add up to more than the build took: look at the others first.
54
+ - **`--format json`** has every one, under `profile`: `pages`, `templates`, `layouts`, `engines`, `filters`, `transforms`, `data`, `collections` and `hooks`, each a list of `{ "name", "calls", "ms", "async" }`, slowest first. A build without `--profile` has no `profile`.
55
+ - **What it costs:** a little time per call, for the timing itself. Leave it off for the builds you ship.
56
+
57
+ Without `--profile`, a build still times your own filters, transforms and collections (not ssqch's), one call at a time, because they run for every page: a second each is minutes on a big site. One that takes a second or more is a `slow-call` warning at the end of the build, with where the function came from and the first page it was slow on: `transform \`squeeze\` (from ssqch.config.js) took 1.1 s working on src/b.md, the first of 2 calls that took over a second`. Data functions and hooks run once a build, and a slow one (a `fetch`, Pagefind) is often the point, so they're no warning; `--profile` times them.
@@ -55,7 +55,7 @@ The default export is the config: an object, or a function (sync or async) that
55
55
  | `data` | `{ name: value }` for every template. A value that's a function (sync or async) is called on each build, and what it answers is that name's value: `data: { snacks: async () => fetchSnacks() }`. |
56
56
  | `collections` | `{ name: (pages) => ... }`. `pages` has `all()`, `byTag(tag)`, `byTags(...tags)` and `byGlob(glob or globs)`, oldest first. |
57
57
  | `transforms` | `{ name: (content, page) => content }`, run on every output file. `page` has `url`, `inputPath` and `outputPath`. Return the content, changed or not. Async works. |
58
- | `engines` | Template engines of your own: `{ extension: (source, data) => html }`, or an object with a `render(source, data)` method (async is fine). Add the extension to `templateFormats` to render those files; layouts in that extension work too, and `markdownEngine` can name one. `edge`, `md`, `html` and `txt` can't be replaced. |
58
+ | `engines` | Template engines of your own: `{ extension: (source, data, context) => html }`, or an object with a `render(source, data, context)` method (async is fine). `context` says what's being rendered: `{ kind, path }`, where `kind` is `"body"` (a page), `"layout"`, `"hook"` (a Markdown render hook), `"permalink"` or `"computed"`, and `path` is the file as `page.inputPath` names it (`./src/posts/pine.md`). Add the extension to `templateFormats` to render those files; layouts in that extension work too, and `markdownEngine` can name one. A page's `permalink` and `computed` strings never go through an engine of your own (it's usually a Markdown renderer): they render with the first of ssqch's template languages in the page's chain, then the `markdownEngine`, then Edge. `edge`, `md`, `html` and `txt` can't be replaced. |
59
59
  | `ignore` | Globs, relative to the input folder, of files that aren't pages: `["drafts/**", "**/README.md"]`. Folders starting with `.`, `node_modules` and a folder Bundler installed gems into (`vendor/bundle`, with `ruby/<version>/gems/` inside) are skipped without it. |
60
60
  | `bundles` | Page bundles: a folder whose page is `index.md` (or any `index.*` template) gets its other files, like photos and downloads, copied next to the page, so `![](photo.jpg)` just works. Subfolders with templates of their own, and data files, are left out (default `false`). |
61
61
  | `strict` | Printing an undefined value (`{{ titel }}`) is an error that names the template and line, in every template language. Conditionals and defaults (`@if(subtitle)`, `{% if subtitle %}`, `x ?? "none"`) still work (default `false`). |
@@ -18,11 +18,11 @@ Netlify can build the site itself, with no deploy token to manage. With `ssqch`
18
18
  paths = [".cache/ssqch"]
19
19
  ```
20
20
 
21
- - **The `ssqch` dev dependency** pins the version, so a new SiteSquatch release can't surprise a deploy. Pin it exactly (`pnpm add -D ssqch@0.10.0`) and bump it when you're ready.
21
+ - **The `ssqch` dev dependency** pins the version, so a new SiteSquatch release can't surprise a deploy. Pin it exactly (`pnpm add -D ssqch@0.10.1`) and bump it when you're ready.
22
22
  - **`NODE_VERSION`** is the Node that runs the build: anything from 22.18 on. ssqch builds the same bytes on every supported Node, so pick the one your other build tools like.
23
23
  - **[`netlify-plugin-cache`](https://github.com/jakejarvis/netlify-plugin-cache)** carries `.cache/ssqch` (the encoded images and their hashes, highlighted code, and any `fetch` copies) over to the next build. Add it to your `devDependencies`.
24
24
 
25
- A site without a `package.json` can run a pinned release straight from npm in the build command, with `SSQCH_VERSION = "0.10.0"` under `[build.environment]` to pin it (and `NODE_VERSION` there as well):
25
+ A site without a `package.json` can run a pinned release straight from npm in the build command, with `SSQCH_VERSION = "0.10.1"` under `[build.environment]` to pin it (and `NODE_VERSION` there as well):
26
26
 
27
27
  ```toml
28
28
  [build]
@@ -136,8 +136,13 @@ declare module "ssqch" {
136
136
  type MaybePromise<T> = T | Promise<T>;
137
137
  /** A function, or `{ run: "command" }` to run a program in the project root (through `sh -c`, or `cmd /C` on Windows). It gets `SSQCH_ENV`, `SSQCH_SERVING`, `SSQCH_QUIET`, `SSQCH_INPUT` and `SSQCH_OUTPUT`; a failure fails the build. */
138
138
  type Hook = ((event: BuildEvent) => MaybePromise<void>) | { run: string };
139
- /** Renders a template's body (front matter removed) with the page's data. */
140
- type EngineRender = (source: string, data: Record<string, any>) => MaybePromise<string>;
139
+ /** What a site's own engine is rendering, its third argument: a page's body, a layout, a Markdown render hook, or a page's `permalink` or `computed` string; and the file, as `page.inputPath` names it (`./src/posts/pine.md`). */
140
+ interface EngineContext {
141
+ kind: "body" | "layout" | "hook" | "permalink" | "computed";
142
+ path: string;
143
+ }
144
+ /** Renders a template's body (front matter removed) with the page's data. The third argument says what's being rendered. */
145
+ type EngineRender = (source: string, data: Record<string, any>, context: EngineContext) => MaybePromise<string>;
141
146
 
142
147
  /**
143
148
  * A field's type: `"string"`, `"number"`, `"integer"`, `"boolean"`, `"date"`, `"file"` (a path to a file that exists), `"object"`, `"array"` or `"any"`;
package/lib/assets.js CHANGED
@@ -2,30 +2,28 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  Options
5
- } from "./chunk-HGJ5VWUR.js";
5
+ } from "./chunk-DUGGZ4EE.js";
6
6
  import {
7
7
  BUILTINS,
8
8
  blake3Hex,
9
9
  rewriteHtml
10
- } from "./chunk-QMA7CK7B.js";
11
- import "./chunk-LCPSKHAV.js";
12
- import "./chunk-NKXEPHRZ.js";
10
+ } from "./chunk-P2TRR6XK.js";
11
+ import "./chunk-ERNVEZOK.js";
12
+ import "./chunk-MDB3D3LP.js";
13
13
  import "./chunk-AD3HAW3W.js";
14
- import "./chunk-DDV6JEC2.js";
15
- import "./chunk-5DNDSNTP.js";
14
+ import "./chunk-BXARVN5Z.js";
15
+ import "./chunk-IOXCGMSF.js";
16
16
  import "./chunk-FVZ5JBRI.js";
17
- import "./chunk-NFJJKDRI.js";
17
+ import "./chunk-DNWA7WNO.js";
18
18
  import "./chunk-UU43WIZG.js";
19
- import "./chunk-JWCCVTTR.js";
19
+ import "./chunk-RFNLZM7W.js";
20
20
  import "./chunk-CMUWRPSQ.js";
21
21
  import {
22
22
  bail,
23
+ displayPath,
23
24
  warn,
24
25
  warning
25
- } from "./chunk-BGCBSQ4A.js";
26
- import {
27
- displayPath
28
- } from "./chunk-VJWQSYEG.js";
26
+ } from "./chunk-JFPLNHEQ.js";
29
27
  import "./chunk-I3PS26CI.js";
30
28
 
31
29
  // src/modules/assets.ts
@@ -3,13 +3,13 @@ const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  buildFiles,
5
5
  urlOf
6
- } from "./chunk-N4O5MDIB.js";
7
- import "./chunk-LCPSKHAV.js";
6
+ } from "./chunk-FZGJUJAL.js";
7
+ import "./chunk-ERNVEZOK.js";
8
8
  import {
9
9
  bytes,
10
10
  count
11
- } from "./chunk-NKXEPHRZ.js";
12
- import "./chunk-DDV6JEC2.js";
11
+ } from "./chunk-MDB3D3LP.js";
12
+ import "./chunk-BXARVN5Z.js";
13
13
  import "./chunk-FVZ5JBRI.js";
14
14
  import "./chunk-UU43WIZG.js";
15
15
  import {
@@ -19,11 +19,9 @@ import {
19
19
  } from "./chunk-CMUWRPSQ.js";
20
20
  import {
21
21
  BuildError,
22
- bail
23
- } from "./chunk-BGCBSQ4A.js";
24
- import {
22
+ bail,
25
23
  compareText
26
- } from "./chunk-VJWQSYEG.js";
24
+ } from "./chunk-JFPLNHEQ.js";
27
25
  import "./chunk-I3PS26CI.js";
28
26
 
29
27
  // src/diff.ts
@@ -1,13 +1,11 @@
1
1
  import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
+ compareText,
5
+ realPath,
4
6
  warn,
5
7
  warning
6
- } from "./chunk-BGCBSQ4A.js";
7
- import {
8
- compareText,
9
- realPath
10
- } from "./chunk-VJWQSYEG.js";
8
+ } from "./chunk-JFPLNHEQ.js";
11
9
 
12
10
  // src/serve/live.ts
13
11
  import crypto from "node:crypto";
@@ -6,10 +6,9 @@ import {
6
6
  globSet,
7
7
  globToRegExp,
8
8
  isGlob
9
- } from "./chunk-NFJJKDRI.js";
9
+ } from "./chunk-DNWA7WNO.js";
10
10
  import "./chunk-CMUWRPSQ.js";
11
- import "./chunk-BGCBSQ4A.js";
12
- import "./chunk-VJWQSYEG.js";
11
+ import "./chunk-JFPLNHEQ.js";
13
12
  import "./chunk-I3PS26CI.js";
14
13
  export {
15
14
  globBase,
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  Options
5
- } from "./chunk-HGJ5VWUR.js";
5
+ } from "./chunk-DUGGZ4EE.js";
6
6
  import {
7
7
  BUILTINS,
8
8
  addImagePlugin,
@@ -11,10 +11,10 @@ import {
11
11
  imageOptionsFor,
12
12
  meant,
13
13
  parseFormat
14
- } from "./chunk-QMA7CK7B.js";
14
+ } from "./chunk-P2TRR6XK.js";
15
15
  import {
16
16
  bail
17
- } from "./chunk-BGCBSQ4A.js";
17
+ } from "./chunk-JFPLNHEQ.js";
18
18
 
19
19
  // src/modules/image.ts
20
20
  import fs from "node:fs";
@@ -1,13 +1,11 @@
1
1
  import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
- import {
4
- red
5
- } from "./chunk-BGCBSQ4A.js";
6
3
  import {
7
4
  joinAsGiven,
8
5
  parentAsGiven,
6
+ red,
9
7
  slashes
10
- } from "./chunk-VJWQSYEG.js";
8
+ } from "./chunk-JFPLNHEQ.js";
11
9
 
12
10
  // src/commands/init.ts
13
11
  import fs2 from "node:fs";
@@ -5,16 +5,18 @@ import {
5
5
  count,
6
6
  duration,
7
7
  fixed,
8
+ profileText,
8
9
  summary
9
- } from "./chunk-NKXEPHRZ.js";
10
- import "./chunk-DDV6JEC2.js";
10
+ } from "./chunk-MDB3D3LP.js";
11
+ import "./chunk-BXARVN5Z.js";
11
12
  import "./chunk-UU43WIZG.js";
12
- import "./chunk-VJWQSYEG.js";
13
+ import "./chunk-JFPLNHEQ.js";
13
14
  import "./chunk-I3PS26CI.js";
14
15
  export {
15
16
  bytes,
16
17
  count,
17
18
  duration,
18
19
  fixed,
20
+ profileText,
19
21
  summary
20
22
  };
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  isDir
5
- } from "./chunk-VJWQSYEG.js";
5
+ } from "./chunk-JFPLNHEQ.js";
6
6
 
7
7
  // src/command-line.ts
8
8
  import os from "node:os";
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  red
5
- } from "./chunk-BGCBSQ4A.js";
5
+ } from "./chunk-JFPLNHEQ.js";
6
6
 
7
7
  // src/serve/builder.ts
8
8
  import { fork } from "node:child_process";
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  slashes
5
- } from "./chunk-VJWQSYEG.js";
5
+ } from "./chunk-JFPLNHEQ.js";
6
6
 
7
7
  // src/dirs.ts
8
8
  import fs from "node:fs";
@@ -8,15 +8,14 @@ import {
8
8
  measure,
9
9
  overBudget,
10
10
  urlOf
11
- } from "./chunk-N4O5MDIB.js";
12
- import "./chunk-LCPSKHAV.js";
13
- import "./chunk-NKXEPHRZ.js";
14
- import "./chunk-DDV6JEC2.js";
11
+ } from "./chunk-FZGJUJAL.js";
12
+ import "./chunk-ERNVEZOK.js";
13
+ import "./chunk-MDB3D3LP.js";
14
+ import "./chunk-BXARVN5Z.js";
15
15
  import "./chunk-FVZ5JBRI.js";
16
16
  import "./chunk-UU43WIZG.js";
17
17
  import "./chunk-CMUWRPSQ.js";
18
- import "./chunk-BGCBSQ4A.js";
19
- import "./chunk-VJWQSYEG.js";
18
+ import "./chunk-JFPLNHEQ.js";
20
19
  import "./chunk-I3PS26CI.js";
21
20
  export {
22
21
  buildFiles,
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-CMUWRPSQ.js";
6
6
  import {
7
7
  bail
8
- } from "./chunk-BGCBSQ4A.js";
8
+ } from "./chunk-JFPLNHEQ.js";
9
9
 
10
10
  // src/glob.ts
11
11
  var stripDot = (p) => p.replace(/^(\.\/)+/, "");
@@ -8,9 +8,9 @@ import {
8
8
  loadConfig,
9
9
  meant,
10
10
  tomlKeyLine
11
- } from "./chunk-QMA7CK7B.js";
12
- import "./chunk-LCPSKHAV.js";
13
- import "./chunk-NKXEPHRZ.js";
11
+ } from "./chunk-P2TRR6XK.js";
12
+ import "./chunk-ERNVEZOK.js";
13
+ import "./chunk-MDB3D3LP.js";
14
14
  import "./chunk-AD3HAW3W.js";
15
15
  import {
16
16
  CONFIG_FILES,
@@ -18,15 +18,14 @@ import {
18
18
  parseEnvironment,
19
19
  shownDir,
20
20
  shownOutput
21
- } from "./chunk-DDV6JEC2.js";
22
- import "./chunk-5DNDSNTP.js";
21
+ } from "./chunk-BXARVN5Z.js";
22
+ import "./chunk-IOXCGMSF.js";
23
23
  import "./chunk-FVZ5JBRI.js";
24
- import "./chunk-NFJJKDRI.js";
24
+ import "./chunk-DNWA7WNO.js";
25
25
  import "./chunk-UU43WIZG.js";
26
- import "./chunk-JWCCVTTR.js";
26
+ import "./chunk-RFNLZM7W.js";
27
27
  import "./chunk-CMUWRPSQ.js";
28
- import "./chunk-BGCBSQ4A.js";
29
- import "./chunk-VJWQSYEG.js";
28
+ import "./chunk-JFPLNHEQ.js";
30
29
  import "./chunk-I3PS26CI.js";
31
30
  export {
32
31
  BUILTINS,
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-FVZ5JBRI.js";
6
6
  import {
7
7
  bail
8
- } from "./chunk-BGCBSQ4A.js";
8
+ } from "./chunk-JFPLNHEQ.js";
9
9
 
10
10
  // src/modules/options.ts
11
11
  var Options = class {
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-CMUWRPSQ.js";
9
9
  import {
10
10
  bail
11
- } from "./chunk-BGCBSQ4A.js";
11
+ } from "./chunk-JFPLNHEQ.js";
12
12
 
13
13
  // src/budgets.ts
14
14
  var BUDGETS = [
@@ -2,18 +2,16 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  withBase
5
- } from "./chunk-QMA7CK7B.js";
5
+ } from "./chunk-P2TRR6XK.js";
6
6
  import {
7
7
  slugOptions,
8
8
  slugWith
9
- } from "./chunk-5DNDSNTP.js";
9
+ } from "./chunk-IOXCGMSF.js";
10
10
  import {
11
11
  BuildError,
12
+ compareText,
12
13
  isPlainObject
13
- } from "./chunk-BGCBSQ4A.js";
14
- import {
15
- compareText
16
- } from "./chunk-VJWQSYEG.js";
14
+ } from "./chunk-JFPLNHEQ.js";
17
15
 
18
16
  // src/content.ts
19
17
  var HEADING = /<h([1-6])(\s[^>]*)?>(.*?)<\/h[1-6]\s*>/gis;
@@ -9,26 +9,25 @@ import {
9
9
  inspectPages,
10
10
  runCommand,
11
11
  sameContentsForTest
12
- } from "./chunk-SRNLKWXL.js";
12
+ } from "./chunk-HNG372DW.js";
13
13
  import {
14
14
  commandLine,
15
15
  toolPath
16
- } from "./chunk-4Q6WMTER.js";
17
- import "./chunk-CB6YFUXU.js";
18
- import "./chunk-N4O5MDIB.js";
19
- import "./chunk-QMA7CK7B.js";
20
- import "./chunk-LCPSKHAV.js";
21
- import "./chunk-NKXEPHRZ.js";
16
+ } from "./chunk-7JGYYAKI.js";
17
+ import "./chunk-FYRC2HBU.js";
18
+ import "./chunk-FZGJUJAL.js";
19
+ import "./chunk-P2TRR6XK.js";
20
+ import "./chunk-ERNVEZOK.js";
21
+ import "./chunk-MDB3D3LP.js";
22
22
  import "./chunk-AD3HAW3W.js";
23
- import "./chunk-DDV6JEC2.js";
24
- import "./chunk-5DNDSNTP.js";
23
+ import "./chunk-BXARVN5Z.js";
24
+ import "./chunk-IOXCGMSF.js";
25
25
  import "./chunk-FVZ5JBRI.js";
26
- import "./chunk-NFJJKDRI.js";
26
+ import "./chunk-DNWA7WNO.js";
27
27
  import "./chunk-UU43WIZG.js";
28
- import "./chunk-JWCCVTTR.js";
28
+ import "./chunk-RFNLZM7W.js";
29
29
  import "./chunk-CMUWRPSQ.js";
30
- import "./chunk-BGCBSQ4A.js";
31
- import "./chunk-VJWQSYEG.js";
30
+ import "./chunk-JFPLNHEQ.js";
32
31
  import "./chunk-I3PS26CI.js";
33
32
  export {
34
33
  OUTPUT_LIST,
@@ -2,12 +2,12 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  BUDGETS
5
- } from "./chunk-LCPSKHAV.js";
5
+ } from "./chunk-ERNVEZOK.js";
6
6
  import {
7
7
  bytes,
8
8
  count,
9
9
  fixed
10
- } from "./chunk-NKXEPHRZ.js";
10
+ } from "./chunk-MDB3D3LP.js";
11
11
  import {
12
12
  padEnd,
13
13
  padStart
@@ -15,12 +15,10 @@ import {
15
15
  import {
16
16
  BuildError,
17
17
  bail,
18
- warning
19
- } from "./chunk-BGCBSQ4A.js";
20
- import {
21
18
  compareText,
22
- realPath
23
- } from "./chunk-VJWQSYEG.js";
19
+ realPath,
20
+ warning
21
+ } from "./chunk-JFPLNHEQ.js";
24
22
 
25
23
  // src/footprint.ts
26
24
  import fs from "node:fs";
@@ -1,37 +1,35 @@
1
1
  import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
- import "./chunk-QMA7CK7B.js";
4
- import "./chunk-LCPSKHAV.js";
5
- import "./chunk-NKXEPHRZ.js";
3
+ import "./chunk-P2TRR6XK.js";
4
+ import "./chunk-ERNVEZOK.js";
5
+ import "./chunk-MDB3D3LP.js";
6
6
  import "./chunk-AD3HAW3W.js";
7
7
  import {
8
8
  dirsOf,
9
9
  shownDir
10
- } from "./chunk-DDV6JEC2.js";
10
+ } from "./chunk-BXARVN5Z.js";
11
11
  import {
12
12
  slugWith
13
- } from "./chunk-5DNDSNTP.js";
13
+ } from "./chunk-IOXCGMSF.js";
14
14
  import "./chunk-FVZ5JBRI.js";
15
- import "./chunk-NFJJKDRI.js";
15
+ import "./chunk-DNWA7WNO.js";
16
16
  import {
17
17
  FIELD_NOTES
18
18
  } from "./chunk-UU43WIZG.js";
19
- import "./chunk-JWCCVTTR.js";
19
+ import "./chunk-RFNLZM7W.js";
20
20
  import {
21
21
  serdeFloat
22
22
  } from "./chunk-CMUWRPSQ.js";
23
23
  import {
24
24
  bail,
25
25
  context,
26
- parseFrontMatter
27
- } from "./chunk-BGCBSQ4A.js";
28
- import {
29
26
  isDir,
30
27
  isFile,
31
28
  isInside,
29
+ parseFrontMatter,
32
30
  realPath,
33
31
  slashes
34
- } from "./chunk-VJWQSYEG.js";
32
+ } from "./chunk-JFPLNHEQ.js";
35
33
  import "./chunk-I3PS26CI.js";
36
34
 
37
35
  // src/commands/new.ts
@@ -2,20 +2,20 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  inspectPages
5
- } from "./chunk-SRNLKWXL.js";
6
- import "./chunk-4Q6WMTER.js";
7
- import "./chunk-CB6YFUXU.js";
8
- import "./chunk-N4O5MDIB.js";
9
- import "./chunk-QMA7CK7B.js";
10
- import "./chunk-LCPSKHAV.js";
11
- import "./chunk-NKXEPHRZ.js";
5
+ } from "./chunk-HNG372DW.js";
6
+ import "./chunk-7JGYYAKI.js";
7
+ import "./chunk-FYRC2HBU.js";
8
+ import "./chunk-FZGJUJAL.js";
9
+ import "./chunk-P2TRR6XK.js";
10
+ import "./chunk-ERNVEZOK.js";
11
+ import "./chunk-MDB3D3LP.js";
12
12
  import "./chunk-AD3HAW3W.js";
13
- import "./chunk-DDV6JEC2.js";
14
- import "./chunk-5DNDSNTP.js";
13
+ import "./chunk-BXARVN5Z.js";
14
+ import "./chunk-IOXCGMSF.js";
15
15
  import "./chunk-FVZ5JBRI.js";
16
- import "./chunk-NFJJKDRI.js";
16
+ import "./chunk-DNWA7WNO.js";
17
17
  import "./chunk-UU43WIZG.js";
18
- import "./chunk-JWCCVTTR.js";
18
+ import "./chunk-RFNLZM7W.js";
19
19
  import {
20
20
  charCount,
21
21
  firstChars,
@@ -27,14 +27,12 @@ import {
27
27
  } from "./chunk-CMUWRPSQ.js";
28
28
  import {
29
29
  bail,
30
- getPath
31
- } from "./chunk-BGCBSQ4A.js";
32
- import {
33
30
  comparePaths,
34
31
  compareText,
32
+ getPath,
35
33
  realPath,
36
34
  shown
37
- } from "./chunk-VJWQSYEG.js";
35
+ } from "./chunk-JFPLNHEQ.js";
38
36
  import "./chunk-I3PS26CI.js";
39
37
 
40
38
  // src/inspect.ts