Skip to content

Commit

Permalink
typed integration
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed Mar 6, 2024
1 parent d012ddf commit 062fab6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,9 @@ export const logError = (e: Error | string | unknown, isEnd = false, skipAnalyti
message: stripAnsi(_sanitizePaths(err)),
});
} else if (e && e instanceof Error && e.message) {
logAndSave(currentChalk.red(`error:${_getCurrentTask()} ${e.message}\n${e.stack}`), isEnd);
logAndSave(currentChalk.red(`error:${_getCurrentTask()} ${e.message}\n${e.stack}`), isEnd);
} else {
logAndSave(currentChalk.red(`error:${_getCurrentTask()} ${e}`), isEnd);
logAndSave(currentChalk.red(`error:${_getCurrentTask()} ${e}`), isEnd);
}

ctx.runtime.keepSessionActive = false;
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ export * from './system/types';
export * from './api/types';
export * from './types';
export * from './schema/types';
export * from './integrations/types';
5 changes: 4 additions & 1 deletion packages/integration-docker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import taskDockerDeploy from './tasks/taskDockerDeploy';
import taskDockerExport from './tasks/taskDockerExport';
//@ts-ignore
import config from '../renative.integration.json';
import { RnvIntegration } from '@rnv/core';

const TASKS = [taskDockerExport, taskDockerDeploy];

const getTasks = () => TASKS;

export default {
const Integration: RnvIntegration = {
getTasks,
config,
};

export default Integration;
5 changes: 4 additions & 1 deletion packages/integration-starter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import taskStarterHello from './tasks/taskStarterHello';
//@ts-ignore
import config from '../renative.integration.json';
import { RnvIntegration } from '@rnv/core';

const TASKS = [taskStarterHello];

const getTasks = () => TASKS;

export default {
const Integration: RnvIntegration = {
getTasks,
config,
};

export default Integration;

0 comments on commit 062fab6

Please sign in to comment.