History

Scaffold oxlint plugin with initial rule (#2603)

Julius Marminge committed 6 months ago

Commit 825263b1 parent 25b02f486 files · +1137 −455Browse files

Showing the changes to scripts (2 of 86 files). Show all

Unified · Split

2 files
  1. scripts/release-smoke.ts +1 −0
  2. scripts/update-release-package-versions.ts +3 −2
scripts/release-smoke.ts+1−0
@@ -24,6 +24,7 @@ const workspaceFiles = [ · 23 unmodified lines
2424 "apps/desktop/package.json",
2525 "apps/web/package.json",
2626 "apps/marketing/package.json",
27+ "oxlint-plugin-t3code/package.json",
2728 "packages/client-runtime/package.json",
2829 "packages/contracts/package.json",
2930 "packages/shared/package.json",
scripts/update-release-package-versions.ts+3−2
@@ -26,7 +26,7 @@ interface UpdateReleasePackageVersionsOptions { · 25 unmodified lines
2626 const PackageJsonSchema = Schema.Record(Schema.String, Schema.Unknown);
2727 const PackageJsonPrettyJson = fromJsonStringPretty(PackageJsonSchema);
2828 const decodePackageJson = Schema.decodeUnknownEffect(PackageJsonPrettyJson);
29−const encodePackageJson = Schema.encodeSync(PackageJsonPrettyJson);
29+const encodePackageJson = Schema.encodeEffect(PackageJsonPrettyJson);
3030
3131 export const updateReleasePackageVersions = Effect.fn("updateReleasePackageVersions")(function* (
3232 version: string,
@@ -44,7 +44,8 @@ export const updateReleasePackageVersions = Effect.fn("updateReleasePackageVersi · 11 unmodified lines
4444 continue;
4545 }
4646
47− yield* fs.writeFileString(filePath, `${encodePackageJson({ ...packageJson, version })}\n`);
47+ const packageJsonString = yield* encodePackageJson({ ...packageJson, version });
48+ yield* fs.writeFileString(filePath, `${packageJsonString}\n`);
4849 changed = true;
4950 }
5051

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t