Skip to content

Commit

Permalink
refactor: share common logic between publishDocs and previewDocs (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored May 19, 2024
1 parent 724f29b commit a0e5c6b
Show file tree
Hide file tree
Showing 68 changed files with 1,982 additions and 2,166 deletions.
130 changes: 114 additions & 16 deletions .pnp.cjs

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

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion generators/csharp/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"@types/jest": "^29.0.3",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"depcheck": "^1.4.6",
"eslint": "^8.56.0",
Expand Down
2 changes: 1 addition & 1 deletion generators/csharp/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"devDependencies": {
"@types/jest": "^29.0.3",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.14",
"depcheck": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion generators/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@types/jest": "^29.0.3",
"@types/js-yaml": "^4.0.8",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.14",
"depcheck": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion generators/ruby/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"@types/jest": "^29.0.3",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"depcheck": "^1.4.6",
"eslint": "^8.56.0",
Expand Down
2 changes: 1 addition & 1 deletion generators/typescript/express/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@fern-typescript/express-generator": "workspace:*",
"@ts-morph/common": "^0.23.0",
"@types/jest": "^29.0.3",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@types/tmp": "^0.2.4",
"depcheck": "^1.4.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/jest": "^29.0.3",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"depcheck": "^1.4.6",
"eslint": "^8.56.0",
Expand Down
2 changes: 1 addition & 1 deletion generators/typescript/sdk/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@fern-typescript/sdk-generator": "workspace:*",
"@ts-morph/common": "^0.23.0",
"@types/jest": "^29.0.3",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@types/tmp": "^0.2.4",
"depcheck": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion generators/typescript/sdk/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@babel/preset-typescript": "^7.24.1",
"@types/jest": "^29.0.3",
"@types/jest-specific-snapshot": "^0.5.7",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@types/url-join": "4.0.1",
"depcheck": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"@types/jest": "^29.0.3",
"@types/js-yaml": "^4.0.8",
"@types/latest-version": "^4.0.1",
"@types/lodash-es": "^4.17.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@types/tar": "^6.1.11",
"@types/validate-npm-package-name": "^4.0.0",
Expand Down
9 changes: 5 additions & 4 deletions packages/cli/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,10 +889,11 @@ function addDocsPreviewCommand(cli: Argv<GlobalCliOptions>, cliContext: CliConte
(yargs) => yargs,
async () => {
await previewDocsWorkspace({
project: await loadProjectAndRegisterWorkspacesWithContext(cliContext, {
defaultToAllApiWorkspaces: true,
commandLineApiWorkspace: undefined
}),
loadProject: () =>
loadProjectAndRegisterWorkspacesWithContext(cliContext, {
defaultToAllApiWorkspaces: true,
commandLineApiWorkspace: undefined
}),
cliContext
});
}
Expand Down
Loading

0 comments on commit a0e5c6b

Please sign in to comment.