@timeax/scaffold 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timeax/scaffold",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "description": "A CLI tool that scaffolds project file structures based on a user-defined, type-safe configuration file.",
6
6
  "keywords": [
7
7
  "scaffold"
package/src/cli/main.ts CHANGED
@@ -19,6 +19,7 @@ import {
19
19
 
20
20
  } from '../util/logger';
21
21
  import { ensureDirSync } from '../util/fs-utils';
22
+ import {SCAFFOLD_ROOT_DIR} from "../schema";
22
23
 
23
24
  interface BaseCliOptions {
24
25
  config?: string;
@@ -160,7 +161,7 @@ async function handleInitCommand(
160
161
  ) {
161
162
  const logger = createCliLogger(baseOpts);
162
163
 
163
- const scaffoldDirRel = baseOpts.dir ?? 'scaffold';
164
+ const scaffoldDirRel = baseOpts.dir ?? SCAFFOLD_ROOT_DIR;
164
165
 
165
166
  logger.info(`Initializing scaffold directory at "${scaffoldDirRel}"...`);
166
167