Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _mytests
.idea
.zed
docs/changelog.md
.generated
__generated__

# Yarn files
.yarn/install-state.gz
Expand Down
2 changes: 1 addition & 1 deletion docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ FLAGS
--all-optional Mark all properties as optional in
generated types.
-o, --output=<value> Directory where the generated files
should be outputted. Defaults to src/.generated/actor/ to
should be outputted. Defaults to src/__generated__/actor/ to
stay within the typical tsconfig rootDir.
--strict Whether generated interfaces should be
strict (no index signature [key: string]: unknown).
Expand Down
4 changes: 2 additions & 2 deletions src/commands/actor/generate-schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ Optionally specify custom schema path to use.`;
output: Flags.string({
char: 'o',
description:
'Directory where the generated files should be outputted. Defaults to src/.generated/actor/ to stay within the typical tsconfig rootDir.',
'Directory where the generated files should be outputted. Defaults to src/__generated__/actor/ to stay within the typical tsconfig rootDir.',
required: false,
default: path.join('src', '.generated', 'actor'),
default: path.join('src', '__generated__', 'actor'),
}),
strict: Flags.boolean({
description: 'Whether generated interfaces should be strict (no index signature [key: string]: unknown).',
Expand Down
4 changes: 2 additions & 2 deletions test/local/commands/actor/generate-schema-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ describe('apify actor generate-schema-types', () => {
});

expect(lastErrorMessage()).include('Generated types written to');
expect(lastErrorMessage()).include(join('.generated', 'actor', 'input.ts'));
expect(lastErrorMessage()).include(join('__generated__', 'actor', 'input.ts'));

const generatedFile = await readFile(joinPath('src', '.generated', 'actor', 'input.ts'), 'utf-8');
const generatedFile = await readFile(joinPath('src', '__generated__', 'actor', 'input.ts'), 'utf-8');
expect(generatedFile).toContain('export interface');
});

Expand Down
Loading