Skip to content

Commit 2e9d9c0

Browse files
GermanAizekLukas Holzer
andauthored
fix: improve grammar and typos in comments (#4922)
Signed-off-by: Герман Семенов <[email protected]> Co-authored-by: Lukas Holzer <[email protected]>
1 parent 049eb64 commit 2e9d9c0

File tree

34 files changed

+43
-43
lines changed

34 files changed

+43
-43
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DirType, FileSystem } from '../file-system.js'
22

3-
/** A sample implementation of a github provider */
3+
/** A sample implementation of a GitHub provider */
44
export class GithubProvider {
55
constructor(public repo: string, public branch?: string) {}
66

@@ -34,7 +34,7 @@ export class GithubProvider {
3434
}
3535
}
3636

37-
/** A sample implementation of a web based file system that fetches from Github */
37+
/** A sample implementation of a web based file system that fetches from GitHub */
3838
export class WebFS extends FileSystem {
3939
constructor(public git: GithubProvider) {
4040
super()

packages/build-info/src/build-systems/build-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export abstract class BaseBuildTool implements BuildSystem {
2424
}
2525
}
2626

27-
/** Get's a JSON from the class information */
27+
/** Gets a JSON from the class information */
2828
toJSON() {
2929
return { id: this.id, name: this.name, version: this.version }
3030
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export abstract class FileSystem {
5050
logger: Logger = new DefaultLogger()
5151

5252
/**
53-
* This is a in memory representation of the parsed files
53+
* This is an in memory representation of the parsed files
5454
* The keys are always stored in posix style
5555
* If the value is null then the file did not get read up in memory yet.
5656
* If the value is a string it already got read up in mem.
@@ -106,7 +106,7 @@ export abstract class FileSystem {
106106
// the max we have to go up
107107
const up = Math.max(toUp, fromUp)
108108

109-
// if we have something from the 'from' to go up go up the max difference
109+
// if we have something from the 'from' to go up the max difference
110110
const result = fromUp > 0 ? [...new Array<string>(up).fill('..')] : []
111111

112112
// if we have some parts left add them to the going up

packages/build-info/src/package-managers/detect-package-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type PkgManagerFields = {
1616
lockFile: string
1717
/** Environment variable that can be used to force the usage of a package manager even though there is no lock file or a different lock file */
1818
forceEnvironment?: string
19-
/** Flags that should be used for running the install command */
19+
/** Flags that should be used for running the installation command */
2020
installFlags?: string[]
2121
/** A list of all cache locations for the package manager */
2222
cacheLocations?: string[]
@@ -91,7 +91,7 @@ export const detectPackageManager = async (project: Project): Promise<PkgManager
9191
if (lockFilePath) {
9292
const lockFile = project.fs.basename(lockFilePath)
9393
const pkgManager = lockFileMap[lockFile]
94-
// check if it not got disabled
94+
// check if it is not got disabled
9595
if (!(pkgManager.forceEnvironment && project.getEnv(pkgManager.forceEnvironment) === 'false')) {
9696
return pkgManager
9797
}

packages/build-info/src/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class Project {
2727
this.baseDirectory = fs.resolve(root || '', baseDirectory !== undefined ? baseDirectory : fs.cwd)
2828
this.root = root ? fs.resolve(fs.cwd, root) : undefined
2929

30-
// if the root and the base directory are the same unset the root again as its not a workspace
30+
// if the root and the base directory are the same unset the root again as it's not a workspace
3131
if (this.root === this.baseDirectory) {
3232
this.root = undefined
3333
}

packages/build/src/core/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const logConfigInfo = function ({ logs, configPath, buildDir, netlifyConfig, con
129129
// Retrieve the configuration after it's been changed.
130130
// This ensures any configuration changes done by plugins is validated and
131131
// normalized.
132-
// We use `debug: false` to avoid any debug logs. Otherwise every configuration
132+
// We use `debug: false` to avoid any debug logs. Otherwise, every configuration
133133
// change would create debug logs which would be too verbose.
134134
// Errors are propagated and assigned to the specific plugin or core step
135135
// which changed the configuration.
@@ -146,7 +146,7 @@ export const resolveUpdatedConfig = async function (configOpts, configMutations)
146146
// If `netlify.toml` does not exist, create it inside repository root.
147147
// This is only done when `saveConfig` is `true`. This allows performing this
148148
// in the buildbot but not in local builds, since only the latter run in a
149-
// container and we want to avoid saving files on local machines.
149+
// container, and we want to avoid saving files on local machines.
150150
export const saveUpdatedConfig = async function ({
151151
configMutations,
152152
buildDir,

packages/build/src/core/flags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Defaults to any netlify.toml in the git repository root directory or the base di
1212
defaultConfig: {
1313
string: true,
1414
describe: `JSON configuration object containing default values.
15-
Each configuration default value is used unless overriden through the main configuration file.
15+
Each configuration default value is used unless overridden through the main configuration file.
1616
Default: none.`,
1717
coerce: jsonParse,
1818
hidden: true,

packages/build/src/core/lingering.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { logLingeringProcesses } from '../log/messages/core.js'
55
// Print a warning when some build processes are still running.
66
// We cannot rely on using the process tree:
77
// - This is because it is impossible to know whether a process was a child of
8-
// of another once its parent process has exited. When that happens, the s
8+
// another once its parent process has exited. When that happens, the s
99
// child becomes inherited by `init`, changing its `ppid`. The information
1010
// about the original parent is then lost.
1111
// - The only way to implement this would be to repeatedly list processes as

packages/build/src/core/missing_side_file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { pathExists } from 'path-exists'
44

55
import { logMissingSideFile } from '../log/messages/core.js'
66

7-
// Some files like `_headers` and `_redirects` must be copied to the publish
7+
// Some files like `_headers` and `_redirects` must be copied to the publishing
88
// directory to be used in production. When those are present in the repository
99
// but not in the publish directory, this most likely indicates that the build
1010
// command accidentally forgot to copy those. We then print a warning message.

packages/build/src/core/normalize_flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const getDefaultFlags = function ({ env: envOpt = {} }, combinedEnv) {
9696
}
9797
}
9898

99-
// Compute the telemetry flag, it's disabled by default and we want to always disable it
99+
// Compute the telemetry flag, it's disabled by default, and we want to always disable it
100100
// if BUILD_TELEMETRY_DISABLED is passed.
101101
const computeTelemetry = function (flags, envOpts) {
102102
return envOpts.BUILD_TELEMETRY_DISABLED ? { telemetry: false } : { telemetry: flags.telemetry }

0 commit comments

Comments
 (0)