Skip to content

refactor: convert accounts commands to esm#3309

Merged
eablack merged 13 commits intov11.0.0from
eb/convert-accounts-esm
Jun 12, 2025
Merged

refactor: convert accounts commands to esm#3309
eablack merged 13 commits intov11.0.0from
eb/convert-accounts-esm

Conversation

@eablack
Copy link
Contributor

@eablack eablack commented Jun 3, 2025

W-18575885

Description

This uncomments auth and access commands and make them compatible with oclif/core v4. I also had to restructure the accounts lib as a library to make it easier to stub within ESM context.

Testing

  1. Pull down branch and yarn build
  2. ./bin/run accounts
  3. ./bin/run accounts:current

@eablack eablack requested a review from a team as a code owner June 3, 2025 23:45
@eablack eablack force-pushed the eb/convert-accounts-esm branch from 22fc6ec to f70bc43 Compare June 3, 2025 23:52
@eablack eablack temporarily deployed to AcceptanceTests June 3, 2025 23:52 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 3, 2025 23:52 — with GitHub Actions Inactive
@eablack eablack force-pushed the v11.0.0 branch 2 times, most recently from b446fce to dcbe941 Compare June 5, 2025 20:22
eablack added 10 commits June 11, 2025 15:19
* Comment out tests

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* move to esm

* Update dev/run commands, convert tests to esm

* Make tests compatible with ESM

* revert log-displayer to commonjs

* Uncomment regions, add some tests back

* Update yarn.lock

* Comment out new commands from pg upgrade

* Adjust tests to account for variable table length

* Fix regions test, add stuff back to bin/run and update bin/dev

* fix lint

* Remove temp script

* Update heroku-cli/command

* Add esm ts-node option to tsconfig.json

* Update requires to imports, switch to cli-progress from smooth-progress

* Update to modern module resolution

* Rewrite Editor to stop using ancient library

* Update a few packages

* Remove shellescape, fix lint

* Update to esm version of heroku-cli/command
* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* Update oclif dependencies to latest

