@konomi-app/k2 0.1.2 → 0.1.4

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.
@@ -8,13 +8,16 @@ export default function command() {
8
8
  .command('dev')
9
9
  .description('Start development server.')
10
10
  .option('-o, --outdir <outdir>', 'Output directory.', DEVELOPMENT_DIRECTORY)
11
+ .option('-c, --certdir <certdir>', 'Certificate directory', WORKSPACE_DIRECTORY)
11
12
  .option('-p, --port <port>', 'Port number', DEFAULT_PORT.toString())
12
13
  .action(action);
13
14
  }
14
15
  export async function action(options) {
15
- const { outdir, port } = options;
16
+ const { certdir, outdir, port } = options;
16
17
  console.group('🍳 Start development server');
17
18
  try {
19
+ console.log(`📂 Output directory: ${outdir}`);
20
+ console.log(`🔑 Certificate directory: ${certdir}`);
18
21
  const srcDir = path.join('src', 'apps');
19
22
  const dirs = fs.readdirSync(srcDir);
20
23
  const entryPoints = dirs.reduce((acc, dir) => {
@@ -25,10 +28,10 @@ export async function action(options) {
25
28
  }
26
29
  return acc;
27
30
  }, []);
28
- base({
31
+ await base({
29
32
  port: Number(port),
30
33
  entryPoints,
31
- certDir: WORKSPACE_DIRECTORY,
34
+ certDir: certdir,
32
35
  staticDir: outdir,
33
36
  });
34
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konomi-app/k2",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "kintone sdk",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -54,4 +54,4 @@
54
54
  "@types/html-minifier": "^4",
55
55
  "typescript": "*"
56
56
  }
57
- }
57
+ }