Skip to content

Commit

Permalink
chore(cli): Remove prettier from build.cjs files (#5371)
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney authored Dec 9, 2024
1 parent f448b33 commit 20d49ad
Show file tree
Hide file tree
Showing 293 changed files with 15,804 additions and 35 deletions.
12 changes: 4 additions & 8 deletions packages/cli/generation/ir-generator/build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,23 @@ const path = require("path");
main();

async function main() {
tsup.build({
tsup.build({
entry: ['src/**/*.ts', '!src/__test__'],
format: ['cjs'],
clean: true,
// minify: true,
minify: true,
dts: true,
outDir: 'dist',
target: "es2017",
external: [
// Exclude the optional dependencies that aren't supported in the browser.
'prettier',
],
tsconfig: "./build.tsconfig.json"
});

process.chdir(path.join(__dirname, "dist"));

// The module expects the imports defined in the index.d.ts file.
rename("index.d.cts", "index.d.ts");
rename("index.d.cts", "index.d.ts");

writeFile(
writeFile(
"package.json",
JSON.stringify(
{
Expand Down
4 changes: 0 additions & 4 deletions packages/snippets/core/build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ async function main() {
dts: true,
outDir: 'dist',
target: "es2017",
external: [
// Exclude the optional dependencies that aren't supported in the browser.
'prettier'
],
tsconfig: "./build.tsconfig.json"
});

Expand Down
30 changes: 28 additions & 2 deletions packages/snippets/core/src/__test__/generateDynamicIR.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,39 @@ describe("generateDynamicIR", () => {
}
}
}
},
"/filtered": {
get: {
summary: "This endpoint should be filtered out",
operationId: "filtered",
responses: {
"200": {
description: "Successful response",
content: {
"application/json": {
schema: {
type: "object",
properties: {
message: { type: "string" }
}
}
}
}
}
}
}
}
}
};
const ir = await generateDynamicIR({
const ir = generateDynamicIR({
spec: {
type: "openapi",
openapi
openapi,
settings: {
filter: {
endpoints: ["GET /testdata"]
}
}
},
language: "go"
});
Expand Down
3 changes: 2 additions & 1 deletion packages/snippets/core/src/utils/convertSpecToWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function convertSpecToWorkspace({
const openapi = new OpenAPIWorkspace({
spec: {
parsed: spec.openapi,
overrides: spec.overrides
overrides: spec.overrides,
settings: spec.settings
},
generatorsConfiguration
});
Expand Down
20 changes: 10 additions & 10 deletions seed/csharp-model/inline-types/src/SeedObject.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions seed/csharp-sdk/inline-types/src/SeedObject.sln

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions seed/fastapi/inline-types/.mock/definition/__package__.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions seed/fastapi/inline-types/.mock/definition/api.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions seed/fastapi/inline-types/.mock/fern.config.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions seed/fastapi/inline-types/.mock/generators.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions seed/fastapi/inline-types/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions seed/fastapi/inline-types/core/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions seed/fastapi/inline-types/core/abstract_fern_service.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions seed/fastapi/inline-types/core/datetime_utils.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions seed/fastapi/inline-types/core/exceptions/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions seed/fastapi/inline-types/core/exceptions/fern_http_exception.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 20d49ad

Please sign in to comment.