Skip to content

Commit ab85ff3

Browse files
committed
refactor(cli): share package version with generated config
1 parent bcaad27 commit ab85ff3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/generator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import { TEMPLATE_DIR } from "../paths.js";
33
import { ensureDir, exists, readText, writeText } from "../fs-utils.js";
44
import { getProjectDocs, getProjectType } from "../data/project-types.js";
55
import { getTemplateFile } from "../data/templates.js";
6+
import { VERSION } from "../version.js";
67
import { writeConfig } from "./config.js";
78

8-
const VERSION = "0.1.0";
9-
109
export async function initProject({ cwd, projectName, projectType, docsPath, force = false, dryRun = false }) {
1110
const docs = getProjectDocs(projectType);
1211
const typeConfig = getProjectType(projectType);

0 commit comments

Comments
 (0)