File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { mkdir } from "node:fs/promises";
22import path from "node:path" ;
33
44import { Argument , program } from "@commander-js/extra-typings" ;
5+ import { kebabCase } from "lodash-es" ;
56import writeFileAtomic from "write-file-atomic" ;
67
78import { 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
Original file line number Diff line number Diff line change 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" ,
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" ,
You can’t perform that action at this time.
0 commit comments