@jxsuite/create 0.28.4 → 0.29.0

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/index.ts +2 -1
  2. package/package.json +5 -1
package/index.ts CHANGED
@@ -9,6 +9,7 @@ import { createInterface } from "node:readline/promises";
9
9
  import { stdin, stdout } from "node:process";
10
10
  import { basename, resolve } from "node:path";
11
11
  import { generateProject } from "./generate";
12
+ import type { ProjectOptions } from "./generate";
12
13
 
13
14
  const [dest] = process.argv.slice(2);
14
15
  if (!dest) {
@@ -36,7 +37,7 @@ Deployment adapter:
36
37
  const adapterChoice = await rl.question("Adapter [1]: ");
37
38
  rl.close();
38
39
 
39
- const adapterMap = {
40
+ const adapterMap: Record<string, ProjectOptions["adapter"]> = {
40
41
  1: "static",
41
42
  2: "cloudflare-pages",
42
43
  3: "node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/create",
3
- "version": "0.28.4",
3
+ "version": "0.29.0",
4
4
  "description": "Scaffold a new Jx project",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,5 +23,9 @@
23
23
  },
24
24
  "publishConfig": {
25
25
  "provenance": true
26
+ },
27
+ "scripts": {
28
+ "test": "bun test --isolate",
29
+ "test:coverage": "bun test --isolate --coverage"
26
30
  }
27
31
  }