From cd3d0882fa0c2f2a3b64f87f7045b64ef3c824b3 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 2 May 2023 15:57:55 -0700 Subject: [PATCH] Add "prettier" config --- .prettierignore | 2 + .prettierrc | 3 + package.json | 4 +- packages/agent-base/src/helpers.ts | 32 ++++----- packages/data-uri-to-buffer/jest.config.js | 4 +- packages/degenerator/jest.config.js | 4 +- packages/get-uri/jest.config.js | 4 +- packages/get-uri/src/index.ts | 4 +- packages/http-proxy-agent/src/index.ts | 7 +- packages/http-proxy-agent/test/test.js | 10 ++- packages/https-proxy-agent/src/index.ts | 2 +- packages/pac-proxy-agent/src/index.ts | 84 +++++++++++----------- packages/proxy-agent/src/index.ts | 6 +- packages/proxy/src/bin/proxy.ts | 39 +++++----- packages/proxy/src/pkg.ts | 2 +- packages/proxy/src/proxy.ts | 2 +- packages/socks-proxy-agent/src/index.ts | 32 ++++----- packages/socks-proxy-agent/test/test.js | 2 +- pnpm-lock.yaml | 8 +-- turbo.json | 1 + 20 files changed, 130 insertions(+), 122 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..0d661f23 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +packages/*/dist +packages/degenerator/test/* diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..8db60caa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} diff --git a/package.json b/package.json index 647e6c44..b799cdc1 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "lint": "turbo run lint", "test": "turbo run test", "test-e2e": "turbo run test-e2e", - "format": "prettier --write \"**/*.{ts,tsx,md}\"" + "format": "prettier --write \"**/*.{ts,js}\"" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.59.1", @@ -14,7 +14,7 @@ "eslint": "^7.32.0", "eslint-config-prettier": "^8.8.0", "eslint-config-turbo": "^1.9.3", - "prettier": "^2.5.1", + "prettier": "^2.8.8", "turbo": "latest" } } diff --git a/packages/agent-base/src/helpers.ts b/packages/agent-base/src/helpers.ts index 5088b665..17f3a3ce 100644 --- a/packages/agent-base/src/helpers.ts +++ b/packages/agent-base/src/helpers.ts @@ -1,21 +1,21 @@ -import * as http from "http"; -import * as https from "https"; -import type { Readable } from "stream"; +import * as http from 'http'; +import * as https from 'https'; +import type { Readable } from 'stream'; export async function toBuffer(stream: Readable): Promise { - let length = 0; - const chunks: Buffer[] = []; - for await (const chunk of stream) { - length += chunk.length; - chunks.push(chunk); - } - return Buffer.concat(chunks, length); + let length = 0; + const chunks: Buffer[] = []; + for await (const chunk of stream) { + length += chunk.length; + chunks.push(chunk); + } + return Buffer.concat(chunks, length); } // eslint-disable-next-line @typescript-eslint/no-explicit-any export async function json(stream: Readable): Promise { - const buf = await toBuffer(stream); - return JSON.parse(buf.toString('utf8')); + const buf = await toBuffer(stream); + return JSON.parse(buf.toString('utf8')); } export function req( @@ -23,10 +23,10 @@ export function req( opts: https.RequestOptions = {} ): Promise { return new Promise((resolve, reject) => { - const href = typeof url === 'string' ? url : url.href; - (href.startsWith("https:") ? https : http) + const href = typeof url === 'string' ? url : url.href; + (href.startsWith('https:') ? https : http) .request(url, opts, resolve) - .once("error", reject) + .once('error', reject) .end(); }); -} \ No newline at end of file +} diff --git a/packages/data-uri-to-buffer/jest.config.js b/packages/data-uri-to-buffer/jest.config.js index 07978f56..ee66e76e 100644 --- a/packages/data-uri-to-buffer/jest.config.js +++ b/packages/data-uri-to-buffer/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', + preset: 'ts-jest', + testEnvironment: 'node', }; diff --git a/packages/degenerator/jest.config.js b/packages/degenerator/jest.config.js index 07978f56..ee66e76e 100644 --- a/packages/degenerator/jest.config.js +++ b/packages/degenerator/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', + preset: 'ts-jest', + testEnvironment: 'node', }; diff --git a/packages/get-uri/jest.config.js b/packages/get-uri/jest.config.js index 3745fc22..6231bde1 100644 --- a/packages/get-uri/jest.config.js +++ b/packages/get-uri/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', + preset: 'ts-jest', + testEnvironment: 'node', }; diff --git a/packages/get-uri/src/index.ts b/packages/get-uri/src/index.ts index 1ae32ebf..22ac7e6f 100644 --- a/packages/get-uri/src/index.ts +++ b/packages/get-uri/src/index.ts @@ -26,8 +26,8 @@ export const protocols = { export type Protocols = typeof protocols; export type ProtocolsOptions = { - [P in keyof Protocols]: NonNullable[1]> -} + [P in keyof Protocols]: NonNullable[1]>; +}; export type ProtocolOpts = { [P in keyof ProtocolsOptions]: Protocol extends P diff --git a/packages/http-proxy-agent/src/index.ts b/packages/http-proxy-agent/src/index.ts index 8f320148..fe069849 100644 --- a/packages/http-proxy-agent/src/index.ts +++ b/packages/http-proxy-agent/src/index.ts @@ -13,7 +13,7 @@ type Protocol = T extends `${infer Protocol}:${infer _}` ? Protocol : never; type ConnectOptsMap = { http: Omit; https: Omit; -} +}; export type HttpProxyAgentOptions = { [P in keyof ConnectOptsMap]: Protocol extends P @@ -53,7 +53,10 @@ export class HttpProxyAgent extends Agent { debug('Creating new HttpProxyAgent instance: %o', this.proxy.href); // Trim off the brackets from IPv6 addresses - const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ''); + const host = (this.proxy.hostname || this.proxy.host).replace( + /^\[|\]$/g, + '' + ); const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.secureProxy diff --git a/packages/http-proxy-agent/test/test.js b/packages/http-proxy-agent/test/test.js index 8170ac9e..5e2aa963 100644 --- a/packages/http-proxy-agent/test/test.js +++ b/packages/http-proxy-agent/test/test.js @@ -105,7 +105,9 @@ describe('HttpProxyAgent', () => { assert.equal(false, agent.secureProxy); }); it('should be `true` when "https:" protocol is used', () => { - let agent = new HttpProxyAgent(`https://127.0.0.1:${proxyPort}`); + let agent = new HttpProxyAgent( + `https://127.0.0.1:${proxyPort}` + ); assert.equal(true, agent.secureProxy); }); }); @@ -200,7 +202,7 @@ describe('HttpProxyAgent', () => { }); it('should receive the 407 authorization code on the `http.ClientResponse`', (done) => { // reject all requests - proxy.authenticate = () => false + proxy.authenticate = () => false; let proxyUri = `http://127.0.0.1:${proxyPort}`; let agent = new HttpProxyAgent(proxyUri); @@ -222,7 +224,9 @@ describe('HttpProxyAgent', () => { // set a proxy authentication function for this test proxy.authenticate = (req) => { // username:password is "foo:bar" - return req.headers['proxy-authorization'] === 'Basic Zm9vOmJhcg==' + return ( + req.headers['proxy-authorization'] === 'Basic Zm9vOmJhcg==' + ); }; // set HTTP "request" event handler for this test diff --git a/packages/https-proxy-agent/src/index.ts b/packages/https-proxy-agent/src/index.ts index 306da597..5adf6c6e 100644 --- a/packages/https-proxy-agent/src/index.ts +++ b/packages/https-proxy-agent/src/index.ts @@ -69,7 +69,7 @@ export class HttpsProxyAgent extends Agent { this.connectOpts = { // Attempt to negotiate http/1.1 for proxy servers that support http/2 ALPNProtocols: ['http/1.1'], - ...(opts ? omit(opts, "headers") : null), + ...(opts ? omit(opts, 'headers') : null), host, port, }; diff --git a/packages/pac-proxy-agent/src/index.ts b/packages/pac-proxy-agent/src/index.ts index c6ec5aff..c0782967 100644 --- a/packages/pac-proxy-agent/src/index.ts +++ b/packages/pac-proxy-agent/src/index.ts @@ -14,7 +14,7 @@ import { getUri, protocols as gProtocols, ProtocolOpts as GetUriOptions, -} from "get-uri"; +} from 'get-uri'; import { createPacResolver, FindProxyForURL, @@ -28,8 +28,8 @@ type Protocols = keyof typeof gProtocols; // eslint-disable-next-line @typescript-eslint/no-unused-vars type Protocol = T extends `pac+${infer P}:${infer _}` ? P - // eslint-disable-next-line @typescript-eslint/no-unused-vars - : T extends `${infer P}:${infer _}` + : // eslint-disable-next-line @typescript-eslint/no-unused-vars + T extends `${infer P}:${infer _}` ? P : never; @@ -55,11 +55,11 @@ export type PacProxyAgentOptions = PacResolverOptions & */ export class PacProxyAgent extends Agent { static readonly protocols: `pac-${Protocols}`[] = [ - "pac-data", - "pac-file", - "pac-ftp", - "pac-http", - "pac-https", + 'pac-data', + 'pac-file', + 'pac-ftp', + 'pac-http', + 'pac-https', ]; uri: URL; @@ -73,16 +73,16 @@ export class PacProxyAgent extends Agent { super(); // Strip the "pac+" prefix - const uriStr = typeof uri === "string" ? uri : uri.href; - this.uri = new URL(uriStr.replace(/^pac\+/i, "")); + const uriStr = typeof uri === 'string' ? uri : uri.href; + this.uri = new URL(uriStr.replace(/^pac\+/i, '')); - debug("Creating PacProxyAgent with URI %o", this.uri.href); + debug('Creating PacProxyAgent with URI %o', this.uri.href); // @ts-expect-error Not sure why TS is complaining hereā€¦ this.opts = { ...opts }; this.cache = undefined; this.resolver = undefined; - this.resolverHash = ""; + this.resolverHash = ''; this.resolverPromise = undefined; // For `PacResolver` @@ -118,17 +118,17 @@ export class PacProxyAgent extends Agent { const code = await this.loadPacFile(); // Create a sha1 hash of the JS code - const hash = crypto.createHash("sha1").update(code).digest("hex"); + const hash = crypto.createHash('sha1').update(code).digest('hex'); if (this.resolver && this.resolverHash === hash) { debug( - "Same sha1 hash for code - contents have not changed, reusing previous proxy resolver" + 'Same sha1 hash for code - contents have not changed, reusing previous proxy resolver' ); return this.resolver; } // Cache the resolver - debug("Creating new proxy resolver instance"); + debug('Creating new proxy resolver instance'); this.resolver = createPacResolver(code, this.opts); // Store that sha1 hash for future comparison purposes @@ -138,10 +138,10 @@ export class PacProxyAgent extends Agent { } catch (err: unknown) { if ( this.resolver && - (err as NodeJS.ErrnoException).code === "ENOTMODIFIED" + (err as NodeJS.ErrnoException).code === 'ENOTMODIFIED' ) { debug( - "Got ENOTMODIFIED response, reusing previous proxy resolver" + 'Got ENOTMODIFIED response, reusing previous proxy resolver' ); return this.resolver; } @@ -155,16 +155,16 @@ export class PacProxyAgent extends Agent { * @api private */ private async loadPacFile(): Promise { - debug("Loading PAC file: %o", this.uri); + debug('Loading PAC file: %o', this.uri); const rs = await getUri(this.uri, { ...this.opts, cache: this.cache }); - debug("Got `Readable` instance for URI"); + debug('Got `Readable` instance for URI'); this.cache = rs; const buf = await toBuffer(rs); - debug("Read %o byte PAC file from URI", buf.length); + debug('Read %o byte PAC file from URI', buf.length); - return buf.toString("utf8"); + return buf.toString('utf8'); } /** @@ -184,7 +184,7 @@ export class PacProxyAgent extends Agent { const defaultPort = secureEndpoint ? 443 : 80; let path = req.path; let search: string | null = null; - const firstQuestion = path.indexOf("?"); + const firstQuestion = path.indexOf('?'); if (firstQuestion !== -1) { search = path.substring(firstQuestion); path = path.substring(0, firstQuestion); @@ -192,7 +192,7 @@ export class PacProxyAgent extends Agent { const urlOpts = { ...opts, - protocol: secureEndpoint ? "https:" : "http:", + protocol: secureEndpoint ? 'https:' : 'http:', pathname: path, search, @@ -206,12 +206,12 @@ export class PacProxyAgent extends Agent { }; const url = format(urlOpts); - debug("url: %o", url); + debug('url: %o', url); let result = await resolver(url); // Default to "DIRECT" if a falsey value was returned (or nothing) if (!result) { - result = "DIRECT"; + result = 'DIRECT'; } const proxies = String(result) @@ -219,34 +219,34 @@ export class PacProxyAgent extends Agent { .split(/\s*;\s*/g) .filter(Boolean); - if (this.opts.fallbackToDirect && !proxies.includes("DIRECT")) { - proxies.push("DIRECT"); + if (this.opts.fallbackToDirect && !proxies.includes('DIRECT')) { + proxies.push('DIRECT'); } for (const proxy of proxies) { let agent: Agent | null = null; let socket: net.Socket | null = null; const [type, target] = proxy.split(/\s+/); - debug("Attempting to use proxy: %o", proxy); + debug('Attempting to use proxy: %o', proxy); - if (type === "DIRECT") { + if (type === 'DIRECT') { // Direct connection to the destination endpoint socket = secureEndpoint ? tls.connect(opts) : net.connect(opts); - } else if (type === "SOCKS" || type === "SOCKS5") { + } else if (type === 'SOCKS' || type === 'SOCKS5') { // Use a SOCKSv5h proxy agent = new SocksProxyAgent(`socks://${target}`, this.opts); - } else if (type === "SOCKS4") { + } else if (type === 'SOCKS4') { // Use a SOCKSv4a proxy agent = new SocksProxyAgent(`socks4a://${target}`, this.opts); } else if ( - type === "PROXY" || - type === "HTTP" || - type === "HTTPS" + type === 'PROXY' || + type === 'HTTP' || + type === 'HTTPS' ) { // Use an HTTP or HTTPS proxy // http://dev.chromium.org/developers/design-documents/secure-web-proxy const proxyURL = `${ - type === "HTTPS" ? "https" : "http" + type === 'HTTPS' ? 'https' : 'http' }://${target}`; if (secureEndpoint) { agent = new HttpsProxyAgent(proxyURL, this.opts); @@ -258,24 +258,24 @@ export class PacProxyAgent extends Agent { try { if (socket) { // "DIRECT" connection, wait for connection confirmation - await once(socket, "connect"); - req.emit("proxy", { proxy, socket }); + await once(socket, 'connect'); + req.emit('proxy', { proxy, socket }); return socket; } if (agent) { const s = await agent.connect(req, opts); if (!(s instanceof net.Socket)) { throw new Error( - "Expected a `net.Socket` to be returned from agent" + 'Expected a `net.Socket` to be returned from agent' ); } - req.emit("proxy", { proxy, socket: s }); + req.emit('proxy', { proxy, socket: s }); return s; } throw new Error(`Could not determine proxy type for: ${proxy}`); } catch (err) { - debug("Got error for proxy %o: %o", proxy, err); - req.emit("proxy", { proxy, error: err }); + debug('Got error for proxy %o: %o', proxy, err); + req.emit('proxy', { proxy, error: err }); } } @@ -285,4 +285,4 @@ export class PacProxyAgent extends Agent { )}` ); } -} \ No newline at end of file +} diff --git a/packages/proxy-agent/src/index.ts b/packages/proxy-agent/src/index.ts index 45e96976..c0ad97a0 100644 --- a/packages/proxy-agent/src/index.ts +++ b/packages/proxy-agent/src/index.ts @@ -43,10 +43,10 @@ function isValidProtocol(v: string): v is ValidProtocol { return (PROTOCOLS as readonly string[]).includes(v); } -export type ProxyAgentOptions = HttpProxyAgentOptions<""> & - HttpsProxyAgentOptions<""> & +export type ProxyAgentOptions = HttpProxyAgentOptions<''> & + HttpsProxyAgentOptions<''> & SocksProxyAgentOptions & - PacProxyAgentOptions<"">; + PacProxyAgentOptions<''>; /** * Uses the appropriate `Agent` subclass based off of the "proxy" diff --git a/packages/proxy/src/bin/proxy.ts b/packages/proxy/src/bin/proxy.ts index 19975f29..35912588 100755 --- a/packages/proxy/src/bin/proxy.ts +++ b/packages/proxy/src/bin/proxy.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node import args from 'args'; -import createDebug from 'debug' +import createDebug from 'debug'; import { spawn } from 'child_process'; import once from '@tootallnate/once'; // @ts-expect-error no types for "basic-auth-parser" @@ -17,19 +17,18 @@ args.option( 'Port number to the proxy server should bind to', 3128, parseInt -) - .option( - 'authenticate', - '"authenticate" command to run when the "Proxy-Authorization" header is sent', - '', - String - ) - //.option( - // 'local-address', - // 'IP address of the network interface to send the outgoing requests through', - // '', - // String - //); +).option( + 'authenticate', + '"authenticate" command to run when the "Proxy-Authorization" header is sent', + '', + String +); +//.option( +// 'local-address', +// 'IP address of the network interface to send the outgoing requests through', +// '', +// String +//); //const flags = args.parse(process.argv, { name: pkg.name }); const flags = args.parse(process.argv); @@ -74,27 +73,23 @@ if (authenticate) { // spawn a child process with the user-specified "authenticate" command const env = { ...process.env }; // add "auth" related ENV variables - for (const [ key, value ] of Object.entries(parsed)) { + for (const [key, value] of Object.entries(parsed)) { env['PROXY_AUTH_' + key.toUpperCase()] = value as string; } // TODO: add Windows support (use `cross-spawn`?) const child = spawn('/bin/sh', ['-c', authenticate], { env, - stdio: ['ignore', 'inherit', 'inherit'] + stdio: ['ignore', 'inherit', 'inherit'], }); const [code, signal] = await once(child, 'exit'); - debug( - 'authentication child process "exit" event: %s %s', - code, - signal - ); + debug('authentication child process "exit" event: %s %s', code, signal); return code === 0; }; } -proxy.listen(port, function() { +proxy.listen(port, function () { console.log( 'HTTP(s) proxy server listening on port %d', // @ts-expect-error "port" is a number diff --git a/packages/proxy/src/pkg.ts b/packages/proxy/src/pkg.ts index 3c359ec4..610db83a 100644 --- a/packages/proxy/src/pkg.ts +++ b/packages/proxy/src/pkg.ts @@ -3,4 +3,4 @@ import { readFileSync } from 'fs'; export default JSON.parse( readFileSync(join(__dirname, '../package.json'), 'utf8') -); \ No newline at end of file +); diff --git a/packages/proxy/src/proxy.ts b/packages/proxy/src/proxy.ts index c58c616f..dee0187b 100644 --- a/packages/proxy/src/proxy.ts +++ b/packages/proxy/src/proxy.ts @@ -415,7 +415,7 @@ async function onconnect( const lastColon = req.url.lastIndexOf(':'); const host = req.url.substring(0, lastColon); const port = parseInt(req.url.substring(lastColon + 1), 10); - const opts = { host: host.replace(/^\[|\]$/g, ""), port }; + const opts = { host: host.replace(/^\[|\]$/g, ''), port }; debug.proxyRequest('connecting to proxy target %o', opts); const target = net.connect(opts); diff --git a/packages/socks-proxy-agent/src/index.ts b/packages/socks-proxy-agent/src/index.ts index 5e4fddd9..9d86ee60 100644 --- a/packages/socks-proxy-agent/src/index.ts +++ b/packages/socks-proxy-agent/src/index.ts @@ -84,11 +84,11 @@ export interface SocksProxyAgentOptions export class SocksProxyAgent extends Agent { static protocols = [ - "socks", - "socks4", - "socks4a", - "socks5", - "socks5h", + 'socks', + 'socks4', + 'socks4a', + 'socks5', + 'socks5h', ] as const; private readonly shouldLookup: boolean; @@ -99,7 +99,7 @@ export class SocksProxyAgent extends Agent { constructor(uri: string | URL, opts?: SocksProxyAgentOptionsExtra) { super(); - const url = typeof uri === "string" ? new URL(uri) : uri; + const url = typeof uri === 'string' ? new URL(uri) : uri; const { proxy, lookup } = parseSocksURL(url); this.shouldLookup = lookup; @@ -123,7 +123,7 @@ export class SocksProxyAgent extends Agent { const { port, lookup: lookupFn = dns.lookup } = opts; if (!host) { - throw new Error("No `host` defined!"); + throw new Error('No `host` defined!'); } if (shouldLookup) { @@ -145,9 +145,9 @@ export class SocksProxyAgent extends Agent { proxy, destination: { host, - port: typeof port === "number" ? port : parseInt(port, 10), + port: typeof port === 'number' ? port : parseInt(port, 10), }, - command: "connect", + command: 'connect', timeout: timeout ?? undefined, }; @@ -157,30 +157,30 @@ export class SocksProxyAgent extends Agent { if (tlsSocket) tlsSocket.destroy(); }; - debug("Creating socks proxy connection: %o", socksOpts); + debug('Creating socks proxy connection: %o', socksOpts); const { socket } = await SocksClient.createConnection(socksOpts); - debug("Successfully created socks proxy connection"); + debug('Successfully created socks proxy connection'); if (timeout !== null) { socket.setTimeout(timeout); - socket.on("timeout", () => cleanup()); + socket.on('timeout', () => cleanup()); } if (opts.secureEndpoint) { // The proxy is connecting to a TLS server, so upgrade // this socket connection to a TLS connection. - debug("Upgrading socket connection to TLS"); + debug('Upgrading socket connection to TLS'); const servername = opts.servername ?? opts.host; const tlsSocket = tls.connect({ - ...omit(opts, "host", "path", "port"), + ...omit(opts, 'host', 'path', 'port'), socket, servername, ...this.tlsConnectionOptions, }); - tlsSocket.once("error", (error) => { - debug("Socket TLS error", error.message); + tlsSocket.once('error', (error) => { + debug('Socket TLS error', error.message); cleanup(tlsSocket); }); diff --git a/packages/socks-proxy-agent/test/test.js b/packages/socks-proxy-agent/test/test.js index c0144404..69e9840d 100644 --- a/packages/socks-proxy-agent/test/test.js +++ b/packages/socks-proxy-agent/test/test.js @@ -162,7 +162,7 @@ describe('SocksProxyAgent', () => { headers: { foo: 'bar' }, }); assert.equal(404, res.statusCode); - + const body = await json(res); assert.equal('bar', body.foo); }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6722399e..c36307f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,8 +20,8 @@ importers: specifier: ^1.9.3 version: 1.9.3(eslint@7.32.0) prettier: - specifier: ^2.5.1 - version: 2.8.0 + specifier: ^2.8.8 + version: 2.8.8 turbo: specifier: latest version: 1.9.3 @@ -4200,8 +4200,8 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier@2.8.0: - resolution: {integrity: sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==} + /prettier@2.8.8: + resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} engines: {node: '>=10.13.0'} hasBin: true dev: true diff --git a/turbo.json b/turbo.json index 61b3a779..879851b0 100644 --- a/turbo.json +++ b/turbo.json @@ -10,6 +10,7 @@ "pipeline": { "build": { "dependsOn": ["^build"], + "inputs": ["src/**"], "outputs": ["dist/**"] }, "test": {