@timeax/scaffold 0.0.7 → 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/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
- package/src/cli/main.ts +2 -1
package/package.json
CHANGED
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 ??
|
|
164
|
+
const scaffoldDirRel = baseOpts.dir ?? SCAFFOLD_ROOT_DIR;
|
|
164
165
|
|
|
165
166
|
logger.info(`Initializing scaffold directory at "${scaffoldDirRel}"...`);
|
|
166
167
|
|