@browserless.io/cli 0.2.0 → 0.3.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.
- package/CHANGELOG.md +7 -0
- package/build/api/refresh.js +1 -1
- package/build/api/upload.js +1 -1
- package/build/cli-utils/capture-runner.js +24 -19
- package/build/commands/profile/refresh.js +2 -2
- package/build/commands/profile/upload.js +2 -2
- package/build/version.js +1 -1
- package/package.json +24 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.0](https://github.com/browserless/browserless-cli/compare/v0.2.0...v0.3.0) (2026-08-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* AUTO-258 DO NOT MERGE - profile refresh replays the settings a profile was captured with ([#58](https://github.com/browserless/browserless-cli/issues/58)) ([94fe959](https://github.com/browserless/browserless-cli/commit/94fe959620909e9f7e9bfe533dd0c94c1560c712))
|
|
9
|
+
|
|
3
10
|
## [0.2.0](https://github.com/browserless/browserless-cli/compare/v0.1.0...v0.2.0) (2026-06-18)
|
|
4
11
|
|
|
5
12
|
|
package/build/api/refresh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a=Object.defineProperty;var t=(r,e)=>a(r,"name",{value:e,configurable:!0});import{apiFetch as i}from"./client.js";import{buildProfileBody as f,rethrowCaptureSettingsSkew as h}from"./upload.js";const c=t(async(r,e)=>{try{return await i(r,{method:"POST",path:"/profile/refresh",rawBody:f(e)})}catch(o){return h(o,r.server)}},"refreshProfile");export{c as refreshProfile};
|
package/build/api/upload.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var s=Object.defineProperty;var i=(t,e)=>s(t,"name",{value:e,configurable:!0});import{apiFetch as n}from"./client.js";import{ApiError as o}from"../errors.js";import{version as a}from"../version.js";const d=i(t=>{const e=t.serialized??JSON.stringify(t.state),r=t.captureSettings===void 0?"":`,"captureSettings":${JSON.stringify(t.captureSettings)}`;return`{"name":${JSON.stringify(t.name)},"state":${e}${r}}`},"buildProfileBody"),p=i((t,e)=>{throw!(t instanceof o)||t.status!==400||!/additional propert/i.test(`${t.body??""} ${t.message}`)?t:new o(`The server at ${e} rejected the profile capture settings this CLI (v${a}) sends \u2014 it predates either the field itself or one of its members. Deploy the server to every region before using this CLI against it. Server said: ${t.message}`,400,t.body)},"rethrowCaptureSettingsSkew"),u=i(async(t,e)=>{try{return await n(t,{method:"POST",path:"/profile/upload",rawBody:d(e)})}catch(r){return p(r,t.server)}},"uploadProfile");export{d as buildProfileBody,p as rethrowCaptureSettingsSkew,u as uploadProfile};
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
`)
|
|
3
|
-
|
|
4
|
-
`))}const
|
|
5
|
-
`),
|
|
6
|
-
`)}if(
|
|
7
|
-
`),
|
|
8
|
-
`);
|
|
9
|
-
`)}if(
|
|
10
|
-
`),
|
|
11
|
-
`)
|
|
12
|
-
`)
|
|
13
|
-
`)
|
|
14
|
-
`)
|
|
15
|
-
`)
|
|
16
|
-
`)}
|
|
17
|
-
`);
|
|
18
|
-
`)
|
|
1
|
+
var B=Object.defineProperty;var l=(e,t)=>B(e,"name",{value:t,configurable:!0});import{resolveProfile as A}from"../browsers/discover.js";import{captureFromProfile as I}from"../capture/index.js";import{applyOnlyFilter as L,mergeExclusionPatterns as R,normalizeExclusion as y}from"../capture/exclusion.js";import{readConfig as P}from"../config/store.js";import{ensureTermsAccepted as z}from"../auth/disclaimer.js";import{UsageError as _}from"../errors.js";import{version as G}from"../version.js";import{collectRepeated as k,parseNonNegativeInt as M}from"./client.js";import{formatBytes as u,measureOriginSizes as j,SERVER_ARTIFACT_CAP_BYTES as x,trimStateToFit as U}from"./trim-state.js";const ne=l((e,t={})=>{const s=t.sourceOptional?e.option.bind(e):e.requiredOption.bind(e),o=t.sourceOptional?". Optional here \u2014 read from the profile's stored settings when omitted":"";return s("--browser <key>",`Source browser key (chrome / brave / edge / ...) or display name${o}`),s("--profile <name>",`Source profile display name or directory (e.g. "Personal", "Default")${o}`),e.option("--exclude-domain <domain>","Append a domain to the exclusion list for this run (repeatable)",k).option("--no-default-excludes","Skip the persistent exclusion list for this run").option("--accept-terms","Pre-accept the liability disclaimer").option("--terms-ttl-days <n>","Override the disclaimer re-prompt TTL for this run").option("--password-store <store>","Linux only: --password-store value to pass through to the headless launch (basic / gnome-libsecret / kwallet5 / ...)").option("--auto-fit","If the captured artifact exceeds the 2 MB server cap, drop the heaviest origins (largest serialized contribution first) until it fits").option("--keep-domain <domain>","Domain that --auto-fit must never drop (suffix-match, same syntax as --exclude-domain; repeatable)",k).option("--only-domain <domain>","Capture only cookies / origins matching this domain \u2014 discard everything else (suffix-match; repeatable; applies after --exclude-domain)",k)},"addCaptureFlags"),H=l(e=>{if(e.length>0&&!e.some(t=>y(t)!==null))throw new _(`--only-domain: no valid domain pattern in ${JSON.stringify(e)}. Use a hostname like "example.com" or "*.example.com".`)},"validateOnlyDomain"),b=100,J=253,v=255,C=8*1024,K=/[$`\\!\u0000-\u001f\u007f]/,X=/^[A-Za-z0-9*._-]+$/,S=l((e,t)=>{process.stderr.write(` \u2192 Not storing ${e} for refresh (${t}); a later flagless \`profile refresh\` of this profile will not replay it
|
|
2
|
+
`)},"warnDropped"),Y=l(e=>{const t=`they serialize past the server's ${C}-byte limit`;process.stderr.write(e==="upload"?` \u2192 Not storing any capture settings (${t}); a later flagless \`profile refresh\` of this profile will have nothing to replay
|
|
3
|
+
`:` \u2192 Not updating the stored capture settings (${t}); whatever this profile already had is left as it was, so it no longer matches this run and a later flagless \`profile refresh\` will not reflect these filters. Shorten the domain lists to update them
|
|
4
|
+
`)},"warnOverCap"),O=l((e,t)=>{const s=t?.trim();if(s){if(K.test(s)){S(`--${e}`,"it contains characters a shell would interpret");return}if(s.length>v){S(`--${e}`,`it exceeds ${v} characters`);return}return s}},"safeScalar"),T=l((e,t,s=!1)=>{const o=[...new Set((t??[]).map(d=>y(d)).filter(d=>d!==null))],n=o.filter(d=>d.length<=J&&X.test(d));return n.length<o.length&&S(`${o.length-n.length} of ${o.length} --${e} patterns`,"the server only stores plain hostname patterns"),n.length?(n.length>b&&S(`${n.length-b} of ${n.length} --${e} patterns`,`the server stores at most ${b}`),n.slice(0,b)):s&&!(t??[]).length?[]:void 0},"safeDomains"),m=l((e,t)=>t===void 0?{}:{[e]:t},"withKey"),ae={browser:"browser",profile:"profile",excludeDomains:"excludeDomain",onlyDomains:"onlyDomain",keepDomains:"keepDomain",autoFit:"autoFit",passwordStore:"passwordStore"},le=l((e,t,s)=>{const o={...m("browser",O("browser",e.browser)),...m("profile",O("profile",e.profile)),...m("excludeDomains",T("exclude-domain",t.excludedDomains,e.defaultExcludes===!1)),...m("onlyDomains",T("only-domain",e.onlyDomain)),...m("keepDomains",T("keep-domain",e.keepDomain)),...e.autoFit?{autoFit:!0}:{},...m("passwordStore",O("password-store",e.passwordStore)),cliVersion:G};if(Buffer.byteLength(JSON.stringify(o),"utf8")>C){Y(s);return}return o},"buildCaptureSettings"),q=l(e=>{(e??[]).filter(t=>y(t)===null).forEach(t=>{process.stderr.write(` ! --exclude-domain ${JSON.stringify(t)} is not a usable domain pattern \u2014 nothing was excluded for it
|
|
5
|
+
`)})},"warnUnusableExcludes"),de=l((e,t)=>{if(!t)return e;const s=e.defaultExcludes===!1,o=(e.excludeDomain??[]).some(d=>y(d)!==null),n=!o&&t.excludeDomains!==void 0;return{...e,browser:e.browser??t.browser,profile:e.profile??t.profile,passwordStore:e.passwordStore??t.passwordStore,excludeDomain:o?e.excludeDomain:s?[]:t.excludeDomains,onlyDomain:e.onlyDomain??t.onlyDomains,keepDomain:e.keepDomain??t.keepDomains,autoFit:e.autoFit??t.autoFit,defaultExcludes:n?!1:e.defaultExcludes}},"mergeStoredSettings"),pe=l((e,t,s={})=>{if(!t)return;const o=l(g=>process.stderr.write(`${g}
|
|
6
|
+
`),"w"),n=s.userOptedOut===!0;o("> Refreshing with these effective settings:"),e.browser&&o(` --browser ${e.browser}`),e.profile&&o(` --profile ${e.profile}`);const d=(e.excludeDomain??[]).filter(g=>y(g)!==null);d.length&&o(` --exclude-domain ${d.join(", ")}`),e.onlyDomain?.length&&(o(` --only-domain ${e.onlyDomain.join(", ")}`),o(" ! only these domains are captured \u2014 everything else in the saved"),o(" profile is replaced, not kept")),e.keepDomain?.length&&o(` --keep-domain ${e.keepDomain.join(", ")}`),e.autoFit&&o(" --auto-fit (only acts if the capture exceeds the 2 MB cap)"),e.passwordStore&&o(` --password-store ${e.passwordStore}`),n&&o(" --no-default-excludes");const D=n&&!d.length,c=t.excludeDomains?.length;D&&c&&(o(` ! --no-default-excludes drops the ${c} stored exclusion pattern(s) for this run,`),o(" and re-pass --exclude-domain if you want to keep them.")),D?(o(" ! Unless the settings exceed the 8 KB cap (reported after the capture), the"),o(" refreshed profile is stored with NO exclusion list, so later flagless refreshes"),o(" replay 'exclude nothing' and stop applying this machine's config.")):n?(o(" ! --no-default-excludes is in force: ONLY the --exclude-domain patterns above"),o(" are excluded, and this machine's own config is not applied.")):c===void 0&&(o(" (no stored exclusion list \u2014 this machine's own config applies)"),o(" This run stores the effective list on the profile, so later flagless refreshes"),o(" replay that snapshot instead of re-reading this config.")),o(" Pass --browser, --profile, --password-store or a domain flag to override."),n||(o(c===void 0?" --exclude-domain adds to this machine's config for this run; there is no stored list to replace.":" --exclude-domain replaces the stored list and re-applies this machine's config."),c&&o(" --no-default-excludes drops the stored list for good."))},"printEffectiveSettings"),ce=l(async e=>{const{flags:t,requiresDisclaimer:s}=e;if(!t.browser||!t.profile){const r=[t.browser?null:"--browser",t.profile?null:"--profile"].filter(Boolean);throw new _(`${r.join(" and ")} ${r.length>1?"are":"is"} required: this profile has no stored capture settings to read them from (it was not created by the CLI, or this server does not return them yet)`)}const o=await A(t.browser,t.profile);s&&await z({acceptViaFlag:!!t.acceptTerms,ttlDaysOverride:t.termsTtlDays!==void 0?M("--terms-ttl-days",t.termsTtlDays):void 0});const n=await P(),d=R(n.excluded_domains,t.excludeDomain,t.defaultExcludes===!1);H(t.onlyDomain??[]),q(t.excludeDomain),process.stderr.write(`> Capturing ${o.browserDisplayName} / ${o.profileDisplayName}
|
|
7
|
+
`);const D=5,c=l(r=>{process.stderr.write(` ${r}
|
|
8
|
+
`)},"writeLine"),g={copying:"copying profile data\u2026",launching:"launching headless browser\u2026","waiting-for-debugger":"waiting for browser to be ready\u2026"};let $="",N=0;const F={profile:o,excludedDomains:d,onlyDomains:t.onlyDomain??[],passwordStoreOverride:t.passwordStore,onProgress:l(r=>{if(r.phase!=="done"){if(r.phase==="capturing-origins"){if(r.attempted===0){$!=="capturing-origins"&&($="capturing-origins",c("capturing per-origin storage\u2026"));return}if(!(r.attempted===r.total)&&r.attempted-N<D)return;N=r.attempted;const f=r.origin.length>50?r.origin.slice(0,47)+"\u2026":r.origin;c(` ${r.attempted}/${r.total} ${f}`);return}r.phase!==$&&($=r.phase,c(g[r.phase]??r.phase))}},"onProgress")},a=await I(F);if(t.onlyDomain&&t.onlyDomain.length>0){const r=L(a.state,t.onlyDomain),f=a.state.cookies.length-r.state.cookies.length,i=a.diagnostics.originCountSkippedByOnlyDomain+r.originsDropped;(f>0||i>0)&&(a.state=r.state,a.serialized=JSON.stringify(r.state),process.stderr.write(` \u2192 --only-domain kept ${a.state.cookies.length} cookies / ${a.state.origins.length} origins; dropped ${f} cookies / ${i} origins not matching: ${t.onlyDomain.join(", ")}
|
|
9
|
+
`))}const p=a.diagnostics,E=Buffer.byteLength(a.serialized,"utf-8");if(process.stderr.write(`> Captured ${p.cookieCountBeforeExclusion} cookies, ${p.originCountBeforeExclusion} origins in ${p.durationMs}ms (artifact: ${u(E)})
|
|
10
|
+
`),p.cookieCountExcluded>0||p.originCountExcluded>0){const r=p.excludedDomains.length?p.excludedDomains.join(", "):"(none)";process.stderr.write(` \u2192 Excluded ${p.cookieCountExcluded} cookies / ${p.originCountExcluded} origins matching: ${r}
|
|
11
|
+
`)}if(a.capHit&&process.stderr.write(` ! Hit the per-capture origin cap \u2014 some origins may be missing
|
|
12
|
+
`),p.failedOrigins.length>0){process.stderr.write(` ! ${p.failedOrigins.length} origin(s) failed to capture \u2014 their localStorage / IndexedDB is missing from the upload:
|
|
13
|
+
`);for(const r of p.failedOrigins)process.stderr.write(` - ${r.origin}: ${r.error}
|
|
14
|
+
`)}if(a.passwordStoreDefaulted&&process.stderr.write(` ! Linux password-store could not be detected \u2014 defaulted to "basic". If decryption failed, re-run with --password-store=<your store>
|
|
15
|
+
`),E>x){const r=j(a.state),h=10;process.stderr.write(` ! artifact size ${u(E)} exceeds the ${u(x)} server cap \u2014 heaviest origins:
|
|
16
|
+
`);for(const{origin:f,bytes:i}of r.slice(0,h))process.stderr.write(` ${u(i).padStart(10)} ${f}
|
|
17
|
+
`);if(r.length>h&&process.stderr.write(` \u2026 and ${r.length-h} more origins below ${u(r[h].bytes)}
|
|
18
|
+
`),t.autoFit){const f=t.keepDomain??[],i=U(a.state,x,f);if(i.dropped.length===0&&i.finalBytes<=x)process.stderr.write(` ! --auto-fit had nothing to drop \u2014 artifact unchanged
|
|
19
|
+
`);else{if(a.state=i.state,a.serialized=i.serialized,p.failedOrigins=[...p.failedOrigins,...i.dropped.map(w=>({origin:w,error:"dropped by --auto-fit to fit under the server cap",kind:"unknown"}))],i.dropped.length>0){process.stderr.write(` --auto-fit: dropped ${i.dropped.length} origin(s), now ${u(i.finalBytes)}:
|
|
20
|
+
`);for(const w of i.dropped)process.stderr.write(` - ${w}
|
|
21
|
+
`)}if(i.protectedFromDrop.length>0){process.stderr.write(` --auto-fit: ${i.protectedFromDrop.length} heavy origin(s) protected by --keep-domain:
|
|
22
|
+
`);for(const w of i.protectedFromDrop)process.stderr.write(` - ${w}
|
|
23
|
+
`)}i.finalBytes>x&&(i.protectedFromDrop.length>0?process.stderr.write(` ! Still ${u(i.finalBytes)} after the trim \u2014 the --keep-domain origins alone exceed the cap. Remove one or more --keep-domain entries, or accept the upload will be rejected.
|
|
19
24
|
`):process.stderr.write(` ! Even after dropping every droppable origin the artifact is still over cap. The cookies alone may be too heavy.
|
|
20
25
|
`))}}else process.stderr.write(` Re-run with --auto-fit to drop the heaviest origins automatically (combine with --keep-domain <domain> to protect specific sites; or --only-domain <domain> to capture just those), or pass --exclude-domain <host> for each you want removed.
|
|
21
|
-
`)}return
|
|
26
|
+
`)}return a},"runCapture");export{ae as SETTINGS_REPLAY_SOURCE,ne as addCaptureFlags,le as buildCaptureSettings,de as mergeStoredSettings,pe as printEffectiveSettings,ce as runCapture,H as validateOnlyDomain,q as warnUnusableExcludes};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
`);const
|
|
1
|
+
var l=Object.defineProperty;var n=(e,r)=>l(e,"name",{value:r,configurable:!0});import{addClientFlags as c,buildClient as d,printJson as u}from"../../cli-utils/client.js";import{addCaptureFlags as f,buildCaptureSettings as g,mergeStoredSettings as p,printEffectiveSettings as m,runCapture as h}from"../../cli-utils/capture-runner.js";import{getProfile as C}from"../../api/profiles.js";import{refreshProfile as S}from"../../api/refresh.js";const $=n(async e=>{const r=await d(e),s=await C(r,e.name),a=e.defaultExcludes===!1,i=p(e,s.captureSettings);m(i,s.captureSettings,{userOptedOut:a});const o=await h({flags:i,requiresDisclaimer:!0});process.stderr.write(`> Refreshing profile "${e.name}" on ${r.server}
|
|
2
|
+
`);const t=await S(r,{name:e.name,state:o.state,serialized:o.serialized,captureSettings:g(i,o.diagnostics,"refresh")});if(e.json){u(t);return}console.log(`\u2713 Profile "${t.name}" refreshed`),console.log(` id: ${t.id}`),console.log(` cookies: ${t.cookieCount}`),console.log(` origins: ${t.originCount}`),console.log(` updated: ${t.updatedAt}`)},"action"),k=n(e=>{const r=e.command("refresh").description("Capture a local browser profile and replace an existing cloud profile in place").requiredOption("--name <name>","Name of the existing cloud profile to refresh");f(c(r),{sourceOptional:!0}).action($)},"registerRefresh");export{k as registerRefresh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
`);const
|
|
1
|
+
var t=Object.defineProperty;var r=(e,o)=>t(e,"name",{value:o,configurable:!0});import{addClientFlags as n,buildClient as l,printJson as s}from"../../cli-utils/client.js";import{addCaptureFlags as c,buildCaptureSettings as d,runCapture as u}from"../../cli-utils/capture-runner.js";import{uploadProfile as p}from"../../api/upload.js";const m=r(async e=>{const o=await u({flags:e,requiresDisclaimer:!0}),a=await l(e);process.stderr.write(`> Uploading to ${a.server}
|
|
2
|
+
`);const i=await p(a,{name:e.name,state:o.state,serialized:o.serialized,captureSettings:d(e,o.diagnostics,"upload")});if(e.json){s(i);return}console.log(`\u2713 Profile "${i.name}" uploaded`),console.log(` id: ${i.id}`),console.log(` cookies: ${i.cookieCount}`),console.log(` origins: ${i.originCount}`),console.log(` created: ${i.createdAt}`)},"action"),$=r(e=>{const o=e.command("upload").description("Capture a local browser profile and upload it as a new cloud profile").requiredOption("--name <name>","Name for the new cloud profile");c(n(o)).action(m)},"registerUpload");export{$ as registerUpload};
|
package/build/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="0.
|
|
1
|
+
const o="0.3.0";export{o as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@browserless.io/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Browserless CLI — manage authentication profiles, sessions, and other Browserless features from your terminal.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,10 +32,12 @@
|
|
|
32
32
|
"fixture:build": "npm run build && node scripts/build-fixture-profile.js",
|
|
33
33
|
"verify:platform": "bash scripts/verify-cross-platform.sh",
|
|
34
34
|
"clean": "node scripts/clean.mjs",
|
|
35
|
-
"prepack": "npm run build:publish && node scripts/minify-build.mjs && node scripts/strip-test-artifacts.mjs"
|
|
35
|
+
"prepack": "npm run build:publish && node scripts/minify-build.mjs && node scripts/strip-test-artifacts.mjs",
|
|
36
|
+
"prepare": "husky"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|
|
38
|
-
"node": ">=24"
|
|
39
|
+
"node": ">=24",
|
|
40
|
+
"npm": ">=11.10.0"
|
|
39
41
|
},
|
|
40
42
|
"mocha": {
|
|
41
43
|
"spec": "build/**/*.spec.js",
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
"dependencies": {
|
|
46
48
|
"chrome-remote-interface": "^0.34.0",
|
|
47
49
|
"commander": "^15.0.0",
|
|
48
|
-
"ws": "^8.21.
|
|
50
|
+
"ws": "^8.21.1"
|
|
49
51
|
},
|
|
50
52
|
"optionalDependencies": {
|
|
51
53
|
"@napi-rs/keyring": "^1.3.0"
|
|
@@ -55,18 +57,20 @@
|
|
|
55
57
|
"@types/chai": "^5.2.3",
|
|
56
58
|
"@types/chrome-remote-interface": "^0.34.0",
|
|
57
59
|
"@types/mocha": "^10.0.10",
|
|
58
|
-
"@types/node": "^
|
|
59
|
-
"@types/sinon": "^
|
|
60
|
+
"@types/node": "^26.1.2",
|
|
61
|
+
"@types/sinon": "^22.0.0",
|
|
60
62
|
"@types/ws": "^8.18.1",
|
|
61
63
|
"chai": "^6.2.2",
|
|
62
64
|
"esbuild": "^0.28.1",
|
|
63
|
-
"eslint": "^10.
|
|
64
|
-
"globals": "^17.
|
|
65
|
+
"eslint": "^10.8.0",
|
|
66
|
+
"globals": "^17.8.0",
|
|
67
|
+
"husky": "^9.1.7",
|
|
68
|
+
"lint-staged": "^17.3.0",
|
|
65
69
|
"mocha": "^11.7.6",
|
|
66
|
-
"prettier": "
|
|
67
|
-
"sinon": "^22.
|
|
70
|
+
"prettier": "3.9.6",
|
|
71
|
+
"sinon": "^22.1.0",
|
|
68
72
|
"typescript": "^6.0.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
73
|
+
"typescript-eslint": "^8.65.0"
|
|
70
74
|
},
|
|
71
75
|
"overrides": {
|
|
72
76
|
"mocha": {
|
|
@@ -74,5 +78,14 @@
|
|
|
74
78
|
"serialize-javascript": "^7.0.5",
|
|
75
79
|
"glob": "^13.0.0"
|
|
76
80
|
}
|
|
81
|
+
},
|
|
82
|
+
"lint-staged": {
|
|
83
|
+
"**/*": "prettier --write --ignore-unknown"
|
|
84
|
+
},
|
|
85
|
+
"prettier": {
|
|
86
|
+
"semi": true,
|
|
87
|
+
"trailingComma": "all",
|
|
88
|
+
"singleQuote": true,
|
|
89
|
+
"printWidth": 80
|
|
77
90
|
}
|
|
78
91
|
}
|