Skip to content

Commit

Permalink
Solve compiler error.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 18, 2024
1 parent 23207b4 commit 3fc03d0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
import { Plans } from '@metacall/protocol/plan';
import {
API as APIInterface,
ProtocolError
ProtocolError,
ResourceType
} from '@metacall/protocol/protocol';
import { promises as fs } from 'fs';
import { join } from 'path';
Expand Down Expand Up @@ -70,7 +71,12 @@ export const deployPackage = async (
info(`Deploying ${rootPath}...\n`);

try {
const deploy = await api.deploy(name, env, plan, 'Package');
const deploy = await api.deploy(
name,
env,
plan,
ResourceType.Package
);

if (isInteractive()) {
// TODO: Need a TUI for logs
Expand Down Expand Up @@ -239,7 +245,12 @@ export const deployFromRepository = async (

const env = await getEnv();

const deploy = await api.deploy(name, env, plan, 'Repository');
const deploy = await api.deploy(
name,
env,
plan,
ResourceType.Repository
);

info('Deploying...');

Expand Down

0 comments on commit 3fc03d0

Please sign in to comment.