@duetds/cli 2.8.12 → 2.8.15
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.
- package/package.json +2 -2
- package/src/index.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/cli",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.15",
|
|
4
4
|
"description": "This package includes Duet Design System CLI.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "LocalTapiola Services Ltd <duetdesignsystem@lahitapiola.fi>",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "adf09c42004c272fa1200de0a6c2158a5a975793"
|
|
36
36
|
}
|
package/src/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import path from "path"
|
|
|
5
5
|
|
|
6
6
|
import { createProject } from "./main"
|
|
7
7
|
|
|
8
|
-
const isVersioned = ["angular", "react", "eleventy","eleventy-ssr","html"]
|
|
9
|
-
const versionObject = isVersioned.reduce((a, v) => ({ ...a, [v]: v}), {})
|
|
8
|
+
const isVersioned = ["angular", "react", "eleventy", "eleventy-ssr", "html"]
|
|
9
|
+
const versionObject = isVersioned.reduce((a, v) => ({ ...a, [v]: v }), {})
|
|
10
10
|
// load directory names of /templates/
|
|
11
11
|
const templateDir = path.resolve(__dirname, "..", "templates")
|
|
12
12
|
for (const [key, value] of Object.entries(versionObject)) {
|
|
@@ -66,7 +66,7 @@ async function promptForMissingOptions(options) {
|
|
|
66
66
|
type: "list",
|
|
67
67
|
name: "version",
|
|
68
68
|
message: "Which version would you like to use?",
|
|
69
|
-
choices:
|
|
69
|
+
choices: answers => versionObject[answers.template.toLowerCase()],
|
|
70
70
|
})
|
|
71
71
|
|
|
72
72
|
questions.push({
|