* refactor!: convert to esm (#3301)

* Comment out tests

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* move to esm

* Update dev/run commands, convert tests to esm

* Make tests compatible with ESM

* revert log-displayer to commonjs

* Uncomment regions, add some tests back

* Update yarn.lock

* Comment out new commands from pg upgrade

* Adjust tests to account for variable table length

* Fix regions test, add stuff back to bin/run and update bin/dev

* fix lint

* Remove temp script

* Update heroku-cli/command

* Add esm ts-node option to tsconfig.json

* Update requires to imports, switch to cli-progress from smooth-progress

* Update to modern module resolution

* Rewrite Editor to stop using ancient library

* Update a few packages

* Remove shellescape, fix lint

* Update to esm version of heroku-cli/command

* add back access and 2fa commands

* Add token, logout, 2fa, and fix tests.

* Update runcommand, tests

* Update tests

* Add expects for empty stdout

* Replace with temporary test

* Update timeout to match what we originally had

* fix yarn.lock

* update test

* Stub ux.action, update tests

* Update logout test
@eablack eablack force-pushed the eb/convert-accounts-esm branch from f70bc43 to 2dc6ade Compare June 11, 2025 22:32
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2025 22:32 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2025 22:32 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2025 22:36 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2025 22:36 — with GitHub Actions Inactive
@eablack eablack changed the title refactor: add back accounts command refactor: convert accounts commands to esm Jun 11, 2025
Copy link
Contributor

@k80bowman k80bowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had one question, but it's not blocking. Looks good!

@eablack eablack temporarily deployed to AcceptanceTests June 12, 2025 22:18 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 12, 2025 22:18 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 12, 2025 22:38 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 12, 2025 22:38 — with GitHub Actions Inactive
@eablack eablack merged commit 199da64 into v11.0.0 Jun 12, 2025
19 of 22 checks passed
@eablack eablack deleted the eb/convert-accounts-esm branch June 12, 2025 22:59
eablack added a commit that referenced this pull request Jun 25, 2025
* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* Update oclif dependencies to latest

* refactor!: convert to esm (#3301)

* Comment out tests

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* move to esm

* Update dev/run commands, convert tests to esm

* Make tests compatible with ESM

* revert log-displayer to commonjs

* Uncomment regions, add some tests back

* Update yarn.lock

* Comment out new commands from pg upgrade

* Adjust tests to account for variable table length

* Fix regions test, add stuff back to bin/run and update bin/dev

* fix lint

* Remove temp script

* Update heroku-cli/command

* Add esm ts-node option to tsconfig.json

* Update requires to imports, switch to cli-progress from smooth-progress

* Update to modern module resolution

* Rewrite Editor to stop using ancient library

* Update a few packages

* Remove shellescape, fix lint

* Update to esm version of heroku-cli/command

* Fix bin/run, run yarn install

* refactor: add back access and 2fa commands (#3304)

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* Update oclif dependencies to latest

* refactor!: convert to esm (#3301)

* Comment out tests

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* move to esm

* Update dev/run commands, convert tests to esm

* Make tests compatible with ESM

* revert log-displayer to commonjs

* Uncomment regions, add some tests back

* Update yarn.lock

* Comment out new commands from pg upgrade

* Adjust tests to account for variable table length

* Fix regions test, add stuff back to bin/run and update bin/dev

* fix lint

* Remove temp script

* Update heroku-cli/command

* Add esm ts-node option to tsconfig.json

* Update requires to imports, switch to cli-progress from smooth-progress

* Update to modern module resolution

* Rewrite Editor to stop using ancient library

* Update a few packages

* Remove shellescape, fix lint

* Update to esm version of heroku-cli/command

* add back access and 2fa commands

* Add token, logout, 2fa, and fix tests.

* Update runcommand, tests

* Update tests

* Add expects for empty stdout

* Replace with temporary test

* Update timeout to match what we originally had

* fix yarn.lock

* update test

* Stub ux.action, update tests

* Update logout test

* Add accounts index command back, wrap accounts function in new class module

* Move everything into wrapper, rename wrapper to just accounts

* Convert current/remove commands for accounts

* convert add and set for accounts commands

* Update yarn.lock

* Remove duplicates

* Fix commenting out of test

* be consistent with imported module capitalization
eablack added a commit that referenced this pull request Jul 17, 2025
* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* Update oclif dependencies to latest

* refactor!: convert to esm (#3301)

* Comment out tests

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* move to esm

* Update dev/run commands, convert tests to esm

* Make tests compatible with ESM

* revert log-displayer to commonjs

* Uncomment regions, add some tests back

* Update yarn.lock

* Comment out new commands from pg upgrade

* Adjust tests to account for variable table length

* Fix regions test, add stuff back to bin/run and update bin/dev

* fix lint

* Remove temp script

* Update heroku-cli/command

* Add esm ts-node option to tsconfig.json

* Update requires to imports, switch to cli-progress from smooth-progress

* Update to modern module resolution

* Rewrite Editor to stop using ancient library

* Update a few packages

* Remove shellescape, fix lint

* Update to esm version of heroku-cli/command

* Fix bin/run, run yarn install

* refactor: add back access and 2fa commands (#3304)

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* Update oclif dependencies to latest

* refactor!: convert to esm (#3301)

* Comment out tests

* Upgrade to oclif/core v4, comment out most commands, libs, and tests

* move to esm

* Update dev/run commands, convert tests to esm

* Make tests compatible with ESM

* revert log-displayer to commonjs

* Uncomment regions, add some tests back

* Update yarn.lock

* Comment out new commands from pg upgrade

* Adjust tests to account for variable table length

* Fix regions test, add stuff back to bin/run and update bin/dev

* fix lint

* Remove temp script

* Update heroku-cli/command

* Add esm ts-node option to tsconfig.json

* Update requires to imports, switch to cli-progress from smooth-progress

* Update to modern module resolution

* Rewrite Editor to stop using ancient library

* Update a few packages

* Remove shellescape, fix lint

* Update to esm version of heroku-cli/command

* add back access and 2fa commands

* Add token, logout, 2fa, and fix tests.

* Update runcommand, tests

* Update tests

* Add expects for empty stdout

* Replace with temporary test

* Update timeout to match what we originally had

* fix yarn.lock

* update test

* Stub ux.action, update tests

* Update logout test

* Add accounts index command back, wrap accounts function in new class module

* Move everything into wrapper, rename wrapper to just accounts

* Convert current/remove commands for accounts

* convert add and set for accounts commands

* Update yarn.lock

* Remove duplicates

* Fix commenting out of test

* be consistent with imported module capitalization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants