Skip to content

Commit 5af16bb

Browse files
authored
Revert "feat(package): support repository (#34)"
This reverts commit 95fc7df.
1 parent f25eeab commit 5af16bb

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

src/types.ts

-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@ export interface OOPackageSchema {
3636
dependencies?: Record<string, string>;
3737
scripts: Record<string, string>;
3838
icon?: string;
39-
repository?: string | {
40-
type?: string;
41-
url?: string;
42-
};
4339
}

src/utils/npm.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ describe.concurrent("generatePackageJson", () => {
4242
foo: "1.0.0",
4343
bar: "1.0.0",
4444
},
45-
repository: "https://github.com/example/repo",
4645
};
4746
const doc = new YAML.Document(content);
4847
await writeFile(path.join(ctx.workdir, "package.oo.yaml"), String(doc));
@@ -53,9 +52,6 @@ describe.concurrent("generatePackageJson", () => {
5352
...content,
5453
scripts: {},
5554
icon: `./${path.join("package", "icon.png")}`,
56-
repository: {
57-
url: "https://github.com/example/repo",
58-
},
5955
});
6056
});
6157

src/utils/npm.ts

-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ export async function generatePackageJson(dir: string, stringify = true): Promis
4040
content.icon = `./${path.join("package", content.icon)}`;
4141
}
4242

43-
if (typeof content.repository === "string") {
44-
content.repository = {
45-
url: content.repository,
46-
};
47-
}
48-
4943
content.scripts = {};
5044

5145
if (stringify) {

0 commit comments

Comments
 (0)