initx 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +9 -15
  2. package/package.json +6 -7
package/dist/cli.mjs CHANGED
@@ -1,12 +1,11 @@
1
1
  import cac from 'cac';
2
- import inquirer from 'inquirer';
3
- import { log } from '@initx-plugin/utils';
2
+ import { log, inquirer } from '@initx-plugin/utils';
4
3
  import { loadPlugins } from '@initx-plugin/core';
5
4
 
6
- const pkgJson = {name:"initx",type:"module",version:"0.0.13",packageManager:"pnpm@9.12.2",description:"A more convenient scripting engine",author:"imba97",license:"MIT",homepage:"https://github.com/imba97/initx#readme",repository:{type:"git",url:"git+ssh://git@github.com/imba97/initx"},bugs:{url:"https://github.com/imba97/initx/issues"},keywords:["initx"],main:"dist/index.mjs",module:"dist/index.mjs",types:"dist/index.d.ts",bin:"bin/initx.mjs",files:["dist"],scripts:{stub:"unbuild --stub",build:"unbuild"},dependencies:{"@initx-plugin/core":"workspace:*","@initx-plugin/utils":"workspace:*",cac:"^6.7.14",inquirer:"^12.0.0"}};
5
+ const pkgJson = {name:"initx",type:"module",version:"0.0.14",packageManager:"pnpm@9.12.3",description:"A more convenient scripting engine",author:"imba97",license:"MIT",homepage:"https://github.com/initx-collective/initx#readme",repository:{type:"git",url:"git@github.com:initx-collective/initx.git"},bugs:{url:"https://github.com/initx-collective/initx/issues"},keywords:["initx"],main:"dist/index.mjs",module:"dist/index.mjs",types:"dist/index.d.ts",bin:"bin/initx.mjs",files:["dist"],scripts:{stub:"unbuild --stub",build:"unbuild"},dependencies:{"@initx-plugin/core":"workspace:*","@initx-plugin/utils":"workspace:*",cac:"^6.7.14"}};
7
6
 
8
7
  const cli = cac("initx");
9
- cli.help().command("<something>", "see https://github.com/imba97/initx").usage("").option("-v, --version", "Display version number");
8
+ cli.help().command("<something>", "see https://github.com/initx-collective/initx").usage("").option("-v, --version", "Display version number");
10
9
  const { args, options: cliOptions } = cli.parse();
11
10
  if (cliOptions.h || cliOptions.help) {
12
11
  process.exit(0);
@@ -48,17 +47,12 @@ if (!key || typeof key !== "string") {
48
47
  await handler();
49
48
  return;
50
49
  }
51
- const { index } = await inquirer.prompt([
52
- {
53
- type: "list",
54
- name: "index",
55
- message: "Which handler do you want to run?",
56
- choices: matchedHandlers.map(({ description, packageInfo }, index2) => ({
57
- name: `[${packageInfo.name.replace(/^@?initx-plugin[-/]/, "")}] ${description}`,
58
- value: index2
59
- }))
60
- }
61
- ]);
50
+ const { index } = await inquirer.select(
51
+ "Which handler do you want to run?",
52
+ matchedHandlers.map(
53
+ ({ description, packageInfo }) => `[${packageInfo.name.replace(/^@?initx-plugin[-/]/, "")}] ${description}`
54
+ )
55
+ );
62
56
  if (!matchedHandlers[index] || typeof matchedHandlers[index].handler !== "function") {
63
57
  log.error("Handler not found");
64
58
  process.exit(0);
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "initx",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "description": "A more convenient scripting engine",
6
6
  "author": "imba97",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/imba97/initx#readme",
8
+ "homepage": "https://github.com/initx-collective/initx#readme",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+ssh://git@github.com/imba97/initx"
11
+ "url": "git@github.com:initx-collective/initx.git"
12
12
  },
13
13
  "bugs": {
14
- "url": "https://github.com/imba97/initx/issues"
14
+ "url": "https://github.com/initx-collective/initx/issues"
15
15
  },
16
16
  "keywords": [
17
17
  "initx"
@@ -25,9 +25,8 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "cac": "^6.7.14",
28
- "inquirer": "^12.0.0",
29
- "@initx-plugin/core": "0.0.13",
30
- "@initx-plugin/utils": "0.0.13"
28
+ "@initx-plugin/core": "0.0.14",
29
+ "@initx-plugin/utils": "0.0.14"
31
30
  },
32
31
  "scripts": {
33
32
  "stub": "unbuild --stub",