Skip to content

Commit c1e4460

Browse files
chore: update dependencies
Signed-off-by: Henry Gressmann <[email protected]>
1 parent ad1a07a commit c1e4460

File tree

8 files changed

+194
-217
lines changed

8 files changed

+194
-217
lines changed

.vscode/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"test": "turbo run test --include-dependencies"
1212
},
1313
"devDependencies": {
14-
"@biomejs/biome": "1.3.3",
15-
"@biomejs/cli-linux-x64": "^1.3.3",
16-
"@changesets/changelog-github": "^0.4.8",
17-
"@changesets/cli": "^2.26.2",
18-
"@types/node": "^20.8.10",
14+
"@biomejs/biome": "1.4.1",
15+
"@biomejs/cli-linux-x64": "^1.4.1",
16+
"@changesets/changelog-github": "^0.5.0",
17+
"@changesets/cli": "^2.27.1",
18+
"@types/node": "^20.10.2",
1919
"scripts": "workspace:*",
2020
"turbo": "^1.10.16"
2121
},
2222
"dependencies": {
23-
"typescript": "^5.2.2"
23+
"typescript": "^5.3.2"
2424
}
2525
}

packages/lit-q/lib/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ describe("Mutation", () => {
2828
this.myQuery.loading
2929
? "Loading..."
3030
: this.myQuery.error
31-
? "Error!"
32-
: JSON.stringify(this.myQuery.data)
31+
? "Error!"
32+
: JSON.stringify(this.myQuery.data)
3333
}
3434
</p>
3535
<h1>My Mutation</h1>
@@ -39,8 +39,8 @@ describe("Mutation", () => {
3939
this.myMutation.loading
4040
? "Loading..."
4141
: this.myMutation.error
42-
? "Error!"
43-
: JSON.stringify(this.myMutation.data)
42+
? "Error!"
43+
: JSON.stringify(this.myMutation.data)
4444
}
4545
</p>
4646
`;

packages/minify-literals/lib/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export interface BaseOptions {
9797
}
9898

9999
/**
100-
* A MagicString-like instance. <code>minify-html-literals</code> only uses a
100+
* A MagicString-like instance. <code>minify-literals</code> only uses a
101101
* subset of the MagicString API to overwrite the source code and generate
102102
* source maps.
103103
*/
@@ -111,7 +111,7 @@ export interface MagicStringLike {
111111
* A v3 SourceMap.
112112
*
113113
* <code>magic-string> incorrectly declares the SourceMap type with a version
114-
* string instead of a number, so <code>minify-html-literals</code> declares
114+
* string instead of a number, so <code>minify-literals</code> declares
115115
* its own type.
116116
*/
117117
export interface SourceMap {
@@ -270,14 +270,14 @@ export async function minifyHTMLLiterals(source: string, options: Options = {}):
270270

271271
if (strategy.minifyCSS && source.includes("unsafeCSS")) {
272272
console.warn(
273-
`minify-html-literals: unsafeCSS() detected in source. CSS minification will not be performed for this file.`,
273+
`minify-literals: unsafeCSS() detected in source. CSS minification will not be performed for this file.`,
274274
);
275275
skipCSS = true;
276276
}
277277

278278
if (source.includes("unsafeHTML")) {
279279
console.warn(
280-
`minify-html-literals: unsafeHTML() detected in source. HTML minification will not be performed for this file.`,
280+
`minify-literals: unsafeHTML() detected in source. HTML minification will not be performed for this file.`,
281281
);
282282
skipHTML = true;
283283
}

packages/minify-literals/lib/strategy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const defaultStrategy: Strategy<HTMLOptions, CleanCSS.Options> = {
112112

113113
if (html.match(/<!--(.*?)@TEMPLATE_EXPRESSION\(\);(.*?)-->/g)) {
114114
console.warn(
115-
"minify-html-literals: HTML minification is not supported for template expressions inside comments. Minification for this file will be skipped.",
115+
"minify-literals: HTML minification is not supported for template expressions inside comments. Minification for this file will be skipped.",
116116
);
117117
return html;
118118
}
@@ -184,7 +184,7 @@ export const defaultStrategy: Strategy<HTMLOptions, CleanCSS.Options> = {
184184
if (output.warnings.length) {
185185
console.warn(output.warnings.join("\n\n"));
186186
console.warn(
187-
"minify-html-literals: warnings during CSS minification, file was skipped. See above for details.",
187+
"minify-literals: warnings during CSS minification, file was skipped. See above for details.",
188188
);
189189
return css.replace(/(\n)|(\r)/g, "");
190190
}
@@ -212,7 +212,7 @@ export function adjustMinifyCSSOptions(options: CleanCSS.Options = {}) {
212212

213213
const plugin = {
214214
level1: {
215-
value: function (_name: any, value: string) {
215+
value: (_name: any, value: string) => {
216216
if (!value.startsWith("@TEMPLATE_EXPRESSION") || value.endsWith(";")) return value;
217217

218218
// The CSS minifier has removed the semicolon from the placeholder

packages/ucmd/lib/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ type CommandContextBody<TCommandArguments extends CommandArgs> = {
5454
args: CommandArgValues<TCommandArguments>;
5555
};
5656

57-
type GetCommandArgType<TCommandArgOptions extends CommandArgOptions,> = (TCommandArgOptions["type"] extends
57+
type GetCommandArgType<TCommandArgOptions extends CommandArgOptions> = (TCommandArgOptions["type"] extends
5858
| "string"
5959
| undefined
6060
? string
6161
: TCommandArgOptions["type"] extends "number"
62-
? number
63-
: TCommandArgOptions["type"] extends "boolean"
64-
? boolean
65-
: string) &
62+
? number
63+
: TCommandArgOptions["type"] extends "boolean"
64+
? boolean
65+
: string) &
6666
(TCommandArgOptions["required"] extends true ? undefined : never);
6767

6868
export type CommandArgValues<TCommandArguments extends CommandArgs> = {

packages/unlocked/lib/lockfiles/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import { detectYarnVersion } from "./yarn";
55
export const detectLockfileType = async (directory: string): Promise<LockfileType | undefined> => {
66
if (await fileExists(directory, "pnpm-lock.yaml")) {
77
return "pnpm";
8-
} else if (await fileExists(directory, "yarn.lock")) {
8+
}
9+
if (await fileExists(directory, "yarn.lock")) {
910
const yarnVersion = await detectYarnVersion(directory);
1011
if (yarnVersion === "1") return "yarn-v1";
1112
return "yarn-v2";
12-
} else if (await fileExists(directory, "package-lock.json")) {
13+
}
14+
if (await fileExists(directory, "package-lock.json")) {
1315
// last priority because it might still exist in a project that uses a different lockfile
1416
return "npm";
15-
} else {
16-
return undefined;
1717
}
18+
return undefined;
1819
};

0 commit comments

Comments
 (0)