Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Sep 9, 2024
1 parent bfa07ca commit 8ba3a1f
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/services/build.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,23 @@ const didc = async () => {
return;
}

await Promise.all(
['js', 'ts'].map((type) =>
spawn({
command: 'junobuild-didc',
args: [
'-i',
SATELLITE_CUSTOM_DID_FILE,
'-t',
type,
'-o',
`${DEVELOPER_PROJECT_SATELLITE_DECLARATIONS_PATH}/satellite.${type}`
]
})
)
);
const generate = async (type: 'js' | 'ts') => {
await spawn({
command: 'junobuild-didc',
args: [
'-i',
SATELLITE_CUSTOM_DID_FILE,
'-t',
type,
'-o',
`${DEVELOPER_PROJECT_SATELLITE_DECLARATIONS_PATH}/satellite.${type}`
]
});
};

const promises = (['js', 'ts'] as Array<'js' | 'ts'>).map(generate);

await Promise.all(promises);
};

const icWasm = async () => {
Expand Down

0 comments on commit 8ba3a1f

Please sign in to comment.