Skip to content

Commit

Permalink
feat: did-tools adapt for peer and standalone core
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Jan 6, 2025
1 parent 011d73a commit c30ca74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/did-tools/src/tests/services/parser.services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ describe('parser-services', () => {
expect(result.trim()).toEqual(mockTransformedCoreJS);
});

it('should import from core-peer', () => {
it('should import from core-standalone', () => {
const result = parseApi({
methods: mockMethodSignatures,
imports: [],
transformerOptions: {
outputLanguage: 'ts',
coreLib: 'core-peer'
coreLib: 'core-standalone'
}
});

expect(result.trim()).toContain(
"import {getSatelliteExtendedActor} from '@junobuild/core-peer';"
"import {getSatelliteExtendedActor} from '@junobuild/core-standalone';"
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/did-tools/src/types/transformer-options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface TransformerOptions {
outputLanguage: 'js' | 'ts';
coreLib?: 'core' | 'core-peer';
coreLib?: 'core' | 'core-standalone';
}

0 comments on commit c30ca74

Please sign in to comment.