Skip to content

Commit

Permalink
remove imort using form engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Menzorg committed Jul 10, 2023
1 parent 7984c2f commit fdbfb1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions imports/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ interface IGenerateEnvsOptions {
envs: any;
}

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const _hasura = path.normalize(`${process.cwd()}/node_modules/@deep-foundation/hasura`); // даже если мы не в дипкейсе, то это скрипт из диплинкса, который зависит от хасуры, а значит в модулях есть хасура.
const _deeplinks = path.normalize( packageJson.name === '@deep-foundation/deeplinks' ? process.cwd() : `${process.cwd()}/node_modules/@deep-foundation/deeplinks`); // если в package.json название пакета не диплинксовое - то мы не там, а значит идём в модули

Expand Down Expand Up @@ -247,5 +244,5 @@ export async function call (options: ICallOptions) {
const engine = await _execEngine({ envsStr, engineStr }) ;
log({engine});

return { ...options, platform, __filename, __dirname, isDeeplinksDocker, isDeepcaseDocker, envs, engineStr, fullStr: `${envsStr} ${engineStr}`, ...engine };
return { ...options, platform, _hasura, _deeplinks, isDeeplinksDocker, isDeepcaseDocker, envs, engineStr, fullStr: `${envsStr} ${engineStr}`, ...engine };
}

0 comments on commit fdbfb1f

Please sign in to comment.