@vinena/knobs 0.6.6 → 0.7.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.
- package/CHANGELOG.md +26 -0
- package/README.md +13 -7
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/cli.d.ts +95 -0
- package/dist/cli.js +527 -0
- package/dist/{context-eawqn680.js → context-2r76ext7.js} +3 -3
- package/dist/{context-vd2xep5t.js → context-h1bdt8w3.js} +3 -3
- package/dist/early.global.js +7 -8
- package/dist/edit/html.d.ts +7 -3
- package/dist/edit/keep.d.ts +2 -2
- package/dist/{elementsview-n26sp8m7.js → elementsview-mcg6d5zp.js} +21 -19
- package/dist/{elementsview-dpm0xmb2.js → elementsview-mwr1s17z.js} +21 -19
- package/dist/engine/bezels.d.ts +2 -2
- package/dist/engine/check.d.ts +2 -2
- package/dist/engine/describe.d.ts +2 -2
- package/dist/engine/devices.d.ts +3 -3
- package/dist/engine/fit.d.ts +4 -4
- package/dist/engine/foldhand.d.ts +2 -2
- package/dist/engine/frame.d.ts +6 -6
- package/dist/engine/frames.d.ts +4 -4
- package/dist/engine/fresh.d.ts +12 -5
- package/dist/engine/header.d.ts +3 -1
- package/dist/engine/identity.d.ts +4 -4
- package/dist/engine/index.d.ts +7 -7
- package/dist/engine/locale.d.ts +2 -2
- package/dist/engine/morph.d.ts +2 -2
- package/dist/engine/native.d.ts +8 -8
- package/dist/engine/placeholder.d.ts +3 -3
- package/dist/engine/reload.d.ts +2 -2
- package/dist/engine/screen.d.ts +2 -2
- package/dist/engine/scrollkeep.d.ts +1 -1
- package/dist/engine/store.d.ts +11 -11
- package/dist/engine/storekeys.d.ts +34 -0
- package/dist/engine/style.d.ts +1 -1
- package/dist/engine/tabicon.d.ts +2 -2
- package/dist/engine/underneath.d.ts +1 -0
- package/dist/engine/width.d.ts +3 -3
- package/dist/{framekit-0as9t6a7.js → framekit-4v7nc3ea.js} +25 -20
- package/dist/{framekit-dknq662p.js → framekit-wyppj1se.js} +25 -20
- package/dist/grab/clipboard.d.ts +2 -0
- package/dist/{index-jfv7vavj.js → index-311fys81.js} +93 -29
- package/dist/index-3dcgysws.js +77 -0
- package/dist/{index-7vb2ct4s.js → index-3s4v7gw5.js} +11 -10
- package/dist/{index-ztnjefrh.js → index-585hs9tp.js} +5 -1
- package/dist/{index-za4ppxay.js → index-6t0w5s7p.js} +1 -1
- package/dist/{index-r1rdj05c.js → index-82y8x8vv.js} +14 -11
- package/dist/{index-dxga6h10.js → index-9targr2f.js} +26 -16
- package/dist/{index-x3sxssbs.js → index-a23nv5j4.js} +65 -45
- package/dist/{index-t4kssacm.js → index-abwqw8jh.js} +6 -1
- package/dist/{index-s6yzsvs4.js → index-bgzyc7rz.js} +22 -15
- package/dist/{index-t4wrs2a3.js → index-c1t6knbf.js} +20 -14
- package/dist/{index-7w0nm76e.js → index-cqymjce4.js} +20 -14
- package/dist/{index-69fvtkcm.js → index-dvtbh3c8.js} +24 -18
- package/dist/{index-ajs4na3f.js → index-k4w5v53q.js} +2 -2
- package/dist/{index-df35z48z.js → index-n31pn4ax.js} +20 -16
- package/dist/{index-ymqm185m.js → index-rps0bdq9.js} +1 -1
- package/dist/{index-a8ffw5ft.js → index-szd9bddn.js} +1 -1
- package/dist/{index-whehz74d.js → index-vhda420r.js} +32 -6
- package/dist/{index-xs29b55n.js → index-vmprrfwe.js} +5 -2
- package/dist/{index-20bc9yrj.js → index-vmz7htwn.js} +1 -1
- package/dist/index.d.ts +14 -8
- package/dist/index.global.js +176 -159
- package/dist/index.js +108 -43
- package/dist/instance.d.ts +7 -1
- package/dist/mark.d.ts +50 -0
- package/dist/{react-msn10fjb.js → react-4ezjf7mq.js} +24 -18
- package/dist/react-4qn9vsjw.js +78 -0
- package/dist/{react-73reavv4.js → react-4tcwpama.js} +1 -1
- package/dist/{react-k4pkm1p5.js → react-7eyps0cg.js} +2 -2
- package/dist/{react-10r2rczp.js → react-7tzwahsm.js} +14 -11
- package/dist/{react-yx3g9k55.js → react-amvrbng8.js} +5 -2
- package/dist/{react-5rq7bnsy.js → react-atw9y8ny.js} +5 -1
- package/dist/{react-4phtr2nd.js → react-dg4bjv3j.js} +1 -1
- package/dist/{react-vbk58f9m.js → react-hdneb4v3.js} +32 -6
- package/dist/{react-h9w04skh.js → react-j87bdhhe.js} +4 -1
- package/dist/{react-wtgvkf6g.js → react-mkafgzqf.js} +1 -1
- package/dist/{react-a1r0nr0g.js → react-ppyj3fg2.js} +65 -45
- package/dist/{react-0r5418av.js → react-rbmk30xk.js} +92 -29
- package/dist/{react-y9gr8yt2.js → react-rxw73n04.js} +1 -1
- package/dist/{react-5h7pxnax.js → react-tet7swk2.js} +22 -15
- package/dist/{react-5ekfj7g3.js → react-w94cfn87.js} +20 -16
- package/dist/{react-v08ywmtw.js → react-wzd3cfg8.js} +11 -10
- package/dist/{react-2b7725je.js → react-x209et38.js} +26 -16
- package/dist/react.d.ts +3 -1
- package/dist/react.js +111 -44
- package/dist/{replay-ehgxp9py.js → replay-3xqgt3xg.js} +8 -8
- package/dist/{replay-461gcdh1.js → replay-48gn27bj.js} +8 -8
- package/dist/storage/onload.d.ts +1 -1
- package/dist/{storageview-5p1y11b5.js → storageview-2rvwk0v7.js} +20 -17
- package/dist/{storageview-kxzpnfvr.js → storageview-6vq7nz02.js} +20 -17
- package/dist/styles/force.d.ts +3 -1
- package/dist/types.d.ts +4 -4
- package/dist/ui/actions.d.ts +3 -3
- package/dist/ui/bindings.d.ts +1 -1
- package/dist/ui/catalog.d.ts +14 -14
- package/dist/ui/changes.d.ts +1 -1
- package/dist/ui/colors.d.ts +1 -1
- package/dist/ui/deviceknobs.d.ts +2 -2
- package/dist/ui/editors.d.ts +3 -3
- package/dist/ui/foldslider.d.ts +2 -2
- package/dist/ui/icons.d.ts +5 -2
- package/dist/ui/keys.d.ts +1 -1
- package/dist/ui/list.d.ts +10 -10
- package/dist/ui/palette.d.ts +2 -2
- package/dist/ui/panel.d.ts +2 -0
- package/dist/ui/pin.d.ts +2 -2
- package/dist/ui/prefs.d.ts +1 -1
- package/dist/ui/rows.d.ts +3 -3
- package/dist/ui/settings.d.ts +11 -1
- package/dist/ui/storageview.d.ts +2 -2
- package/dist/ui/stylesview.d.ts +3 -3
- package/dist/ui/swatches.d.ts +2 -2
- package/package.json +5 -2
- package/skills/{devknobs → knobs}/SKILL.md +52 -51
- package/dist/index-5tv6sr74.js +0 -23
- package/dist/react-t2qnewz2.js +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
- new names, beside the old ones, which still work for now:
|
|
6
|
+
- the api is on `window.knobs` too, beside `window.devknobs`. a page that has a `knobs` of its own keeps it
|
|
7
|
+
- the react component is `Knobs`, from `@vinena/knobs/react`. `DevKnobs` is the same component
|
|
8
|
+
- the types are `KnobsState`, `KnobsStatePatch` and `KnobsApi`. `DevknobsState`, `DevknobsStatePatch` and `DevknobsApi` are marked deprecated
|
|
9
|
+
- "send to server" sends `x-knobs-now` and `x-devknobs-now`, with the same value
|
|
10
|
+
- `?knobs=fresh` turns on fresh mode, as `?devknobs=fresh` does
|
|
11
|
+
- a grab puts `application/x-knobs-grab` on the clipboard, beside `application/x-devknobs-grab`
|
|
12
|
+
- the attributes knobs puts on the page are written as `data-knobs…` and `data-devknobs…`
|
|
13
|
+
- knobs' own items in web storage are written as `knobs` and `knobs:…` too, beside `devknobs` and `devknobs:…`, which are still the ones read
|
|
14
|
+
- an element with `id="knobs"` or `name="knobs"` does not keep the api off `window.knobs`; a page's `var knobs`, `function knobs` or `window.knobs =` does
|
|
15
|
+
- `npx @vinena/knobs init` writes `Knobs` in the component it makes for next
|
|
16
|
+
- the changes' note says `agents read and apply edits: knobs.edits() / setEdits()`
|
|
17
|
+
- the chrome extension's upload is `knobs-<version>.zip`
|
|
18
|
+
- the chrome extension has a new store name and summary
|
|
19
|
+
- the readme, the skill and the docs use the new names
|
|
20
|
+
|
|
21
|
+
## 0.7.0
|
|
22
|
+
|
|
23
|
+
- `npx @vinena/knobs init` adds the mount line to a Next (App Router and Pages Router) or Vite project, in development only, and prints the install command and the steps. when it is not sure, it changes nothing and prints the step to do by hand
|
|
24
|
+
- `npx @vinena/knobs init --dry-run` shows the change and writes nothing
|
|
25
|
+
- the settings have a github row that links to the repo, and the crafted at Vinena link
|
|
26
|
+
- the panel, the console and the error messages say knobs, not devknobs
|
|
27
|
+
- the skill is at `skills/knobs`, not `skills/devknobs`
|
|
28
|
+
|
|
3
29
|
## 0.6.6
|
|
4
30
|
|
|
5
31
|
- grab's label leaves out component names a production build shortened, such as `xf`, and shows the element alone
|
package/README.md
CHANGED
|
@@ -13,17 +13,17 @@ installation prompt button on https://knobs.dev too.
|
|
|
13
13
|
<!-- the same text is the install_prompt message in apps/web/messages/en.json and the setup prompt in apps/web/content/reference/start.md; change all three together. -->
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
Read https://knobs.dev/llms-full.txt first: it is the full
|
|
16
|
+
Read https://knobs.dev/llms-full.txt first: it is the full knobs reference. Then install @vinena/knobs in this project. It is a dev-only panel that emulates browser preferences from inside the page.
|
|
17
17
|
|
|
18
18
|
1. Detect the package manager from the lockfile and add @vinena/knobs as a dev dependency (npm i -D @vinena/knobs, or the pnpm, yarn or bun equivalent).
|
|
19
19
|
2. Mount it once, on the client, in development only:
|
|
20
|
-
- Next.js: make a small client component (the file starts with "use client"). In it, import dynamic from "next/dynamic", then const
|
|
20
|
+
- Next.js: make a small client component (the file starts with "use client"). In it, import dynamic from "next/dynamic", then const Knobs = process.env.NODE_ENV === "development" ? dynamic(() => import("@vinena/knobs/react").then((m) => m.Knobs), { ssr: false }) : null; and render {Knobs && <Knobs />}. Render that component once in app/layout (App Router) or pages/_app (Pages Router).
|
|
21
21
|
- Everything else with a bundler (Vite, TanStack Start, React Router, SvelteKit): call if (import.meta.env.DEV) import("@vinena/knobs").then(({ mount }) => mount()); in the client entry, or in a mount effect of the root component in an SSR app. Use the bundler's own dev flag where import.meta.env.DEV does not exist.
|
|
22
22
|
- A plain page with no bundler: skip the npm install and add <script src="//unpkg.com/@vinena/knobs/dist/index.global.js"></script> to the page. It mounts itself. Keep it out of the deployed page.
|
|
23
|
-
3. Keep
|
|
23
|
+
3. Keep knobs out of production builds. A static import stays in the bundle even behind a dev check, so gate the import itself as above. If the project has a build script, run it and check that the output has no knobs.
|
|
24
24
|
4. If the app reads media queries, the time or the user agent while it boots, or renders with React, add the early script as the first element in <head>, in development only: <script src="//unpkg.com/@vinena/knobs/dist/early.global.js"></script>
|
|
25
25
|
5. Change nothing else in the project for the setup.
|
|
26
|
-
6. Open the app in your browser tool, such as Playwright or the Chrome DevTools MCP, and drive window.devknobs. For each check, call window.
|
|
26
|
+
6. Open the app in your browser tool, such as Playwright or the Chrome DevTools MCP, and drive window.knobs (or window.devknobs where window.knobs is not knobs' api). For each check, call window.knobs.reset(), then window.knobs.setState(), then await window.knobs.ready(). Check a phone ({ device: "iphone-17" }), dark mode ({ scheme: "dark" }) and a right-to-left language ({ locale: { lang: "ar", dir: "rtl" } }). The locale knob can reload the page, so wait for the load. window.knobs.grab() what breaks, fix it and check again. Then call window.knobs.reset().
|
|
27
27
|
7. Then tell me what you changed, what you fixed and how to open the panel: press Shift+K or click the handle on the right edge of the window. In the open panel, / searches the knobs. Shift+G grabs an element.
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -33,6 +33,12 @@ or by hand:
|
|
|
33
33
|
npm i -D @vinena/knobs
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
then add the mount line with one command, in a next or vite project. it changes the code for development only:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npx @vinena/knobs init
|
|
40
|
+
```
|
|
41
|
+
|
|
36
42
|
## usage
|
|
37
43
|
|
|
38
44
|
all of it is for dev only, so gate it yourself:
|
|
@@ -65,7 +71,7 @@ or on for any host.
|
|
|
65
71
|
development only
|
|
66
72
|
- [the panel](https://knobs.dev/docs/panel): open it, move it, search it, pin
|
|
67
73
|
it and set its keys
|
|
68
|
-
- [knobs](https://knobs.dev/docs/knobs): every knob
|
|
74
|
+
- [knobs](https://knobs.dev/docs/knobs): every knob knobs has and what it
|
|
69
75
|
does to the page
|
|
70
76
|
- [devices](https://knobs.dev/docs/devices): phone, tablet and laptop presets,
|
|
71
77
|
with mocks, bezels and the phone's browser drawn around the page
|
|
@@ -77,7 +83,7 @@ or on for any host.
|
|
|
77
83
|
wait for the page, grab what broke and fix it
|
|
78
84
|
- [chrome extension](https://knobs.dev/docs/extension): the panel on any site,
|
|
79
85
|
with some knobs set for real by Chrome
|
|
80
|
-
- [limits and faq](https://knobs.dev/docs/limits): what
|
|
86
|
+
- [limits and faq](https://knobs.dev/docs/limits): what knobs cannot fake
|
|
81
87
|
from inside a page, and common questions
|
|
82
88
|
- [privacy](https://knobs.dev/docs/privacy): what the npm package, the
|
|
83
89
|
extension and knobs.dev keep, and what they send
|
|
@@ -107,7 +113,7 @@ after each.
|
|
|
107
113
|
the controls for tuning the iphone duo fold's look by hand, `src/engine/foldtune.ts`,
|
|
108
114
|
are for development and never in the package: the build passes
|
|
109
115
|
`--define DEVKNOBS_TUNE=false` to every bundle and `scripts/tunefree.ts` fails
|
|
110
|
-
a build that has any of them. an app gets them by loading
|
|
116
|
+
a build that has any of them. an app gets them by loading knobs from source,
|
|
111
117
|
a bundler alias from `@vinena/knobs` to this repo's `src`, where the constant is not
|
|
112
118
|
defined and the table is on `window` under `Symbol.for("devknobs.foldtune")`.
|
|
113
119
|
an app that builds from source for production defines `DEVKNOBS_TUNE` false too.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# third party notices
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
knobs ships, or adapts code from, the projects below. each is under the MIT license, or lucide under the ISC license, reproduced here, or Simple Icons under CC0 1.0. the bezel images at the end are not: Apple's are under Apple's terms, and Google's Pixel frames under the Apache License 2.0.
|
|
4
4
|
|
|
5
5
|
## bippy
|
|
6
6
|
|
|
@@ -118,9 +118,9 @@ SOFTWARE.
|
|
|
118
118
|
|
|
119
119
|
## Simple Icons
|
|
120
120
|
|
|
121
|
-
https://github.com/simple-icons/simple-icons. `src/ui/icons.ts` copies the path and the color of
|
|
121
|
+
https://github.com/simple-icons/simple-icons. `src/ui/icons.ts` copies the path and the color of six of its icons from simple-icons 16.6.0, which the requests view shows for what a page loads: JavaScript, CSS, HTML5, WebAssembly and JSON, and GitHub, which the settings show for the link to the repo. Simple Icons is under CC0 1.0 Universal, https://creativecommons.org/publicdomain/zero/1.0/, which asks for no notice. its JavaScript icon is the community's JS logo, https://github.com/voodootikigod/logo.js, under the MIT license below.
|
|
122
122
|
|
|
123
|
-
the marks are trademarks of their owners. their use here names the kind of file a request is for, and implies no trademark license and no endorsement.
|
|
123
|
+
the marks are trademarks of their owners. their use here names the kind of file a request is for, or the place a link goes, and implies no trademark license and no endorsement.
|
|
124
124
|
|
|
125
125
|
```
|
|
126
126
|
The MIT License (MIT)
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
|
|
3
|
+
/** Every string the command prints. All but the eight marked are the README's own words. */
|
|
4
|
+
export declare const MESSAGES: {
|
|
5
|
+
readonly install: {
|
|
6
|
+
npm: string;
|
|
7
|
+
pnpm: string;
|
|
8
|
+
yarn: string;
|
|
9
|
+
bun: string;
|
|
10
|
+
};
|
|
11
|
+
readonly next: "Render that component once in app/layout (App Router) or pages/_app (Pages Router).";
|
|
12
|
+
readonly entry: "call if (import.meta.env.DEV) import(\"@vinena/knobs\").then(({ mount }) => mount()); in the client entry, or in a mount effect of the root component in an SSR app.";
|
|
13
|
+
readonly plain: "add <script src=\"//unpkg.com/@vinena/knobs/dist/index.global.js\"></script> to the page. It mounts itself. Keep it out of the deployed page.";
|
|
14
|
+
readonly production: "Keep knobs out of production builds. A static import stays in the bundle even behind a dev check, so gate the import itself as above. If the project has a build script, run it and check that the output has no knobs.";
|
|
15
|
+
readonly early: "If the app reads media queries, the time or the user agent while it boots, or renders with React, add the early script as the first element in <head>, in development only: <script src=\"//unpkg.com/@vinena/knobs/dist/early.global.js\"></script>";
|
|
16
|
+
readonly open: "press ⇧K, or click the handle on the right edge of the window, to open the panel.";
|
|
17
|
+
readonly reference: "the full reference, every detail in one file, is at https://knobs.dev/llms-full.txt";
|
|
18
|
+
readonly created: (path: string) => string;
|
|
19
|
+
readonly changed: (path: string) => string;
|
|
20
|
+
readonly unchanged: (path: string) => string;
|
|
21
|
+
readonly unknown: "not found";
|
|
22
|
+
readonly dryRun: "dry run";
|
|
23
|
+
readonly usage: "usage: knobs init [--dry-run]";
|
|
24
|
+
readonly packageJson: "error: package.json";
|
|
25
|
+
readonly writeFailed: (path: string, code: string) => string;
|
|
26
|
+
};
|
|
27
|
+
/** The line a client entry gets, as the installation prompt has it. */
|
|
28
|
+
export declare const MOUNT_LINE = "if (import.meta.env.DEV) import(\"@vinena/knobs\").then(({ mount }) => mount());";
|
|
29
|
+
/**
|
|
30
|
+
* The client component a Next.js app gets, in the installation prompt's own
|
|
31
|
+
* code. Joined from lines, so no line of the built cli is the directive alone,
|
|
32
|
+
* which `scripts/useclient.ts` refuses below a module's first line.
|
|
33
|
+
*/
|
|
34
|
+
export declare const COMPONENT: string;
|
|
35
|
+
/** The package manager of a folder with these files, by its lockfile. */
|
|
36
|
+
export declare function packageManager(files: (path: string) => boolean): PackageManager;
|
|
37
|
+
export type Framework = {
|
|
38
|
+
kind: "next-app";
|
|
39
|
+
layout: string;
|
|
40
|
+
} | {
|
|
41
|
+
kind: "next-pages";
|
|
42
|
+
app: string;
|
|
43
|
+
} | {
|
|
44
|
+
kind: "entry";
|
|
45
|
+
entry: string;
|
|
46
|
+
make: boolean;
|
|
47
|
+
} | {
|
|
48
|
+
kind: "plain";
|
|
49
|
+
} | {
|
|
50
|
+
kind: "unknown";
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The `src` of the first module script of a page that `files` has, as a path
|
|
54
|
+
* from the page's folder. Scripts in html comments do not count.
|
|
55
|
+
*/
|
|
56
|
+
export declare function moduleEntry(html: string, files?: (path: string) => boolean): string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Where devknobs mounts in a project: `pkg` is its parsed package.json, null
|
|
59
|
+
* with none, and `files` and `read` look in its folder.
|
|
60
|
+
*/
|
|
61
|
+
export declare function framework(pkg: unknown, files: (path: string) => boolean, read?: (path: string) => string): Framework;
|
|
62
|
+
/**
|
|
63
|
+
* A layout with the component imported and rendered before `</body>`, in the
|
|
64
|
+
* layout's own end of line, or null where it has no `</body>` or more than one.
|
|
65
|
+
*/
|
|
66
|
+
export declare function withPanel(layout: string): string | null;
|
|
67
|
+
export interface Edit {
|
|
68
|
+
/** From the project's folder. */
|
|
69
|
+
path: string;
|
|
70
|
+
kind: "create" | "change";
|
|
71
|
+
content: string;
|
|
72
|
+
}
|
|
73
|
+
export interface Plan {
|
|
74
|
+
dir: string;
|
|
75
|
+
edits: Edit[];
|
|
76
|
+
/** What to print, in order. */
|
|
77
|
+
lines: string[];
|
|
78
|
+
/** 1 where the mount is left to do by hand. */
|
|
79
|
+
code: 0 | 1;
|
|
80
|
+
}
|
|
81
|
+
/** A file of the project that could not be read, by its path from the project's folder. */
|
|
82
|
+
export declare class ReadFailed extends Error {
|
|
83
|
+
readonly path: string;
|
|
84
|
+
readonly code: string;
|
|
85
|
+
constructor(path: string, code: string);
|
|
86
|
+
}
|
|
87
|
+
/** What `init` does in a folder: its edits and its report. Reads only, and throws ReadFailed. */
|
|
88
|
+
export declare function plan(dir: string): Plan;
|
|
89
|
+
/**
|
|
90
|
+
* Write a plan's edits, the changes to files before the new files. On an
|
|
91
|
+
* error the changed files get their text back, and the line to print is given.
|
|
92
|
+
*/
|
|
93
|
+
export declare function apply(planned: Plan): string | null;
|
|
94
|
+
/** Run the command with these arguments in a folder, and give its exit code. */
|
|
95
|
+
export declare function run(args: readonly string[], dir: string, print?: (line: string) => void): number;
|