Skip to content

Commit 1d3294e

Browse files
chore(deps): update dependency prettier to v3 (#6000)
* chore(deps): update dependency prettier to v3 * chore: run `npm format` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mateusz Bocian <[email protected]>
1 parent 96ef3fa commit 1d3294e

File tree

13 files changed

+79
-55
lines changed

13 files changed

+79
-55
lines changed

package-lock.json

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"lerna": "^5.5.2",
5959
"lint-staged": "^13.0.3",
6060
"nx": "^14.7.13",
61-
"prettier": "^2.8.4"
61+
"prettier": "^3.0.0"
6262
},
6363
"engines": {
6464
"node": "^14.16.0 || >=16.0.0"

packages/build-info/e2e/fixture/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

packages/build-info/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="utf-8" />

packages/build-info/src/browser/file-system.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { DirType, Environment, FileSystem } from '../file-system.js'
22

33
/** A sample implementation of a GitHub provider */
44
export class GithubProvider {
5-
constructor(public repo: string, public branch?: string) {}
5+
constructor(
6+
public repo: string,
7+
public branch?: string,
8+
) {}
69

710
async dir(filePath = ''): Promise<{ path: string; type: 'file' | 'dir' }[]> {
811
let path = `/repos/${this.repo}/contents${filePath}`

packages/build-info/src/project.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ export class Project {
103103
return await this.fs.fileExists(this.fs.resolve(this.fs.cwd, 'redwood.toml'))
104104
}
105105

106-
constructor(public fs: FileSystem, baseDirectory?: string, root?: string) {
106+
constructor(
107+
public fs: FileSystem,
108+
baseDirectory?: string,
109+
root?: string,
110+
) {
107111
this.baseDirectory = fs.resolve(root || '', baseDirectory !== undefined ? baseDirectory : fs.cwd)
108112
this.root = root ? fs.resolve(fs.cwd, root) : undefined
109113

packages/build-info/src/workspaces/get-workspace-packages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export async function findPackages(
6666
const startDir = project.jsWorkspaceRoot
6767
? project.fs.resolve(project.jsWorkspaceRoot, dir)
6868
: project.root
69-
? project.fs.resolve(project.root, dir)
70-
: project.fs.resolve(dir)
69+
? project.fs.resolve(project.root, dir)
70+
: project.fs.resolve(dir)
7171
try {
7272
content = await project.fs.readDir(startDir, true)
7373
} catch (err) {

packages/config/src/env/main.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,15 @@ const getGeneralEnv = async function ({
130130
const getInternalEnv = function (
131131
cachedEnv: Record<string, { sources: string[]; value: string }>,
132132
): Record<string, string> {
133-
return Object.entries(cachedEnv).reduce((prev, [key, { sources, value }]) => {
134-
if (sources.includes('internal')) {
135-
prev[key] = value
136-
}
137-
return prev
138-
}, {} as Record<string, string>)
133+
return Object.entries(cachedEnv).reduce(
134+
(prev, [key, { sources, value }]) => {
135+
if (sources.includes('internal')) {
136+
prev[key] = value
137+
}
138+
return prev
139+
},
140+
{} as Record<string, string>,
141+
)
139142
}
140143

141144
const getDeployUrls = function ({

packages/edge-bundler/node/bundler.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,17 @@ interface CreateFunctionConfigOptions {
241241
}
242242

243243
const createFunctionConfig = ({ internalFunctionsWithConfig, declarations }: CreateFunctionConfigOptions) =>
244-
Object.entries(internalFunctionsWithConfig).reduce((acc, [functionName, config]) => {
245-
const mergedConfigFields = mergeWithDeclarationConfig({ functionName, config, declarations })
246-
247-
return {
248-
...acc,
249-
[functionName]: addGeneratorFallback(mergedConfigFields),
250-
}
251-
}, {} as Record<string, FunctionConfig>)
244+
Object.entries(internalFunctionsWithConfig).reduce(
245+
(acc, [functionName, config]) => {
246+
const mergedConfigFields = mergeWithDeclarationConfig({ functionName, config, declarations })
247+
248+
return {
249+
...acc,
250+
[functionName]: addGeneratorFallback(mergedConfigFields),
251+
}
252+
},
253+
{} as Record<string, FunctionConfig>,
254+
)
252255

253256
interface VendorNPMOptions {
254257
basePath: string

packages/framework-info/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="utf-8" />

0 commit comments

Comments
 (0)