From c0d6a56563ecb999ecac5f67fc916902151ab214 Mon Sep 17 00:00:00 2001 From: Richard Kotze Date: Thu, 24 Oct 2024 22:44:00 +0000 Subject: [PATCH 1/6] :fire: Remove delete and edit commands Removing this cmds because it don't think they are useful and there are easy methods to update the .git-coauthor file. See the readme. --- packages/bob/git-mob.config.js | 2 - packages/git-mob/bin/delete-coauthor.js | 2 - packages/git-mob/bin/edit-coauthor.js | 2 - packages/git-mob/package.json | 2 - packages/git-mob/src/git-delete-coauthor.js | 29 ---- .../git-mob/src/git-delete-coauthor.spec.js | 67 --------- packages/git-mob/src/git-edit-coauthor.js | 21 --- .../git-mob/src/git-edit-coauthor.spec.js | 140 ------------------ .../src/manage-authors/delete-coauthor.js | 15 -- .../src/manage-authors/edit-coauthor.js | 29 ---- 10 files changed, 309 deletions(-) delete mode 100755 packages/git-mob/bin/delete-coauthor.js delete mode 100755 packages/git-mob/bin/edit-coauthor.js delete mode 100644 packages/git-mob/src/git-delete-coauthor.js delete mode 100644 packages/git-mob/src/git-delete-coauthor.spec.js delete mode 100644 packages/git-mob/src/git-edit-coauthor.js delete mode 100644 packages/git-mob/src/git-edit-coauthor.spec.js delete mode 100644 packages/git-mob/src/manage-authors/delete-coauthor.js delete mode 100644 packages/git-mob/src/manage-authors/edit-coauthor.js diff --git a/packages/bob/git-mob.config.js b/packages/bob/git-mob.config.js index c80746d..2048b4d 100644 --- a/packages/bob/git-mob.config.js +++ b/packages/bob/git-mob.config.js @@ -5,8 +5,6 @@ const baseConfig = { './src/git-mob.ts', './src/solo.js', './src/git-add-coauthor.ts', - './src/git-delete-coauthor.js', - './src/git-edit-coauthor.js', './src/git-mob-print.js', './src/git-suggest-coauthors.js', './src/install/create-author-file.js', diff --git a/packages/git-mob/bin/delete-coauthor.js b/packages/git-mob/bin/delete-coauthor.js deleted file mode 100755 index 2f9d609..0000000 --- a/packages/git-mob/bin/delete-coauthor.js +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env node -import '../dist/git-delete-coauthor.js'; diff --git a/packages/git-mob/bin/edit-coauthor.js b/packages/git-mob/bin/edit-coauthor.js deleted file mode 100755 index eadc033..0000000 --- a/packages/git-mob/bin/edit-coauthor.js +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env node -import '../dist/git-edit-coauthor.js'; diff --git a/packages/git-mob/package.json b/packages/git-mob/package.json index c74675c..595f957 100644 --- a/packages/git-mob/package.json +++ b/packages/git-mob/package.json @@ -22,8 +22,6 @@ "git-mob-print": "bin/mob-print.js", "git-solo": "bin/solo.js", "git-add-coauthor": "bin/add-coauthor.js", - "git-delete-coauthor": "bin/delete-coauthor.js", - "git-edit-coauthor": "bin/edit-coauthor.js", "git-suggest-coauthors": "bin/suggest-coauthors.js" }, "repository": { diff --git a/packages/git-mob/src/git-delete-coauthor.js b/packages/git-mob/src/git-delete-coauthor.js deleted file mode 100644 index 33df016..0000000 --- a/packages/git-mob/src/git-delete-coauthor.js +++ /dev/null @@ -1,29 +0,0 @@ -import minimist from 'minimist'; -import { runDeleteCoauthorHelp } from '../src/helpers.js'; -import { deleteCoauthor } from '../src/manage-authors/delete-coauthor.js'; - -const argv = minimist(process.argv.slice(2), { - alias: { - h: 'help', - }, -}); - -async function execute(argv) { - if (argv.help) { - runDeleteCoauthorHelp(); - process.exit(0); - } - - const args = argv._; - - if (args.length === 0) { - console.error( - 'Please provide the initials of who you want deleting. Use -h to view examples.' - ); - } - - await deleteCoauthor(args[0]); - process.exit(0); -} - -await execute(argv); diff --git a/packages/git-mob/src/git-delete-coauthor.spec.js b/packages/git-mob/src/git-delete-coauthor.spec.js deleted file mode 100644 index d077670..0000000 --- a/packages/git-mob/src/git-delete-coauthor.spec.js +++ /dev/null @@ -1,67 +0,0 @@ -import test from 'ava'; -import { - setCoauthorsFile, - readCoauthorsFile, - exec, - deleteCoauthorsFile, -} from '../test-helpers/index.js'; - -const { afterEach } = test; - -afterEach.always('cleanup', () => { - deleteCoauthorsFile(); -}); - -test('deletes coauthor from coauthors file', t => { - setCoauthorsFile(); - exec('git delete-coauthor ea'); - - const deleteCoauthorActual = JSON.parse(readCoauthorsFile()); - const deleteCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - }, - }; - - t.deepEqual(deleteCoauthorActual, deleteCoauthorExpected); -}); - -test('does nothing if initial are not a key in coauthors file', t => { - setCoauthorsFile(); - exec('git delete-coauthor bb'); - - const deleteCoauthorActual = JSON.parse(readCoauthorsFile()); - const deleteCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - ea: { - name: 'Elliot Alderson', - email: 'ealderson@findmypast.com', - }, - }, - }; - - t.deepEqual(deleteCoauthorActual, deleteCoauthorExpected); -}); - -test('-h prints help', t => { - const { stdout } = exec('git delete-coauthor -h'); - - t.regex(stdout, /usage/i); - t.regex(stdout, /options/i); - t.regex(stdout, /examples/i); -}); diff --git a/packages/git-mob/src/git-edit-coauthor.js b/packages/git-mob/src/git-edit-coauthor.js deleted file mode 100644 index f7a3b4c..0000000 --- a/packages/git-mob/src/git-edit-coauthor.js +++ /dev/null @@ -1,21 +0,0 @@ -import minimist from 'minimist'; -import { runEditCoauthorHelp } from '../src/helpers.js'; -import { editCoauthor } from '../src/manage-authors/edit-coauthor.js'; - -const argv = minimist(process.argv.slice(2), { - alias: { - h: 'help', - }, -}); - -async function execute(argv) { - if (argv.help) { - runEditCoauthorHelp(); - process.exit(0); - } - - await editCoauthor(argv); - process.exit(0); -} - -await execute(argv); diff --git a/packages/git-mob/src/git-edit-coauthor.spec.js b/packages/git-mob/src/git-edit-coauthor.spec.js deleted file mode 100644 index 629be37..0000000 --- a/packages/git-mob/src/git-edit-coauthor.spec.js +++ /dev/null @@ -1,140 +0,0 @@ -import test from 'ava'; -import { - setCoauthorsFile, - readCoauthorsFile, - exec, - deleteCoauthorsFile, -} from '../test-helpers/index.js'; - -const { afterEach } = test; - -afterEach.always('cleanup', () => { - deleteCoauthorsFile(); -}); - -test('edits coauthors name in coauthors file', t => { - setCoauthorsFile(); - exec('git edit-coauthor ea --name="emily aldershot"'); - - const addCoauthorActual = JSON.parse(readCoauthorsFile()); - const addCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - ea: { - name: 'emily aldershot', - email: 'ealderson@findmypast.com', - }, - }, - }; - - t.deepEqual(addCoauthorActual, addCoauthorExpected); -}); - -test('edits coauthors email in coauthors file', t => { - setCoauthorsFile(); - exec('git edit-coauthor ea --email="emily@aldershot.com"'); - - const addCoauthorActual = JSON.parse(readCoauthorsFile()); - const addCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - ea: { - name: 'Elliot Alderson', - email: 'emily@aldershot.com', - }, - }, - }; - - t.deepEqual(addCoauthorActual, addCoauthorExpected); -}); - -test('edits coauthors name and email in coauthors file', t => { - setCoauthorsFile(); - exec( - 'git edit-coauthor ea --email="emily@aldershot.com" --name="emily aldershot"' - ); - - const addCoauthorActual = JSON.parse(readCoauthorsFile()); - const addCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - ea: { - name: 'emily aldershot', - email: 'emily@aldershot.com', - }, - }, - }; - - t.deepEqual(addCoauthorActual, addCoauthorExpected); -}); - -test('does not update a random key input', t => { - setCoauthorsFile(); - exec('git edit-coauthor ea --gender="female"'); - - const addCoauthorActual = JSON.parse(readCoauthorsFile()); - const addCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - ea: { - name: 'Elliot Alderson', - email: 'ealderson@findmypast.com', - }, - }, - }; - - t.deepEqual(addCoauthorActual, addCoauthorExpected); -}); - -test('does not update if author does not already exist', t => { - setCoauthorsFile(); - exec('git edit-coauthor bb --name="barry butterworth"'); - - const addCoauthorActual = JSON.parse(readCoauthorsFile()); - const addCoauthorExpected = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - ea: { - name: 'Elliot Alderson', - email: 'ealderson@findmypast.com', - }, - }, - }; - - t.deepEqual(addCoauthorActual, addCoauthorExpected); -}); diff --git a/packages/git-mob/src/manage-authors/delete-coauthor.js b/packages/git-mob/src/manage-authors/delete-coauthor.js deleted file mode 100644 index c396b26..0000000 --- a/packages/git-mob/src/manage-authors/delete-coauthor.js +++ /dev/null @@ -1,15 +0,0 @@ -import { gitAuthors } from '../git-authors/index.js'; - -async function deleteCoauthor(key) { - const coauthors = gitAuthors(); - const authorList = await coauthors.read(); - if (key in authorList.coauthors) { - delete authorList.coauthors[key]; - await coauthors.overwrite(authorList); - console.log(key + ': has been removed from .git-coauthors'); - } else { - console.error(key + ': no such initials in .git-coauthors'); - } -} - -export { deleteCoauthor }; diff --git a/packages/git-mob/src/manage-authors/edit-coauthor.js b/packages/git-mob/src/manage-authors/edit-coauthor.js deleted file mode 100644 index 46637d9..0000000 --- a/packages/git-mob/src/manage-authors/edit-coauthor.js +++ /dev/null @@ -1,29 +0,0 @@ -import { gitAuthors } from '../git-authors/index.js'; - -async function editCoauthor({ _, ...props }) { - if ('name' in props || 'email' in props) { - const [key] = _; - const coauthors = gitAuthors(); - const authorList = await coauthors.read(); - if (key in authorList.coauthors) { - if (props.name) { - authorList.coauthors[key].name = props.name; - } - - if (props.email) { - authorList.coauthors[key].email = props.email; - } - - await coauthors.overwrite(authorList); - console.log(key + ' has been updated.'); - } else { - console.error(key + ' does not exist in your .git-coauthors file.'); - } - } else { - console.error( - 'Please provide a name or an email property. Use -h for examples.' - ); - } -} - -export { editCoauthor }; From 08e5397e6fd0503abc0c94b84c9aeef9c6d944ec Mon Sep 17 00:00:00 2001 From: Richard Kotze Date: Sun, 27 Oct 2024 15:27:20 +0000 Subject: [PATCH 2/6] Clean up docs with reference to co-author delete --- packages/git-mob/README.md | 9 --------- packages/git-mob/src/helpers.js | 15 --------------- 2 files changed, 24 deletions(-) diff --git a/packages/git-mob/README.md b/packages/git-mob/README.md index 9fae7f9..e9c7ab2 100644 --- a/packages/git-mob/README.md +++ b/packages/git-mob/README.md @@ -25,7 +25,6 @@ _Add co-authors to commits_ when you collaborate on code. Use when pairing with - [List all co-authors](#list-all-co-authors) - [Overwrite the main author](#overwrite-the-main-author) - [Add co-author](#add-co-author) - - [Delete co-author](#delete-co-author) - [Edit co-author](#edit-co-author) - [Suggest co-authors](#suggest-co-authors) - [Path to .git-coauthors](#path-to-git-coauthors) @@ -225,14 +224,6 @@ Add a new co-author to your `.git-coauthors` file. $ git add-coauthor bb "Barry Butterworth" barry@butterworth.org ``` -### Delete co-author - -Delete a co-author from your `.git-coauthors` file. - -``` -$ git delete-coauthor bb -``` - ### Edit co-author Edit a co-author's details in your `.git-coauthors` file. diff --git a/packages/git-mob/src/helpers.js b/packages/git-mob/src/helpers.js index e006daf..f07ea45 100644 --- a/packages/git-mob/src/helpers.js +++ b/packages/git-mob/src/helpers.js @@ -12,7 +12,6 @@ function runHelp() { $ git solo $ git mob-print $ git add-coauthor "Coauthor Name" - $ git delete-coauthor $ git edit-coauthor --name="Coauthor Name" --email="coauthor-email-address" $ git suggest-coauthors [author name | author email] @@ -47,19 +46,6 @@ function runAddCoauthorHelp() { console.log(message); } -function runDeleteCoauthorHelp() { - const message = stripIndent` - Usage - $ git delete-coauthor - Options - -h Prints usage information - Examples - $ git delete-coauthor jd # deletes John Doe to coauthors file - - `; - console.log(message); -} - function runEditCoauthorHelp() { const message = stripIndent` Usage @@ -128,7 +114,6 @@ export { printList, validateEmail, runAddCoauthorHelp, - runDeleteCoauthorHelp, runEditCoauthorHelp, runMobPrintHelp, runSuggestCoauthorsHelp, From 205c8d9cb4a0d1507e6747ce93d10fd68b6f6093 Mon Sep 17 00:00:00 2001 From: Richard Kotze Date: Sun, 27 Oct 2024 15:31:42 +0000 Subject: [PATCH 3/6] Clean up document ref to edit co-authors --- packages/git-mob/README.md | 11 ----------- packages/git-mob/src/helpers.js | 17 ----------------- 2 files changed, 28 deletions(-) diff --git a/packages/git-mob/README.md b/packages/git-mob/README.md index e9c7ab2..2386c27 100644 --- a/packages/git-mob/README.md +++ b/packages/git-mob/README.md @@ -25,7 +25,6 @@ _Add co-authors to commits_ when you collaborate on code. Use when pairing with - [List all co-authors](#list-all-co-authors) - [Overwrite the main author](#overwrite-the-main-author) - [Add co-author](#add-co-author) - - [Edit co-author](#edit-co-author) - [Suggest co-authors](#suggest-co-authors) - [Path to .git-coauthors](#path-to-git-coauthors) - [Help](#help) @@ -224,16 +223,6 @@ Add a new co-author to your `.git-coauthors` file. $ git add-coauthor bb "Barry Butterworth" barry@butterworth.org ``` -### Edit co-author - -Edit a co-author's details in your `.git-coauthors` file. - -``` -$ git edit-coauthor bb --name="Barry Butterworth" --email="barry@butterworth.org" -$ git edit-coauthor bb --name="Barry Butterworth" -$ git edit-coauthor bb --email="barry@butterworth.org" -``` - ### Suggest co-authors Suggest co-authors to save based on contributors to the current Git repository. diff --git a/packages/git-mob/src/helpers.js b/packages/git-mob/src/helpers.js index f07ea45..06c2f75 100644 --- a/packages/git-mob/src/helpers.js +++ b/packages/git-mob/src/helpers.js @@ -12,7 +12,6 @@ function runHelp() { $ git solo $ git mob-print $ git add-coauthor "Coauthor Name" - $ git edit-coauthor --name="Coauthor Name" --email="coauthor-email-address" $ git suggest-coauthors [author name | author email] Options @@ -46,21 +45,6 @@ function runAddCoauthorHelp() { console.log(message); } -function runEditCoauthorHelp() { - const message = stripIndent` - Usage - $ git edit-coauthor name="Coauthor Name" email="Coauthor Email" - Options - -h Prints usage information - Examples - $ git edit-coauthor jd --name="Jeb Diamond" --email="jeb@Diamond.com" # Updates email and name - $ git edit-coauthor jd --name="Jeb Diamond" # Updates just the name - $ git edit-coauthor jd --email="jeb@diamond.com" # Updates just the email - - `; - console.log(message); -} - function runMobPrintHelp() { const message = stripIndent` Usage @@ -114,7 +98,6 @@ export { printList, validateEmail, runAddCoauthorHelp, - runEditCoauthorHelp, runMobPrintHelp, runSuggestCoauthorsHelp, }; From beb085172f8c196a12eda4ef73f4f7929e585872 Mon Sep 17 00:00:00 2001 From: Richard Kotze Date: Sun, 27 Oct 2024 15:43:35 +0000 Subject: [PATCH 4/6] Update changelog with removing commands --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1d770c..7a041b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,18 @@ Follows [Semantic Versioning](https://semver.org/). ## git-mob-core Next -## git-mob 3.3.0 +## git-mob 4.0.0 ### Added - Update to `suggest-coauthors` will show a select interactive list using `inquirer/checkbox`. Select one or more authors to save. Reducing the number of steps to add new co-authors. +### Breaking + +- Removed the following commands because I think they are low value to maintain. See readme on how to edit/delete co-authors. + - `git delete-coauthor` + - `git edit-coauthor` + ## git-mob-core 0.9.3 ### Added From d11f46d5110bbdcf59bdd6170d2fab85927964ec Mon Sep 17 00:00:00 2001 From: Richard Kotze Date: Sun, 27 Oct 2024 16:20:11 +0000 Subject: [PATCH 5/6] :fire: remove unused git-authors read/write class --- packages/git-mob/src/git-authors/index.js | 89 ------------------- .../git-mob/src/git-authors/index.spec.js | 77 ---------------- 2 files changed, 166 deletions(-) delete mode 100644 packages/git-mob/src/git-authors/index.js delete mode 100644 packages/git-mob/src/git-authors/index.spec.js diff --git a/packages/git-mob/src/git-authors/index.js b/packages/git-mob/src/git-authors/index.js deleted file mode 100644 index faf32fa..0000000 --- a/packages/git-mob/src/git-authors/index.js +++ /dev/null @@ -1,89 +0,0 @@ -import { readFile as _readFile, appendFile, writeFile, existsSync } from 'node:fs'; -import { promisify } from 'node:util'; -import { pathToCoAuthors } from 'git-mob-core'; - -export function gitAuthors(readFilePromise, writeFilePromise, overwriteFilePromise) { - async function readFile(path) { - const readPromise = readFilePromise || promisify(_readFile); - try { - return await readPromise(path, 'utf8'); - } catch (error) { - throw new Error(error.message); - } - } - - async function writeToFile(path, content) { - const writeToPromise = writeFilePromise || promisify(appendFile); - try { - return await writeToPromise(path, content, 'utf8'); - } catch (error) { - throw new Error(error.message); - } - } - - async function overwriteFile(path, content) { - const overwritePromise = overwriteFilePromise || promisify(writeFile); - try { - return await overwritePromise(path, content, 'utf8'); - } catch (error) { - throw new Error(error.message); - } - } - - return { - read: async () => { - const authorJsonString = await readFile(await pathToCoAuthors()); - try { - return JSON.parse(authorJsonString); - } catch (error) { - throw new Error('Invalid JSON ' + error.message); - } - }, - - write: async authorJson => { - try { - return writeToFile( - await pathToCoAuthors(), - JSON.stringify(authorJson, null, 2) - ); - } catch (error) { - throw new Error('Invalid JSON ' + error.message); - } - }, - - overwrite: async authorJson => { - try { - return overwriteFile( - await pathToCoAuthors(), - JSON.stringify(authorJson, null, 2) - ); - } catch (error) { - throw new Error('Invalid JSON ' + error.message); - } - }, - - fileExists: async () => { - return existsSync(await pathToCoAuthors()); - }, - - author(authorInitials, authorJson) { - const { coauthors } = authorJson; - missingAuthorError(authorInitials, coauthors); - return coauthors[authorInitials]; - }, - - toList(authors) { - const entries = Object.entries(authors.coauthors); - return entries.map(authorParts => { - const [initials, { name, email }] = authorParts; - return [initials, name, email].join(' '); - }); - }, - }; -} - -function missingAuthorError(initials, coauthors) { - if (!(initials in coauthors)) { - throw new Error(`Author with initials "${initials}" not found!`); - } -} diff --git a/packages/git-mob/src/git-authors/index.spec.js b/packages/git-mob/src/git-authors/index.spec.js deleted file mode 100644 index 98ef67a..0000000 --- a/packages/git-mob/src/git-authors/index.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/* eslint quotes: ["off", "double"] */ -/* eslint quote-props: ["off", "always"] */ - -import test from 'ava'; -import { gitAuthors } from './index.js'; - -const validJsonString = ` -{ - "coauthors": { - "jd": { - "name": "Jane Doe", - "email": "jane@findmypast.com" - }, - "fb": { - "name": "Frances Bar", - "email": "frances-bar@findmypast.com" - } - } -}`; - -// Invalid because of comma at end of email -const invalidJsonString = ` -{ - "coauthors": { - "jd": { - "name": "Jane Doe", - "email": "jane@findmypast.com", - } - } -}`; - -const authorsJson = { - coauthors: { - jd: { - name: 'Jane Doe', - email: 'jane@findmypast.com', - }, - fb: { - name: 'Frances Bar', - email: 'frances-bar@findmypast.com', - }, - }, -}; - -test('.git-coauthors file does not exist', async t => { - const authors = gitAuthors(() => - Promise.reject(new Error('enoent: no such file or directory, open')) - ); - const error = await t.throwsAsync(() => authors.read()); - t.regex(error.message, /enoent: no such file or directory, open/i); -}); - -test('invalid json contents from .git-coauthors', async t => { - const authors = gitAuthors(() => Promise.resolve(invalidJsonString)); - - const error = await t.throwsAsync(() => authors.read()); - t.regex(error.message, /invalid json/i); -}); - -test('read contents from .git-coauthors', async t => { - const authors = gitAuthors(() => Promise.resolve(validJsonString)); - - const json = await authors.read(); - t.deepEqual(json, authorsJson); -}); - -test('create an organised string list of .git-coauthors', async t => { - const authors = gitAuthors(() => Promise.resolve(validJsonString)); - - const json = await authors.read(); - const authorList = authors.toList(json); - const expectAuthorList = [ - 'jd Jane Doe jane@findmypast.com', - 'fb Frances Bar frances-bar@findmypast.com', - ]; - t.deepEqual(expectAuthorList, authorList); -}); From a33f42d837da128e7a1bbe5698341742696a6f8d Mon Sep 17 00:00:00 2001 From: Richard Kotze Date: Sun, 27 Oct 2024 16:32:23 +0000 Subject: [PATCH 6/6] :green_heart: entry files set as TS #83 --- packages/bob/git-mob-core.config.js | 2 +- packages/bob/git-mob.config.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/bob/git-mob-core.config.js b/packages/bob/git-mob-core.config.js index a20d9af..0b5c5c5 100644 --- a/packages/bob/git-mob-core.config.js +++ b/packages/bob/git-mob-core.config.js @@ -1,7 +1,7 @@ const glob = require('glob'); const baseConfig = { - entryPoints: ['./src/index.js'], + entryPoints: ['./src/index.ts'], mainFields: ['module', 'main'], platform: 'node', target: ['node16'], diff --git a/packages/bob/git-mob.config.js b/packages/bob/git-mob.config.js index 2048b4d..8fa78c0 100644 --- a/packages/bob/git-mob.config.js +++ b/packages/bob/git-mob.config.js @@ -3,11 +3,11 @@ const glob = require('glob'); const baseConfig = { entryPoints: [ './src/git-mob.ts', - './src/solo.js', + './src/solo.ts', './src/git-add-coauthor.ts', - './src/git-mob-print.js', - './src/git-suggest-coauthors.js', - './src/install/create-author-file.js', + './src/git-mob-print.ts', + './src/git-suggest-coauthors.ts', + './src/install/create-author-file.ts', ], mainFields: ['module', 'main'], bundle: true,