@unlaxer/dxe-suite 0.1.1 → 0.1.3

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/bin/dxe.js +12 -3
  2. package/package.json +1 -1
package/bin/dxe.js CHANGED
@@ -11,9 +11,9 @@ const { execSync } = require('child_process');
11
11
  const path = require('path');
12
12
 
13
13
  const TOOLKITS = {
14
- dge: { pkg: '@unlaxer/dge-toolkit', install: 'dge-install', update: 'dge-update' },
15
- dde: { pkg: '@unlaxer/dde-toolkit', install: 'dde-install', update: 'dde-update' },
16
- dre: { pkg: '@unlaxer/dre-toolkit', install: 'dre-install', update: 'dre-update' },
14
+ dge: { pkg: '@unlaxer/dge-toolkit', install: 'dge-install', update: 'dge-update', phrase: '「DGE して」' },
15
+ dde: { pkg: '@unlaxer/dde-toolkit', install: 'dde-install', update: 'dde-update', phrase: '「DDE して」' },
16
+ dre: { pkg: '@unlaxer/dre-toolkit', install: 'dre-install', update: 'dre-update', phrase: '「DRE して」' },
17
17
  };
18
18
 
19
19
  const [,, command, ...args] = process.argv;
@@ -25,17 +25,26 @@ function run(cmd) {
25
25
  }
26
26
 
27
27
  if (command === 'install') {
28
+ const installed = [];
28
29
  for (const name of targets) {
29
30
  const tk = TOOLKITS[name];
30
31
  if (!tk) { console.error(`Unknown toolkit: ${name}`); process.exit(1); }
31
32
  console.log(`\n[${name.toUpperCase()}] installing...`);
33
+ run(`npm install ${tk.pkg}`);
32
34
  run(`npx ${tk.install}`);
35
+ installed.push(tk);
33
36
  }
37
+ console.log('\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
38
+ for (const tk of installed) {
39
+ console.log(` Claude Code で ${tk.phrase} と言えば起動します。`);
40
+ }
41
+ console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n');
34
42
  } else if (command === 'update') {
35
43
  for (const name of targets) {
36
44
  const tk = TOOLKITS[name];
37
45
  if (!tk) { console.error(`Unknown toolkit: ${name}`); process.exit(1); }
38
46
  console.log(`\n[${name.toUpperCase()}] updating...`);
47
+ run(`npm install ${tk.pkg}@latest`);
39
48
  run(`npx ${tk.update}`);
40
49
  }
41
50
  } else if (command === 'status') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlaxer/dxe-suite",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "DxE Suite — DGE / DDE / DRE toolkit を一括インストール・管理するスイートパッケージ",
5
5
  "license": "MIT",
6
6
  "repository": {