Skip to content

Commit 688f6d9

Browse files
committed
kebabCase
1 parent 1aff37e commit 688f6d9

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"test": "vite-node scripts/test.ts",
1313
"watch": "vite-node scripts/watch.ts"
1414
},
15+
"resolutions": {
16+
"eslint>file-entry-cache": "^8.0.0"
17+
},
1518
"dependencies": {
1619
"@commander-js/extra-typings": "^12.1.0",
1720
"@eslint/eslintrc": "^3.1.0",

setup/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { mkdir } from "node:fs/promises";
22
import path from "node:path";
33

44
import { Argument, program } from "@commander-js/extra-typings";
5+
import { kebabCase } from "lodash-es";
56
import writeFileAtomic from "write-file-atomic";
67

78
import { createBaseConfigs } from "./configs/base/index.js";
@@ -20,7 +21,7 @@ program
2021
)
2122
.action(async (template) => {
2223
const currentPath = process.cwd();
23-
const projectName = path.basename(currentPath) || "project";
24+
const projectName = kebabCase(path.basename(currentPath)) || "project";
2425

2526
const baseConfig = await createBaseConfigs(projectName);
2627

setup/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dedent": "^1.5.3",
2020
"default-composer": "^0.6.0",
2121
"jsonc-parser": "^3.2.1",
22+
"lodash-es": "^4.17.21",
2223
"node-fetch": "^3.3.2",
2324
"oci-registry-client": "^0.2.0",
2425
"pacote": "^18.0.6",
@@ -29,6 +30,7 @@
2930
"write-file-atomic": "^5.0.1"
3031
},
3132
"devDependencies": {
33+
"@types/lodash-es": "^4.17.12",
3234
"@types/node": "^20.12.12",
3335
"@types/pacote": "^11.1.8",
3436
"@types/semver": "^7.5.8",

0 commit comments

Comments
 (0)