Skip to content

Commit

Permalink
Correct where compiles come from
Browse files Browse the repository at this point in the history
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
  • Loading branch information
worksofliam committed Jul 9, 2024
1 parent ba1b829 commit 4f657a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import { BuildFiles, cliSettings, error, infoOut, warningOut } from './cli';
import { BobProject } from "./builders/bob";
import { ImpactMarkdown } from "./builders/imd";
import { allExtensions, referencesFileName } from "./extensions";
import { getBranchLibraryName } from "./builders/environment";
import { getBranchLibraryName, getDefaultCompiles } from "./builders/environment";
import { getFiles, renameFiles, replaceIncludes } from './utils';
import { iProject } from './builders/iProject';

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

Expand Down Expand Up @@ -238,7 +239,7 @@ function initProject(cwd) {

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

let base = {};
let base: Partial<iProject> = {};
const iprojExists = existsSync(iprojPath);

if (iprojExists) {
Expand All @@ -253,7 +254,7 @@ function initProject(cwd) {

base = {
...base,
...MakeProject.getDefaultSettings()
compiles: getDefaultCompiles()
};

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

0 comments on commit 4f657a9

Please sign in to comment.