Skip to content

Commit

Permalink
Revert "feat(package): support repository" (#36)
Browse files Browse the repository at this point in the history
Reverts #34
  • Loading branch information
BlackHole1 authored Dec 30, 2024
1 parent f25eeab commit f86f6ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ export interface OOPackageSchema {
dependencies?: Record<string, string>;
scripts: Record<string, string>;
icon?: string;
repository?: string | {
type?: string;
url?: string;
};
}
4 changes: 0 additions & 4 deletions src/utils/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ describe.concurrent("generatePackageJson", () => {
foo: "1.0.0",
bar: "1.0.0",
},
repository: "https://github.com/example/repo",
};
const doc = new YAML.Document(content);
await writeFile(path.join(ctx.workdir, "package.oo.yaml"), String(doc));
Expand All @@ -53,9 +52,6 @@ describe.concurrent("generatePackageJson", () => {
...content,
scripts: {},
icon: `./${path.join("package", "icon.png")}`,
repository: {
url: "https://github.com/example/repo",
},
});
});

Expand Down
6 changes: 0 additions & 6 deletions src/utils/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ export async function generatePackageJson(dir: string, stringify = true): Promis
content.icon = `./${path.join("package", content.icon)}`;
}

if (typeof content.repository === "string") {
content.repository = {
url: content.repository,
};
}

content.scripts = {};

if (stringify) {
Expand Down

0 comments on commit f86f6ff

Please sign in to comment.