Skip to content

Commit 9b582ad

Browse files
committed
Add formio/angular
1 parent 03a0eda commit 9b582ad

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

repositories.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,10 @@
9595
{
9696
"repository": "vitejs/vite",
9797
"commit": "98d9a33274d9ac90780786afa612d916feddf2e3"
98+
},
99+
{
100+
"repository": "formio/angular",
101+
"commit": "865f42d7229d19a86cc7151cf2cb3c66880dedb5",
102+
"glob": "."
98103
}
99104
]

scripts/add-repository.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import process from "node:process";
22
import * as readline from "node:readline/promises";
3+
import { outdent } from "outdent";
34
import { getRepositoryCommitHash, updatedRepositories } from "./utilities.mjs";
45

56
const GITHUB_DOMAIN = "https://github.com/";
@@ -10,7 +11,12 @@ async function addProject() {
1011
output: process.stdout,
1112
});
1213
let input = await rl.question(
13-
"Which repository are you going to add? Example: prettier/prettier\n",
14+
outdent`
15+
Which repository are you going to add?
16+
Example:
17+
- prettier/prettier
18+
- https://github.com/prettier/prettier\n
19+
`,
1420
);
1521

1622
let repository = input.trim();
@@ -34,7 +40,7 @@ async function addProject() {
3440

3541
const commit = await getRepositoryCommitHash(repository);
3642
return [
37-
repositories,
43+
...repositories,
3844
{
3945
repository,
4046
commit,

0 commit comments

Comments
 (0)