@fluffjs/cli 0.1.1 → 0.1.2
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/Cli.js +2 -2
- package/Generator.js +1 -0
- package/interfaces/FluffTarget.d.ts +1 -0
- package/package.json +1 -1
- package/types/FluffConfig.js +1 -0
package/Cli.js
CHANGED
|
@@ -286,7 +286,7 @@ Examples:
|
|
|
286
286
|
async buildTarget(target, projectRoot, workspaceRoot, projectRelativePath) {
|
|
287
287
|
console.log(`🔨 Building target '${target.name}'...`);
|
|
288
288
|
const srcDir = path.resolve(projectRoot, target.srcDir);
|
|
289
|
-
const appDir = path.join(srcDir, 'app');
|
|
289
|
+
const appDir = path.join(srcDir, target.componentsDir ?? 'app');
|
|
290
290
|
const outDir = (workspaceRoot && projectRelativePath)
|
|
291
291
|
? path.join(workspaceRoot, 'dist', projectRelativePath)
|
|
292
292
|
: path.resolve(projectRoot, target.outDir);
|
|
@@ -477,7 +477,7 @@ Examples:
|
|
|
477
477
|
}
|
|
478
478
|
async serveTarget(target, projectRoot, workspaceRoot, projectRelativePath) {
|
|
479
479
|
const srcDir = path.resolve(projectRoot, target.srcDir);
|
|
480
|
-
const appDir = path.join(srcDir, 'app');
|
|
480
|
+
const appDir = path.join(srcDir, target.componentsDir ?? 'app');
|
|
481
481
|
const fluffDir = path.join(this.cwd, '.fluff');
|
|
482
482
|
const serveId = randomUUID();
|
|
483
483
|
const outDir = path.join(fluffDir, serveId);
|
package/Generator.js
CHANGED
package/package.json
CHANGED