Skip to content

Commit 6885c3e

Browse files
chore: update deps
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 7078ec7 commit 6885c3e

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"@changesets/cli": "^2.27.7",
2323
"tsup": "^8.2.4",
2424
"typescript": "^5.5.4",
25-
"bun-types": "^1.1.22",
25+
"bun-types": "^1.1.24",
2626
"scripts": "workspace:*",
27-
"turbo": "^2.0.12"
27+
"turbo": "^2.0.14"
2828
},
2929
"trustedDependencies": [
3030
"@biomejs/biome",

packages/rollup-plugin-minify-template-literals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"minify-literals": "^1.0.0"
4242
},
4343
"devDependencies": {
44-
"rollup": "^4.20.0"
44+
"rollup": "^4.21.0"
4545
},
4646
"engines": {
4747
"node": ">=20.0.0"

scripts/lib/mdtable.ts

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readdir, readFile, writeFile } from "node:fs/promises";
22
import { join } from "node:path";
33
import type { Command, CommandContext } from "ucmd";
4-
import type { PackageJson } from "@npm/types";
4+
import type { PackageJSON } from "@npm/types";
55

66
export const mdtableCommandOptions = {
77
name: "mdtable",
@@ -25,6 +25,7 @@ type Row = {
2525

2626
type Table = Row[];
2727

28+
// biome-ignore lint/suspicious/noExplicitAny: this is required to satisfy the type
2829
const html = (strings: TemplateStringsArray, ...values: any[]) => {
2930
return (
3031
strings
@@ -80,19 +81,25 @@ const createTable = (table: Table) => {
8081
const notEmpty = <TValue>(value: TValue | null | undefined): value is TValue =>
8182
value !== null && value !== undefined;
8283

83-
export const mdtableCommand = async ({ args }: CommandContext<typeof mdtableCommandOptions>) => {
84+
export const mdtableCommand = async ({
85+
args,
86+
}: CommandContext<typeof mdtableCommandOptions>) => {
8487
const packages = await readdir(join(process.cwd(), "packages"));
8588
const table: Table = (
8689
await Promise.all(
8790
packages.map(async (pkg) => {
88-
const pkgJson: PackageJson = JSON.parse(
89-
await readFile(join(process.cwd(), "packages", pkg, "package.json"), "utf8"),
91+
const pkgJson: PackageJSON = JSON.parse(
92+
await readFile(
93+
join(process.cwd(), "packages", pkg, "package.json"),
94+
"utf8",
95+
),
9096
);
9197

9298
if (pkgJson.private) return null;
9399

94100
let support: Row["support"] = "stable";
95101

102+
// biome-ignore lint/suspicious/noExplicitAny: needed to access the support field
96103
const supportOverride = (pkgJson as any).support as Row["support"];
97104
if (supportOverride) {
98105
support = supportOverride;
@@ -120,18 +127,18 @@ export const mdtableCommand = async ({ args }: CommandContext<typeof mdtableComm
120127
a.support === b.support
121128
? a.name.localeCompare(b.name)
122129
: a.support === "stable"
123-
? -1
124-
: b.support === "stable"
125-
? 1
126-
: a.support === "unstable"
127-
? -1
128-
: b.support === "unstable"
129-
? 1
130-
: a.support === "preview"
131-
? -1
132-
: b.support === "preview"
133-
? 1
134-
: 0,
130+
? -1
131+
: b.support === "stable"
132+
? 1
133+
: a.support === "unstable"
134+
? -1
135+
: b.support === "unstable"
136+
? 1
137+
: a.support === "preview"
138+
? -1
139+
: b.support === "preview"
140+
? 1
141+
: 0,
135142
);
136143

137144
const code = createTable(table);

scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"ucmd": "workspace:*"
1515
},
1616
"devDependencies": {
17-
"@npm/types": "^1.0.2"
17+
"@npm/types": "^2.0.0"
1818
}
1919
}

0 commit comments

Comments
 (0)