Skip to content

Commit

Permalink
chore: refactor projenrc
Browse files Browse the repository at this point in the history
  • Loading branch information
floydspace committed Feb 12, 2025
1 parent a6fb9ba commit fe696ef
Show file tree
Hide file tree
Showing 10 changed files with 682 additions and 1,018 deletions.
465 changes: 31 additions & 434 deletions .projenrc.ts

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions projenrc/typescript-project.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import assert from "node:assert";

import { LinkableProject } from "@floydspace/projen-components";
import type { Construct } from "constructs";
import type { Project } from "projen";
import { javascript, typescript } from "projen";

type PredefinedProps = "defaultReleaseBranch" | "authorName" | "authorEmail";
Expand All @@ -12,6 +16,19 @@ export type TypeScriptLibProjectOptions =
};

export class TypeScriptLibProject extends typescript.TypeScriptProject {
public static childOf(project: Project, projectName: string): TypeScriptLibProject {
const assertTypeScriptLibProject: (o: Construct) => asserts o is TypeScriptLibProject = (o) => {
assert(o instanceof TypeScriptLibProject);
};
const construct = project.node.findChild(
`TypeScriptLibProject#@${project.name}--${projectName}@packages--${projectName}`,
);

assertTypeScriptLibProject(construct);

return construct;
}

constructor({
jestOptions: { jestConfig: _, ...jestOptions } = {},
workspaceDeps,
Expand Down
195 changes: 0 additions & 195 deletions scripts/client-singularities.json

This file was deleted.

Loading

0 comments on commit fe696ef

Please sign in to comment.