Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Convert CLI to CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronklinker-st committed Mar 27, 2023
1 parent 78a2e29 commit ef84443
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cli/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getContributors } from "@aklinker1/github-contributors";
import asciify from "asciify-image";
const { getContributors } = require("@aklinker1/github-contributors");
const asciify = require("asciify-image");

async function main() {
console.log("\nLoading...\n");
Expand Down
3 changes: 1 addition & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"type": "module",
"dependencies": {
"@aklinker1/github-contributors": "^0.0.1",
"@aklinker1/github-contributors": "^0.0.2",
"asciify-image": "^0.1.9"
}
}
30 changes: 26 additions & 4 deletions cli/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@aklinker1/github-contributors": "^0.0.1"
"@aklinker1/github-contributors": "^0.0.2"
},
"devDependencies": {
"typescript": "^4.9.3",
Expand Down
30 changes: 26 additions & 4 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef84443

Please sign in to comment.