From 296bff18c3c5af575c2c78c23f2e1f8dbc69a0b6 Mon Sep 17 00:00:00 2001 From: David Reese <93809439+eseer-divad@users.noreply.github.com> Date: Fri, 15 Mar 2024 05:32:13 -0400 Subject: [PATCH] Switch to CommonJS Modules --- .eslintignore | 1 - .mocharc.json | 6 +- .vscode/launch.json | 2 +- CHANGELOG.md | 425 -------------------------------------------- README.md | 156 ++++++++-------- bin/dev.cmd | 2 +- bin/dev.js | 11 +- bin/run.js | 8 +- package.json | 28 ++- tsconfig.json | 10 +- 10 files changed, 108 insertions(+), 541 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/.eslintignore b/.eslintignore index 414206a..9b1c8b1 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1 @@ /dist -/tmp diff --git a/.mocharc.json b/.mocharc.json index fa25f20..2febd2c 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -7,9 +7,5 @@ ], "recursive": true, "reporter": "spec", - "timeout": 60000, - "node-option": [ - "loader=ts-node/esm", - "experimental-specifier-resolution=node" - ] + "timeout": 60000 } diff --git a/.vscode/launch.json b/.vscode/launch.json index 4688782..85d5d03 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "skipFiles": [ "/**" ], - "program": "${workspaceFolder}/bin/dev.js", + "program": "${workspaceFolder}/bin/dev", "args": [ "hello", "world", diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e1406c5..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,425 +0,0 @@ -## [0.4.24](https://github.com/oclif/hello-world/compare/0.4.23...0.4.24) (2024-03-09) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 6.0.14 to 6.0.17 ([7f7dd75](https://github.com/oclif/hello-world/commit/7f7dd75c2b913991e52fa0ef3251eb122f141f34)) - - - -## [0.4.23](https://github.com/oclif/hello-world/compare/0.4.22...0.4.23) (2024-03-09) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.2.6 to 4.3.2 ([409825d](https://github.com/oclif/hello-world/commit/409825d018c2b32c946a180c895db45adc196e62)) - - - -## [0.4.22](https://github.com/oclif/hello-world/compare/0.4.21...0.4.22) (2024-03-03) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.2.2 to 4.2.6 ([4d1802f](https://github.com/oclif/hello-world/commit/4d1802f4134170a1a914e170babfa7a881992f5b)) - - - -## [0.4.21](https://github.com/oclif/hello-world/compare/0.4.20...0.4.21) (2024-03-02) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 6.0.12 to 6.0.14 ([52b66e1](https://github.com/oclif/hello-world/commit/52b66e14ac3112161f0f2344c48f93c5c3bea56e)) - - - -## [0.4.20](https://github.com/oclif/hello-world/compare/0.4.19...0.4.20) (2024-02-21) - - -### Bug Fixes - -* **deps:** bump ip from 2.0.0 to 2.0.1 ([605adc2](https://github.com/oclif/hello-world/commit/605adc2b276103b19a6b84e3814d6557757f37a2)) - - - -## [0.4.19](https://github.com/oclif/hello-world/compare/0.4.18...0.4.19) (2024-02-11) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.18.1 to 3.19.1 ([29cfabb](https://github.com/oclif/hello-world/commit/29cfabb9b774713c8f8ba06ea6b4941297f098cc)) - - - -## [0.4.18](https://github.com/oclif/hello-world/compare/0.4.17...0.4.18) (2024-02-10) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.2.1 to 4.2.2 ([9fa88af](https://github.com/oclif/hello-world/commit/9fa88af8d40d6fa6b0f35463ce767dd3598b40f2)) - - - -## [0.4.17](https://github.com/oclif/hello-world/compare/0.4.16...0.4.17) (2024-02-03) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.1.21 to 4.2.1 ([cc5f14f](https://github.com/oclif/hello-world/commit/cc5f14f647a9181edfaaf7954faea7dbbd867c3d)) - - - -## [0.4.16](https://github.com/oclif/hello-world/compare/0.4.15...0.4.16) (2024-01-28) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.1.14 to 4.1.21 ([e486ee0](https://github.com/oclif/hello-world/commit/e486ee033e68dbaf5f3cd051802e68d783fbe22a)) - - - -## [0.4.15](https://github.com/oclif/hello-world/compare/0.4.14...0.4.15) (2024-01-27) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 6.0.11 to 6.0.12 ([ad8a74c](https://github.com/oclif/hello-world/commit/ad8a74ce38c492168d45a2a8319ae8573671c842)) - - - -## [0.4.14](https://github.com/oclif/hello-world/compare/0.4.13...0.4.14) (2024-01-07) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.1.12 to 4.1.14 ([0f8e410](https://github.com/oclif/hello-world/commit/0f8e4105cc862b8fd23301b4f0eae2f083ea41db)) - - - -## [0.4.13](https://github.com/oclif/hello-world/compare/0.4.12...0.4.13) (2023-12-30) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.1.10 to 4.1.12 ([836fdb7](https://github.com/oclif/hello-world/commit/836fdb719bbd8898f5d38bb2c87f4ebdfd7a82d6)) - - - -## [0.4.12](https://github.com/oclif/hello-world/compare/0.4.11...0.4.12) (2023-12-30) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.15.0 to 3.15.1 ([c760beb](https://github.com/oclif/hello-world/commit/c760bebb0086cbb53fa67341dc40258d08d36132)) - - - -## [0.4.11](https://github.com/oclif/hello-world/compare/0.4.10...0.4.11) (2023-12-23) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.13.1 to 3.15.0 ([d1e4f6f](https://github.com/oclif/hello-world/commit/d1e4f6f7e6bd7e1de5e39aa28c01fbcd829e1f7a)) - - - -## [0.4.10](https://github.com/oclif/hello-world/compare/0.4.9...0.4.10) (2023-12-09) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.1.8 to 4.1.10 ([13e3438](https://github.com/oclif/hello-world/commit/13e343855ed1ca9168b80826ec5e91cce5cc50a5)) - - - -## [0.4.9](https://github.com/oclif/hello-world/compare/0.4.8...0.4.9) (2023-11-26) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.1.5 to 4.1.8 ([eb58fcf](https://github.com/oclif/hello-world/commit/eb58fcf7f6535189dc1acbec3628ed37702df7e5)) - - - -## [0.4.8](https://github.com/oclif/hello-world/compare/0.4.7...0.4.8) (2023-11-25) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.11.0 to 3.12.0 ([80e5f57](https://github.com/oclif/hello-world/commit/80e5f5755ede98541b951125887c349cf1df3373)) - - - -## [0.4.7](https://github.com/oclif/hello-world/compare/0.4.6...0.4.7) (2023-11-18) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.10.8 to 3.11.0 ([781bf61](https://github.com/oclif/hello-world/commit/781bf6149ceceeb54839971f93481db180542cba)) - - - -## [0.4.6](https://github.com/oclif/hello-world/compare/0.4.5...0.4.6) (2023-11-11) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 4.0.2 to 4.1.5 ([90e69e5](https://github.com/oclif/hello-world/commit/90e69e58caab0d401869a7523dbcd1387803234d)) - - - -## [0.4.5](https://github.com/oclif/hello-world/compare/0.4.4...0.4.5) (2023-11-05) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 5.2.19 to 5.2.20 ([d710325](https://github.com/oclif/hello-world/commit/d710325af125cd0acc4cb7ee732569efa29d9e6c)) - - - -## [0.4.4](https://github.com/oclif/hello-world/compare/0.4.3...0.4.4) (2023-10-28) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 3.7.0 to 3.9.4 ([8369b56](https://github.com/oclif/hello-world/commit/8369b566d0ce50909e54b477ae5bb6c11b082f3d)) - - - -## [0.4.3](https://github.com/oclif/hello-world/compare/0.4.2...0.4.3) (2023-10-10) - - -### Bug Fixes - -* update dev.cmd too ([2ce7bdc](https://github.com/oclif/hello-world/commit/2ce7bdc2c2b262f8f16bcab62fe7c9c5dd8d3f48)) -* use node with ts-node loader ([5f406d6](https://github.com/oclif/hello-world/commit/5f406d6dd2ce06bcfe50a9c003bcfe25c63d93b4)) - - - -## [0.4.2](https://github.com/oclif/hello-world/compare/0.4.1...0.4.2) (2023-10-09) - - -### Bug Fixes - -* use latest eslint-config-oclif-typescript ([a010663](https://github.com/oclif/hello-world/commit/a010663092a2c269c56cecc96bfd4ff3bcb4a2f1)) - - - -## [0.4.1](https://github.com/oclif/hello-world/compare/0.4.0...0.4.1) (2023-10-04) - - -### Bug Fixes - -* deps ([ede92f9](https://github.com/oclif/hello-world/commit/ede92f95be182a8cd08f970781988959e02550b0)) -* satisfy linter ([896fd96](https://github.com/oclif/hello-world/commit/896fd96ab5821774751811567ab7d97d01e8bb2b)) - - - -# [0.4.0](https://github.com/oclif/hello-world/compare/0.3.0...0.4.0) (2023-10-04) - - -### Features - -* bump core, add prettier ([5be0350](https://github.com/oclif/hello-world/commit/5be0350ed4446ec1fc2eba55b73b459875f8b90b)) - - - -# [0.3.0](https://github.com/oclif/hello-world/compare/0.2.3...0.3.0) (2023-09-18) - - -### Features - -* update eslint configs ([85c1530](https://github.com/oclif/hello-world/commit/85c15307f8faefb2646050276a58c310f48cff2b)) - - - -## [0.2.3](https://github.com/oclif/hello-world/compare/0.2.2...0.2.3) (2023-09-17) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 3.4.0 to 3.7.0 ([04939c2](https://github.com/oclif/hello-world/commit/04939c21e6db4018ab8655c1f37ae3c10d85f0d1)) - - - -## [0.2.2](https://github.com/oclif/hello-world/compare/0.2.1...0.2.2) (2023-09-16) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.0.0-beta.12 to 3.0.0-beta.13 ([f054f82](https://github.com/oclif/hello-world/commit/f054f823c30b6080ae005a8f9fe5dd30290ad061)) - - - -## [0.2.1](https://github.com/oclif/hello-world/compare/0.2.0...0.2.1) (2023-09-09) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 5.2.17 to 5.2.19 ([60d2b33](https://github.com/oclif/hello-world/commit/60d2b338401d4d9a5790416c99b7cbe6c019346f)) - - - -# [0.2.0](https://github.com/oclif/hello-world/compare/0.1.6...0.2.0) (2023-09-07) - - -### Features - -* use ts-node in bin/dev.js ([6ab5e0f](https://github.com/oclif/hello-world/commit/6ab5e0f31cb7c09c196d30bd3ecdf2f9e7462ea8)) - - - -## [0.1.6](https://github.com/oclif/hello-world/compare/0.1.5...0.1.6) (2023-09-05) - - -### Bug Fixes - -* remove ts-node loader ([370eba5](https://github.com/oclif/hello-world/commit/370eba5db778c240bf95fca27f5afac71aa48466)) - - - -## [0.1.5](https://github.com/oclif/hello-world/compare/0.1.4...0.1.5) (2023-09-05) - - -### Bug Fixes - -* update bin scripts ([9d14905](https://github.com/oclif/hello-world/commit/9d1490590a11ff79f817dd8ec8e9a548b70d9aa6)) - - - -## [0.1.4](https://github.com/oclif/hello-world/compare/0.1.3...0.1.4) (2023-09-03) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 3.0.0-beta.6 to 3.0.0-beta.12 ([4a67b9f](https://github.com/oclif/hello-world/commit/4a67b9f67e287de7fca92376899b00cab25a2ada)) - - - -## [0.1.3](https://github.com/oclif/hello-world/compare/0.1.2...0.1.3) (2023-09-02) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 3.3.2 to 3.4.0 ([d077b38](https://github.com/oclif/hello-world/commit/d077b38d54d06aefd3ffc3d78235f4a682da423b)) - - - -## [0.1.2](https://github.com/oclif/hello-world/compare/0.1.1...0.1.2) (2023-08-31) - - -### Bug Fixes - -* use core v3 ([0896ec1](https://github.com/oclif/hello-world/commit/0896ec15081020dd38f8cf9a26fd61f899182d29)) - - - -## [0.1.1](https://github.com/oclif/hello-world/compare/0.1.0...0.1.1) (2023-08-23) - - -### Bug Fixes - -* add void to bin scripts ([a3e257e](https://github.com/oclif/hello-world/commit/a3e257efa4984834d221ec356dc5269dc8c39ee9)) - - - -# [0.1.0](https://github.com/oclif/hello-world/compare/0.0.10...0.1.0) (2023-08-21) - - -### Features - -* remove ts-node/esm shebang ([c2c3aab](https://github.com/oclif/hello-world/commit/c2c3aabcea5edf646ef87874cd4c7b87ad05c5f5)) - - - -## [0.0.10](https://github.com/oclif/hello-world/compare/0.0.9...0.0.10) (2023-08-13) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 5.2.15 to 5.2.17 ([08b2587](https://github.com/oclif/hello-world/commit/08b25875b07788a2969393efcbb7b1d7a1bdc1dd)) - - - -## [0.0.9](https://github.com/oclif/hello-world/compare/0.0.8...0.0.9) (2023-08-12) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-plugins from 3.1.8 to 3.2.6 ([11e89e0](https://github.com/oclif/hello-world/commit/11e89e06d3eb1e12104bd562ff79ca2eaf0e3425)) - - - -## [0.0.8](https://github.com/oclif/hello-world/compare/0.0.7...0.0.8) (2023-08-12) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 2.11.7 to 2.11.8 ([ff1da5a](https://github.com/oclif/hello-world/commit/ff1da5aa66ede6dc657f2ceb0c57b3a3d71fa8ba)) - - - -## [0.0.7](https://github.com/oclif/hello-world/compare/0.0.6...0.0.7) (2023-08-10) - - -### Bug Fixes - -* update tsconfig ([0cd7321](https://github.com/oclif/hello-world/commit/0cd73218c2a0c3fc44de072331a1b77217d06cc9)) - - - -## [0.0.6](https://github.com/oclif/hello-world/compare/0.0.5...0.0.6) (2023-08-10) - - -### Bug Fixes - -* bin/dev shebang ([e1633f2](https://github.com/oclif/hello-world/commit/e1633f21c04eec833747080a3da9e10b51653840)) - - - -## [0.0.5](https://github.com/oclif/hello-world/compare/0.0.4...0.0.5) (2023-08-09) - - -### Bug Fixes - -* bin/run shebang ([abbf92a](https://github.com/oclif/hello-world/commit/abbf92ab774077ef2e3634c6c8b679932d5f6158)) - - - -## [0.0.4](https://github.com/oclif/hello-world/compare/0.0.3...0.0.4) (2023-08-06) - - -### Bug Fixes - -* **deps:** bump @oclif/plugin-help from 5.2.14 to 5.2.15 ([5a25888](https://github.com/oclif/hello-world/commit/5a258889436705c8a430188343294660b0aec8af)) - - - -## [0.0.3](https://github.com/oclif/hello-world/compare/0.0.2...0.0.3) (2023-08-03) - - -### Bug Fixes - -* add experimentalSpecifierResolution ([a57c7e0](https://github.com/oclif/hello-world/commit/a57c7e07f2cfcc6a67d598773fe3a6ab7903c4ae)) - - - -## [0.0.2](https://github.com/oclif/hello-world/compare/0.0.1...0.0.2) (2023-07-29) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 2.10.0 to 2.11.1 ([2a28629](https://github.com/oclif/hello-world/commit/2a286297f0e021df4ab2c3f33686b142351c70ea)) - - - -## [0.0.1](https://github.com/oclif/hello-world/compare/27cc5bb44cc4aee53f74bfaef39c1fe03e637d72...0.0.1) (2023-07-27) - - -### Bug Fixes - -* **deps:** bump @oclif/core from 2.9.4 to 2.10.0 ([27cc5bb](https://github.com/oclif/hello-world/commit/27cc5bb44cc4aee53f74bfaef39c1fe03e637d72)) - - - diff --git a/README.md b/README.md index 468ab2f..e23fee6 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,14 @@ oclif example Hello World CLI # Usage ```sh-session -$ npm install -g plans -$ plans COMMAND +$ npm install -g plannerCLI +$ plannerCLI COMMAND running command... -$ plans (--version) -plans/0.0.0 win32-x64 node-v20.10.0 -$ plans --help [COMMAND] +$ plannerCLI (--version) +plannerCLI/0.0.0 win32-x64 node-v20.10.0 +$ plannerCLI --help [COMMAND] USAGE - $ plans COMMAND + $ plannerCLI COMMAND ... ``` @@ -42,27 +42,27 @@ USAGE # Commands -* [`plans hello PERSON`](#plans-hello-person) -* [`plans hello world`](#plans-hello-world) -* [`plans help [COMMAND]`](#plans-help-command) -* [`plans plugins`](#plans-plugins) -* [`plans plugins:install PLUGIN...`](#plans-pluginsinstall-plugin) -* [`plans plugins:inspect PLUGIN...`](#plans-pluginsinspect-plugin) -* [`plans plugins:install PLUGIN...`](#plans-pluginsinstall-plugin-1) -* [`plans plugins:link PLUGIN`](#plans-pluginslink-plugin) -* [`plans plugins:uninstall PLUGIN...`](#plans-pluginsuninstall-plugin) -* [`plans plugins reset`](#plans-plugins-reset) -* [`plans plugins:uninstall PLUGIN...`](#plans-pluginsuninstall-plugin-1) -* [`plans plugins:uninstall PLUGIN...`](#plans-pluginsuninstall-plugin-2) -* [`plans plugins update`](#plans-plugins-update) - -## `plans hello PERSON` +* [`plannerCLI hello PERSON`](#plannercli-hello-person) +* [`plannerCLI hello world`](#plannercli-hello-world) +* [`plannerCLI help [COMMAND]`](#plannercli-help-command) +* [`plannerCLI plugins`](#plannercli-plugins) +* [`plannerCLI plugins:install PLUGIN...`](#plannercli-pluginsinstall-plugin) +* [`plannerCLI plugins:inspect PLUGIN...`](#plannercli-pluginsinspect-plugin) +* [`plannerCLI plugins:install PLUGIN...`](#plannercli-pluginsinstall-plugin-1) +* [`plannerCLI plugins:link PLUGIN`](#plannercli-pluginslink-plugin) +* [`plannerCLI plugins:uninstall PLUGIN...`](#plannercli-pluginsuninstall-plugin) +* [`plannerCLI plugins reset`](#plannercli-plugins-reset) +* [`plannerCLI plugins:uninstall PLUGIN...`](#plannercli-pluginsuninstall-plugin-1) +* [`plannerCLI plugins:uninstall PLUGIN...`](#plannercli-pluginsuninstall-plugin-2) +* [`plannerCLI plugins update`](#plannercli-plugins-update) + +## `plannerCLI hello PERSON` Say hello ``` USAGE - $ plans hello PERSON -f + $ plannerCLI hello PERSON -f ARGUMENTS PERSON Person to say hello to @@ -78,33 +78,33 @@ EXAMPLES hello friend from oclif! (./src/commands/hello/index.ts) ``` -_See code: [src/commands/hello/index.ts](https://github.com/plannerCLI/plannerCLI/blob/v0.0.0/src/commands/hello/index.ts)_ +_See code: [src/commands/hello/index.ts](https://github.com/eseer-divad/plannerCLI/blob/v0.0.0/src/commands/hello/index.ts)_ -## `plans hello world` +## `plannerCLI hello world` Say hello world ``` USAGE - $ plans hello world + $ plannerCLI hello world DESCRIPTION Say hello world EXAMPLES - $ plans hello world + $ plannerCLI hello world hello world! (./src/commands/hello/world.ts) ``` -_See code: [src/commands/hello/world.ts](https://github.com/plannerCLI/plannerCLI/blob/v0.0.0/src/commands/hello/world.ts)_ +_See code: [src/commands/hello/world.ts](https://github.com/eseer-divad/plannerCLI/blob/v0.0.0/src/commands/hello/world.ts)_ -## `plans help [COMMAND]` +## `plannerCLI help [COMMAND]` -Display help for plans. +Display help for plannerCLI. ``` USAGE - $ plans help [COMMAND] [-n] + $ plannerCLI help [COMMAND] [-n] ARGUMENTS COMMAND Command to show help for. @@ -113,18 +113,18 @@ FLAGS -n, --nested-commands Include all nested commands in the output. DESCRIPTION - Display help for plans. + Display help for plannerCLI. ``` _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.17/src/commands/help.ts)_ -## `plans plugins` +## `plannerCLI plugins` List installed plugins. ``` USAGE - $ plans plugins [--json] [--core] + $ plannerCLI plugins [--json] [--core] FLAGS --core Show core plugins. @@ -136,18 +136,18 @@ DESCRIPTION List installed plugins. EXAMPLES - $ plans plugins + $ plannerCLI plugins ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/index.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/index.ts)_ -## `plans plugins:install PLUGIN...` +## `plannerCLI plugins:install PLUGIN...` Installs a plugin into the CLI. ``` USAGE - $ plans plugins add plugins:install PLUGIN... + $ plannerCLI plugins add plugins:install PLUGIN... ARGUMENTS PLUGIN Plugin to install. @@ -173,23 +173,23 @@ DESCRIPTION ALIASES - $ plans plugins add + $ plannerCLI plugins add EXAMPLES - $ plans plugins add myplugin + $ plannerCLI plugins add myplugin - $ plans plugins add https://github.com/someuser/someplugin + $ plannerCLI plugins add https://github.com/someuser/someplugin - $ plans plugins add someuser/someplugin + $ plannerCLI plugins add someuser/someplugin ``` -## `plans plugins:inspect PLUGIN...` +## `plannerCLI plugins:inspect PLUGIN...` Displays installation properties of a plugin. ``` USAGE - $ plans plugins inspect PLUGIN... + $ plannerCLI plugins inspect PLUGIN... ARGUMENTS PLUGIN [default: .] Plugin to inspect. @@ -205,18 +205,18 @@ DESCRIPTION Displays installation properties of a plugin. EXAMPLES - $ plans plugins inspect myplugin + $ plannerCLI plugins inspect myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/inspect.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/inspect.ts)_ -## `plans plugins:install PLUGIN...` +## `plannerCLI plugins:install PLUGIN...` Installs a plugin into the CLI. ``` USAGE - $ plans plugins install PLUGIN... + $ plannerCLI plugins install PLUGIN... ARGUMENTS PLUGIN Plugin to install. @@ -242,25 +242,25 @@ DESCRIPTION ALIASES - $ plans plugins add + $ plannerCLI plugins add EXAMPLES - $ plans plugins install myplugin + $ plannerCLI plugins install myplugin - $ plans plugins install https://github.com/someuser/someplugin + $ plannerCLI plugins install https://github.com/someuser/someplugin - $ plans plugins install someuser/someplugin + $ plannerCLI plugins install someuser/someplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/install.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/install.ts)_ -## `plans plugins:link PLUGIN` +## `plannerCLI plugins:link PLUGIN` Links a plugin into the CLI for development. ``` USAGE - $ plans plugins link PLUGIN + $ plannerCLI plugins link PLUGIN ARGUMENTS PATH [default: .] path to plugin @@ -279,18 +279,18 @@ DESCRIPTION EXAMPLES - $ plans plugins link myplugin + $ plannerCLI plugins link myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/link.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/link.ts)_ -## `plans plugins:uninstall PLUGIN...` +## `plannerCLI plugins:uninstall PLUGIN...` Removes a plugin from the CLI. ``` USAGE - $ plans plugins remove plugins:uninstall PLUGIN... + $ plannerCLI plugins remove plugins:uninstall PLUGIN... ARGUMENTS PLUGIN plugin to uninstall @@ -303,35 +303,35 @@ DESCRIPTION Removes a plugin from the CLI. ALIASES - $ plans plugins unlink - $ plans plugins remove + $ plannerCLI plugins unlink + $ plannerCLI plugins remove EXAMPLES - $ plans plugins remove myplugin + $ plannerCLI plugins remove myplugin ``` -## `plans plugins reset` +## `plannerCLI plugins reset` Remove all user-installed and linked plugins. ``` USAGE - $ plans plugins reset [--hard] [--reinstall] + $ plannerCLI plugins reset [--hard] [--reinstall] FLAGS --hard Delete node_modules and package manager related files in addition to uninstalling plugins. --reinstall Reinstall all plugins after uninstalling. ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/reset.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/reset.ts)_ -## `plans plugins:uninstall PLUGIN...` +## `plannerCLI plugins:uninstall PLUGIN...` Removes a plugin from the CLI. ``` USAGE - $ plans plugins uninstall PLUGIN... + $ plannerCLI plugins uninstall PLUGIN... ARGUMENTS PLUGIN plugin to uninstall @@ -344,22 +344,22 @@ DESCRIPTION Removes a plugin from the CLI. ALIASES - $ plans plugins unlink - $ plans plugins remove + $ plannerCLI plugins unlink + $ plannerCLI plugins remove EXAMPLES - $ plans plugins uninstall myplugin + $ plannerCLI plugins uninstall myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/uninstall.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/uninstall.ts)_ -## `plans plugins:uninstall PLUGIN...` +## `plannerCLI plugins:uninstall PLUGIN...` Removes a plugin from the CLI. ``` USAGE - $ plans plugins unlink plugins:uninstall PLUGIN... + $ plannerCLI plugins unlink plugins:uninstall PLUGIN... ARGUMENTS PLUGIN plugin to uninstall @@ -372,20 +372,20 @@ DESCRIPTION Removes a plugin from the CLI. ALIASES - $ plans plugins unlink - $ plans plugins remove + $ plannerCLI plugins unlink + $ plannerCLI plugins remove EXAMPLES - $ plans plugins unlink myplugin + $ plannerCLI plugins unlink myplugin ``` -## `plans plugins update` +## `plannerCLI plugins update` Update installed plugins. ``` USAGE - $ plans plugins update [-h] [-v] + $ plannerCLI plugins update [-h] [-v] FLAGS -h, --help Show CLI help. @@ -395,7 +395,7 @@ DESCRIPTION Update installed plugins. ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/update.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.6/src/commands/plugins/update.ts)_ * [`oex hello PERSON`](#oex-hello-person) * [`oex hello world`](#oex-hello-world) diff --git a/bin/dev.cmd b/bin/dev.cmd index cec553b..077b57a 100644 --- a/bin/dev.cmd +++ b/bin/dev.cmd @@ -1,3 +1,3 @@ @echo off -node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %* +node "%~dp0\dev" %* \ No newline at end of file diff --git a/bin/dev.js b/bin/dev.js index 9d7ce3c..7b76f0c 100644 --- a/bin/dev.js +++ b/bin/dev.js @@ -1,5 +1,6 @@ -#!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning - -import {execute} from '@oclif/core' - -await execute({development: true, dir: import.meta.url}) +#!/usr/bin/env node_modules/.bin/ts-node +// eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await +;(async () => { + const oclif = await import('@oclif/core') + await oclif.execute({development: true, dir: __dirname}) +})() diff --git a/bin/run.js b/bin/run.js index dd50271..405685d 100644 --- a/bin/run.js +++ b/bin/run.js @@ -1,5 +1,7 @@ #!/usr/bin/env node -import {execute} from '@oclif/core' - -await execute({dir: import.meta.url}) +// eslint-disable-next-line unicorn/prefer-top-level-await +(async () => { + const oclif = await import('@oclif/core') + await oclif.execute({development: false, dir: __dirname}) +})() diff --git a/package.json b/package.json index 27a1cf7..ea4523c 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,19 @@ { - "name": "plans", + "name": "plannerCLI", "version": "0.0.0", - "description": "An extensible day planner in the command line.", + "description": "day planner in the command line", "keywords": [ "oclif" ], - "homepage": "https://github.com/plannerCLI/plannerCLI", - "bugs": "https://github.com/plannerCLI/plannerCLI/issues", - "repository": "plannerCLI/plannerCLI", + "homepage": "https://github.com/eseer-divad/plannerCLI", + "bugs": "https://github.com/eseer-divad/plannerCLI/issues", + "repository": "eseer-divad/plannerCLI", "license": "MIT", "author": "David Reese", - "type": "module", - "exports": "./lib/index.js", - "main": "", + "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { - "plans": "./bin/run.js" + "plannerCLI": "./bin/run.js" }, "files": [ "/bin", @@ -33,9 +31,9 @@ "version": "oclif readme && git add README.md" }, "oclif": { - "bin": "plans", + "bin": "plannerCLI", "commands": "./dist/commands", - "dirname": "plans", + "dirname": "plannerCLI", "plugins": [ "@oclif/plugin-help", "@oclif/plugin-plugins" @@ -56,16 +54,16 @@ "@oclif/prettier-config": "^0.2.1", "@oclif/test": "^3", "@types/chai": "^4", - "@types/mocha": "^10", + "@types/mocha": "^10.0.0", "@types/node": "^18", "chai": "^4", - "eslint": "^8", + "eslint": "^8.57.0", "eslint-config-oclif": "^5", "eslint-config-oclif-typescript": "^3", "eslint-config-prettier": "^9.1.0", "mocha": "^10", - "oclif": "^4.4.19", - "shx": "^0.3.4", + "oclif": "^4", + "shx": "^0.3.3", "ts-node": "^10.9.2", "typescript": "^5" }, diff --git a/tsconfig.json b/tsconfig.json index e144b78..d01c414 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,11 @@ { "compilerOptions": { "declaration": true, - "module": "Node16", + "module": "commonjs", "outDir": "dist", "rootDir": "src", "strict": true, - "target": "es2022", - "moduleResolution": "node16" + "target": "es2022" }, - "include": ["./src/**/*"], - "ts-node": { - "esm": true - } + "include": ["src/**/*"] }