Skip to content

Commit 4f657a9

Browse files
committed
Correct where compiles come from
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent ba1b829 commit 4f657a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cli/src/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import { BuildFiles, cliSettings, error, infoOut, warningOut } from './cli';
99
import { BobProject } from "./builders/bob";
1010
import { ImpactMarkdown } from "./builders/imd";
1111
import { allExtensions, referencesFileName } from "./extensions";
12-
import { getBranchLibraryName } from "./builders/environment";
12+
import { getBranchLibraryName, getDefaultCompiles } from "./builders/environment";
1313
import { getFiles, renameFiles, replaceIncludes } from './utils';
14+
import { iProject } from './builders/iProject';
1415

1516
const isCli = process.argv.length >= 2 && (process.argv[1].endsWith(`so`) || process.argv[1].endsWith(`index.js`));
1617

@@ -238,7 +239,7 @@ function initProject(cwd) {
238239

239240
const iprojPath = path.join(cwd, `iproj.json`);
240241

241-
let base = {};
242+
let base: Partial<iProject> = {};
242243
const iprojExists = existsSync(iprojPath);
243244

244245
if (iprojExists) {
@@ -253,7 +254,7 @@ function initProject(cwd) {
253254

254255
base = {
255256
...base,
256-
...MakeProject.getDefaultSettings()
257+
compiles: getDefaultCompiles()
257258
};
258259

259260
writeFileSync(iprojPath, JSON.stringify(base, null, 2));

0 commit comments

Comments
 (0)