Skip to content

Commit 06ba8b3

Browse files
committed
Updated Functions 2.2.3
1 parent 6af29f7 commit 06ba8b3

File tree

5 files changed

+332
-5
lines changed

5 files changed

+332
-5
lines changed

.github/workflows/npm-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
node-version: 22
2525
registry-url: https://registry.npmjs.org/
2626
- run: npm install
27+
- run: npm run build
2728
- run: npm publish
2829
env:
2930
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

files.json

+326
Large diffs are not rendered by default.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "git-repo-to-json",
3-
"version": "2.0.3",
3+
"version": "2.0.0",
44
"description": "A tool to scrape all files from a GitHub repository and turn it into a JSON file",
55
"bin": {
6-
"git-repo-to-json": "dist/index.js"
6+
"git-repo-to-json": "dist/cli.js"
77
},
88
"files": [
99
"dist"
@@ -27,4 +27,4 @@
2727
"@types/node": "^18.11.19",
2828
"typescript": "^4.9.4"
2929
}
30-
}
30+
}

src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ async function main() {
2020
console.log('File list has been saved to files.json');
2121
}
2222

23-
main().catch(err => console.error(err));
23+
main().catch(err => console.error(err));

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ export async function scrapeRepository(repoUrl: string): Promise<FileData[]> {
6767
console.log('Cloned repository directory removed');
6868

6969
return result;
70-
}
70+
}

0 commit comments

Comments
 (0)