From 533355106cf8fee846a02becf2390de32550e1e3 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Sat, 2 Nov 2024 13:29:31 -0400 Subject: [PATCH] chore(python): introduce typescript generators for pydantic + fastapi (#5073) --- generators/commons/package.json | 1 - generators/python-v2/fastapi/.depcheckrc.json | 15 ++ generators/python-v2/fastapi/.prettierrc.cjs | 1 + generators/python-v2/fastapi/Dockerfile | 3 + generators/python-v2/fastapi/package.json | 44 +++++ generators/python-v2/fastapi/src/cli.ts | 6 + generators/python-v2/fastapi/tsconfig.json | 11 ++ .../python-v2/pydantic-model/.depcheckrc.json | 15 ++ .../python-v2/pydantic-model/.prettierrc.cjs | 1 + .../python-v2/pydantic-model/Dockerfile | 3 + .../python-v2/pydantic-model/package.json | 44 +++++ .../python-v2/pydantic-model/src/cli.ts | 6 + .../python-v2/pydantic-model/tsconfig.json | 11 ++ .../typescript/sdk/generator/package.json | 2 - .../cli/api-importers/commons/package.json | 1 - .../conjure-to-fern-tests/package.json | 1 - .../conjure/conjure-to-fern/package.json | 1 - .../openapi/openapi-ir-parser/package.json | 1 - .../openapi-ir-to-fern-tests/package.json | 1 - .../openapi/openapi-ir-to-fern/package.json | 1 - .../cli/docs-importers/commons/package.json | 1 - .../cli/docs-importers/mintlify/package.json | 1 - packages/cli/docs-markdown-utils/package.json | 1 - packages/cli/docs-preview/package.json | 1 - packages/cli/docs-resolver/package.json | 1 - packages/cli/dynamic-snippets/package.json | 1 - packages/cli/ete-tests/package.json | 1 - .../fern-definition/formatter/package.json | 1 - .../cli/fern-definition/schema/package.json | 1 - .../fern-definition/validator/package.json | 1 - .../cli/generation/ir-generator/package.json | 1 - .../cli/generation/ir-migrations/package.json | 1 - .../docker-utils/package.json | 1 - .../remote-workspace-runner/package.json | 1 - packages/cli/lazy-fern-workspace/package.json | 1 - packages/cli/mock/package.json | 3 +- packages/cli/register/package.json | 1 - packages/cli/workspace-commons/package.json | 1 - packages/cli/workspace-loader/package.json | 1 - packages/cli/yaml/docs-validator/package.json | 1 - packages/commons/core-utils/package.json | 1 - packages/commons/logging-execa/package.json | 1 - packages/seed/package.json | 1 - pnpm-lock.yaml | 159 ++++++++---------- 44 files changed, 227 insertions(+), 126 deletions(-) create mode 100644 generators/python-v2/fastapi/.depcheckrc.json create mode 100644 generators/python-v2/fastapi/.prettierrc.cjs create mode 100644 generators/python-v2/fastapi/Dockerfile create mode 100644 generators/python-v2/fastapi/package.json create mode 100644 generators/python-v2/fastapi/src/cli.ts create mode 100644 generators/python-v2/fastapi/tsconfig.json create mode 100644 generators/python-v2/pydantic-model/.depcheckrc.json create mode 100644 generators/python-v2/pydantic-model/.prettierrc.cjs create mode 100644 generators/python-v2/pydantic-model/Dockerfile create mode 100644 generators/python-v2/pydantic-model/package.json create mode 100644 generators/python-v2/pydantic-model/src/cli.ts create mode 100644 generators/python-v2/pydantic-model/tsconfig.json diff --git a/generators/commons/package.json b/generators/commons/package.json index ed4643f2b5d..6bc1d2c85bc 100644 --- a/generators/commons/package.json +++ b/generators/commons/package.json @@ -44,7 +44,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/generators/python-v2/fastapi/.depcheckrc.json b/generators/python-v2/fastapi/.depcheckrc.json new file mode 100644 index 00000000000..943342b454f --- /dev/null +++ b/generators/python-v2/fastapi/.depcheckrc.json @@ -0,0 +1,15 @@ +{ + "ignores": [ + "@types/jest", + "globals", + "globals", + "@types/node", + "esbuild", + "@yarnpkg/esbuild-plugin-pnp", + "@fern-fern/ir-sdk" + ], + "ignore-patterns": [ + "lib", + "dist" + ] +} \ No newline at end of file diff --git a/generators/python-v2/fastapi/.prettierrc.cjs b/generators/python-v2/fastapi/.prettierrc.cjs new file mode 100644 index 00000000000..39cf0d0b8c9 --- /dev/null +++ b/generators/python-v2/fastapi/.prettierrc.cjs @@ -0,0 +1 @@ +module.exports = require("../../../.prettierrc.json"); diff --git a/generators/python-v2/fastapi/Dockerfile b/generators/python-v2/fastapi/Dockerfile new file mode 100644 index 00000000000..cbf39617e2c --- /dev/null +++ b/generators/python-v2/fastapi/Dockerfile @@ -0,0 +1,3 @@ +FROM node:18.1.0-alpine +COPY generators/python-v2/fastapi/dist /dist +ENTRYPOINT ["node", "/dist/cli.cjs"] diff --git a/generators/python-v2/fastapi/package.json b/generators/python-v2/fastapi/package.json new file mode 100644 index 00000000000..a942919be69 --- /dev/null +++ b/generators/python-v2/fastapi/package.json @@ -0,0 +1,44 @@ +{ + "name": "@fern-api/python-fastapi", + "version": "0.0.0", + "repository": { + "type": "git", + "url": "https://github.com/fern-api/fern.git", + "directory": "generators/csharp/sdk" + }, + "files": [ + "lib" + ], + "type": "module", + "source": "src/index.ts", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "sideEffects": false, + "scripts": { + "clean": "rm -rf ./lib && tsc --build --clean", + "compile": "tsc --build", + "test": "vitest --passWithNoTests --run", + "test:update": "vitest --passWithNoTests --run -u", + "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", + "lint:eslint:fix": "yarn lint:eslint --fix", + "format": "prettier --write --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "format:check": "prettier --check --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "organize-imports": "organize-imports-cli tsconfig.json", + "depcheck": "depcheck", + "dist:cli": "pnpm compile && tsup ./src/cli.ts --format cjs", + "publish:cli": "pnpm dist:cli && cd dist && yarn npm publish", + "dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-fastapi-server-v2:latest ../../.." + }, + "devDependencies": { + "@types/node": "18.7.18", + "@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.14", + "depcheck": "^1.4.6", + "esbuild": "^0.24.0", + "eslint": "^8.56.0", + "organize-imports-cli": "^0.10.0", + "prettier": "^2.7.1", + "tsup": "^8.0.2", + "typescript": "4.6.4", + "vitest": "^2.0.5" + } +} \ No newline at end of file diff --git a/generators/python-v2/fastapi/src/cli.ts b/generators/python-v2/fastapi/src/cli.ts new file mode 100644 index 00000000000..f01677eeca1 --- /dev/null +++ b/generators/python-v2/fastapi/src/cli.ts @@ -0,0 +1,6 @@ +void runCli(); + +export async function runCli(): Promise { + // eslint-disable-next-line no-console + console.log("Noop..."); +} diff --git a/generators/python-v2/fastapi/tsconfig.json b/generators/python-v2/fastapi/tsconfig.json new file mode 100644 index 00000000000..945efb0f393 --- /dev/null +++ b/generators/python-v2/fastapi/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../shared/tsconfig.shared.json", + "compilerOptions": { "composite": true, "outDir": "lib", "rootDir": "src" }, + "include": ["./src/**/*"], + "references": [ + { "path": "../../../packages/commons/core-utils" }, + { "path": "../../../packages/commons/fs-utils" }, + { "path": "../../commons" }, + { "path": "../codegen" } + ] +} diff --git a/generators/python-v2/pydantic-model/.depcheckrc.json b/generators/python-v2/pydantic-model/.depcheckrc.json new file mode 100644 index 00000000000..943342b454f --- /dev/null +++ b/generators/python-v2/pydantic-model/.depcheckrc.json @@ -0,0 +1,15 @@ +{ + "ignores": [ + "@types/jest", + "globals", + "globals", + "@types/node", + "esbuild", + "@yarnpkg/esbuild-plugin-pnp", + "@fern-fern/ir-sdk" + ], + "ignore-patterns": [ + "lib", + "dist" + ] +} \ No newline at end of file diff --git a/generators/python-v2/pydantic-model/.prettierrc.cjs b/generators/python-v2/pydantic-model/.prettierrc.cjs new file mode 100644 index 00000000000..39cf0d0b8c9 --- /dev/null +++ b/generators/python-v2/pydantic-model/.prettierrc.cjs @@ -0,0 +1 @@ +module.exports = require("../../../.prettierrc.json"); diff --git a/generators/python-v2/pydantic-model/Dockerfile b/generators/python-v2/pydantic-model/Dockerfile new file mode 100644 index 00000000000..07851f423ae --- /dev/null +++ b/generators/python-v2/pydantic-model/Dockerfile @@ -0,0 +1,3 @@ +FROM node:18.1.0-alpine +COPY generators/python-v2/pydantic-model/dist /dist +ENTRYPOINT ["node", "/dist/cli.cjs"] diff --git a/generators/python-v2/pydantic-model/package.json b/generators/python-v2/pydantic-model/package.json new file mode 100644 index 00000000000..368c97bac89 --- /dev/null +++ b/generators/python-v2/pydantic-model/package.json @@ -0,0 +1,44 @@ +{ + "name": "@fern-api/fern-pydantic-model", + "version": "0.0.0", + "repository": { + "type": "git", + "url": "https://github.com/fern-api/fern.git", + "directory": "generators/csharp/sdk" + }, + "files": [ + "lib" + ], + "type": "module", + "source": "src/index.ts", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "sideEffects": false, + "scripts": { + "clean": "rm -rf ./lib && tsc --build --clean", + "compile": "tsc --build", + "test": "vitest --passWithNoTests --run", + "test:update": "vitest --passWithNoTests --run -u", + "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", + "lint:eslint:fix": "yarn lint:eslint --fix", + "format": "prettier --write --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "format:check": "prettier --check --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "organize-imports": "organize-imports-cli tsconfig.json", + "depcheck": "depcheck", + "dist:cli": "pnpm compile && tsup ./src/cli.ts --format cjs", + "publish:cli": "pnpm dist:cli && cd dist && yarn npm publish", + "dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-pydantic-model-v2:latest ../../.." + }, + "devDependencies": { + "@types/node": "18.7.18", + "@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.14", + "depcheck": "^1.4.6", + "esbuild": "^0.24.0", + "eslint": "^8.56.0", + "organize-imports-cli": "^0.10.0", + "prettier": "^2.7.1", + "tsup": "^8.0.2", + "typescript": "4.6.4", + "vitest": "^2.0.5" + } +} \ No newline at end of file diff --git a/generators/python-v2/pydantic-model/src/cli.ts b/generators/python-v2/pydantic-model/src/cli.ts new file mode 100644 index 00000000000..f01677eeca1 --- /dev/null +++ b/generators/python-v2/pydantic-model/src/cli.ts @@ -0,0 +1,6 @@ +void runCli(); + +export async function runCli(): Promise { + // eslint-disable-next-line no-console + console.log("Noop..."); +} diff --git a/generators/python-v2/pydantic-model/tsconfig.json b/generators/python-v2/pydantic-model/tsconfig.json new file mode 100644 index 00000000000..945efb0f393 --- /dev/null +++ b/generators/python-v2/pydantic-model/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../shared/tsconfig.shared.json", + "compilerOptions": { "composite": true, "outDir": "lib", "rootDir": "src" }, + "include": ["./src/**/*"], + "references": [ + { "path": "../../../packages/commons/core-utils" }, + { "path": "../../../packages/commons/fs-utils" }, + { "path": "../../commons" }, + { "path": "../codegen" } + ] +} diff --git a/generators/typescript/sdk/generator/package.json b/generators/typescript/sdk/generator/package.json index 1f765909202..e48f24c9942 100644 --- a/generators/typescript/sdk/generator/package.json +++ b/generators/typescript/sdk/generator/package.json @@ -65,8 +65,6 @@ "@types/url-join": "4.0.1", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", - "vitest": "^2.0.5", "jest-specific-snapshot": "^8.0.0", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/api-importers/commons/package.json b/packages/cli/api-importers/commons/package.json index 6c266a61f33..6c1b0667ea0 100644 --- a/packages/cli/api-importers/commons/package.json +++ b/packages/cli/api-importers/commons/package.json @@ -37,7 +37,6 @@ "devDependencies": { "@types/node": "18.7.18", "depcheck": "^1.4.6", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/api-importers/conjure/conjure-to-fern-tests/package.json b/packages/cli/api-importers/conjure/conjure-to-fern-tests/package.json index 6719e132fe0..8a084a72c73 100644 --- a/packages/cli/api-importers/conjure/conjure-to-fern-tests/package.json +++ b/packages/cli/api-importers/conjure/conjure-to-fern-tests/package.json @@ -36,7 +36,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/api-importers/conjure/conjure-to-fern/package.json b/packages/cli/api-importers/conjure/conjure-to-fern/package.json index 009e0c04567..7dd5303488d 100644 --- a/packages/cli/api-importers/conjure/conjure-to-fern/package.json +++ b/packages/cli/api-importers/conjure/conjure-to-fern/package.json @@ -39,7 +39,6 @@ "@types/js-yaml": "^4.0.8", "@types/node": "18.7.18", "depcheck": "^1.4.6", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/package.json b/packages/cli/api-importers/openapi/openapi-ir-parser/package.json index 6be8f38d044..b69181fa675 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/package.json +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/package.json @@ -47,7 +47,6 @@ "@types/swagger2openapi": "^7.0.4", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/package.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/package.json index 5adf79f9dbe..0b444f17eec 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/package.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/package.json @@ -37,7 +37,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/package.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern/package.json index 0df656278ae..cd34e572af9 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/package.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/package.json @@ -44,7 +44,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/docs-importers/commons/package.json b/packages/cli/docs-importers/commons/package.json index 45a3b785bb4..22bec80fd01 100644 --- a/packages/cli/docs-importers/commons/package.json +++ b/packages/cli/docs-importers/commons/package.json @@ -39,7 +39,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/docs-importers/mintlify/package.json b/packages/cli/docs-importers/mintlify/package.json index cfdb47b4b45..f18bb9932c4 100644 --- a/packages/cli/docs-importers/mintlify/package.json +++ b/packages/cli/docs-importers/mintlify/package.json @@ -41,7 +41,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/docs-markdown-utils/package.json b/packages/cli/docs-markdown-utils/package.json index dad386697f9..af87ef06c28 100644 --- a/packages/cli/docs-markdown-utils/package.json +++ b/packages/cli/docs-markdown-utils/package.json @@ -43,7 +43,6 @@ "depcheck": "^1.4.6", "diff": "^5.2.0", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/docs-preview/package.json b/packages/cli/docs-preview/package.json index 49df2911409..306177aff31 100644 --- a/packages/cli/docs-preview/package.json +++ b/packages/cli/docs-preview/package.json @@ -59,7 +59,6 @@ "@types/xml2js": "^0.4.14", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/docs-resolver/package.json b/packages/cli/docs-resolver/package.json index 7ca162546df..7a9576ced2a 100644 --- a/packages/cli/docs-resolver/package.json +++ b/packages/cli/docs-resolver/package.json @@ -48,7 +48,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/dynamic-snippets/package.json b/packages/cli/dynamic-snippets/package.json index 05613904254..e1243e9a3f0 100644 --- a/packages/cli/dynamic-snippets/package.json +++ b/packages/cli/dynamic-snippets/package.json @@ -43,7 +43,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "typescript": "4.6.4", "vitest": "^2.0.5" diff --git a/packages/cli/ete-tests/package.json b/packages/cli/ete-tests/package.json index f991f44f6eb..73cb63872ed 100644 --- a/packages/cli/ete-tests/package.json +++ b/packages/cli/ete-tests/package.json @@ -47,7 +47,6 @@ "depcheck": "^1.4.6", "eslint": "^8.56.0", "form-data": "4.0.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "jest-environment-jsdom": "^29.7.0", "organize-imports-cli": "^0.10.0", diff --git a/packages/cli/fern-definition/formatter/package.json b/packages/cli/fern-definition/formatter/package.json index 2e917c7c99c..31a04f6130a 100644 --- a/packages/cli/fern-definition/formatter/package.json +++ b/packages/cli/fern-definition/formatter/package.json @@ -41,7 +41,6 @@ "@types/prettier": "^2.7.1", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/fern-definition/schema/package.json b/packages/cli/fern-definition/schema/package.json index a7c97eaea2e..8e7ee3ba3c8 100644 --- a/packages/cli/fern-definition/schema/package.json +++ b/packages/cli/fern-definition/schema/package.json @@ -36,7 +36,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/fern-definition/validator/package.json b/packages/cli/fern-definition/validator/package.json index e3acb1ef928..ce1d334bf5a 100644 --- a/packages/cli/fern-definition/validator/package.json +++ b/packages/cli/fern-definition/validator/package.json @@ -52,7 +52,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/generation/ir-generator/package.json b/packages/cli/generation/ir-generator/package.json index c2066396809..fa61b5574bd 100644 --- a/packages/cli/generation/ir-generator/package.json +++ b/packages/cli/generation/ir-generator/package.json @@ -50,7 +50,6 @@ "@types/url-join": "4.0.1", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "typescript": "4.6.4", "vitest": "^2.0.5" diff --git a/packages/cli/generation/ir-migrations/package.json b/packages/cli/generation/ir-migrations/package.json index b5a3c28a63b..b163fa1e0eb 100644 --- a/packages/cli/generation/ir-migrations/package.json +++ b/packages/cli/generation/ir-migrations/package.json @@ -97,7 +97,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/generation/local-generation/docker-utils/package.json b/packages/cli/generation/local-generation/docker-utils/package.json index 2b3008af278..d9f24ed687d 100644 --- a/packages/cli/generation/local-generation/docker-utils/package.json +++ b/packages/cli/generation/local-generation/docker-utils/package.json @@ -37,7 +37,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/generation/remote-generation/remote-workspace-runner/package.json b/packages/cli/generation/remote-generation/remote-workspace-runner/package.json index 6d3dc1cf0af..716e86fb637 100644 --- a/packages/cli/generation/remote-generation/remote-workspace-runner/package.json +++ b/packages/cli/generation/remote-generation/remote-workspace-runner/package.json @@ -67,7 +67,6 @@ "@types/terminal-link": "^1.2.0", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "lodash-es": "^4.17.21", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/lazy-fern-workspace/package.json b/packages/cli/lazy-fern-workspace/package.json index b2c13d82937..679941fded9 100644 --- a/packages/cli/lazy-fern-workspace/package.json +++ b/packages/cli/lazy-fern-workspace/package.json @@ -63,7 +63,6 @@ "@types/tar": "^6.1.11", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/mock/package.json b/packages/cli/mock/package.json index bc9f436f1dd..035ebe83787 100644 --- a/packages/cli/mock/package.json +++ b/packages/cli/mock/package.json @@ -43,10 +43,9 @@ "@types/url-join": "4.0.1", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", "vitest": "^2.0.5" } -} +} \ No newline at end of file diff --git a/packages/cli/register/package.json b/packages/cli/register/package.json index 0ce6e4cd23d..9f9b2de07cc 100644 --- a/packages/cli/register/package.json +++ b/packages/cli/register/package.json @@ -46,7 +46,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/cli/workspace-commons/package.json b/packages/cli/workspace-commons/package.json index 50bf40956eb..83e5dd027ee 100644 --- a/packages/cli/workspace-commons/package.json +++ b/packages/cli/workspace-commons/package.json @@ -41,7 +41,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/workspace-loader/package.json b/packages/cli/workspace-loader/package.json index aa16f73b624..d9779985e70 100644 --- a/packages/cli/workspace-loader/package.json +++ b/packages/cli/workspace-loader/package.json @@ -48,7 +48,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "vitest": "^2.0.5", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", diff --git a/packages/cli/yaml/docs-validator/package.json b/packages/cli/yaml/docs-validator/package.json index 9795d36a15d..6aa496caf9d 100644 --- a/packages/cli/yaml/docs-validator/package.json +++ b/packages/cli/yaml/docs-validator/package.json @@ -55,7 +55,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/commons/core-utils/package.json b/packages/commons/core-utils/package.json index 6d546804c95..b97348e616f 100644 --- a/packages/commons/core-utils/package.json +++ b/packages/commons/core-utils/package.json @@ -46,7 +46,6 @@ "@types/whatwg-mimetype": "^3.0.2", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/commons/logging-execa/package.json b/packages/commons/logging-execa/package.json index c154c05ff06..c338ffa7c1f 100644 --- a/packages/commons/logging-execa/package.json +++ b/packages/commons/logging-execa/package.json @@ -35,7 +35,6 @@ "@types/node": "18.7.18", "depcheck": "^1.4.6", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "typescript": "4.6.4", diff --git a/packages/seed/package.json b/packages/seed/package.json index 06a58328b02..dcdaa111fe6 100644 --- a/packages/seed/package.json +++ b/packages/seed/package.json @@ -67,7 +67,6 @@ "depcheck": "^1.4.6", "esbuild": "^0.24.0", "eslint": "^8.56.0", - "globals": "link:@types/vitest/globals", "organize-imports-cli": "^0.10.0", "prettier": "^2.7.1", "tsup": "^8.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9f53d4e661..ded1a9edf03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -193,9 +193,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -868,6 +865,72 @@ importers: specifier: ^2.0.5 version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) + generators/python-v2/fastapi: + devDependencies: + '@types/node': + specifier: 18.7.18 + version: 18.7.18 + '@yarnpkg/esbuild-plugin-pnp': + specifier: ^3.0.0-rc.14 + version: 3.0.0-rc.14(esbuild@0.24.0) + depcheck: + specifier: ^1.4.6 + version: 1.4.6 + esbuild: + specifier: ^0.24.0 + version: 0.24.0 + eslint: + specifier: ^8.56.0 + version: 8.56.0 + organize-imports-cli: + specifier: ^0.10.0 + version: 0.10.0 + prettier: + specifier: ^2.7.1 + version: 2.7.1 + tsup: + specifier: ^8.0.2 + version: 8.0.2(postcss@8.4.47)(ts-node@10.9.2(@types/node@18.7.18)(typescript@4.6.4))(typescript@4.6.4) + typescript: + specifier: 4.6.4 + version: 4.6.4 + vitest: + specifier: ^2.0.5 + version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) + + generators/python-v2/pydantic-model: + devDependencies: + '@types/node': + specifier: 18.7.18 + version: 18.7.18 + '@yarnpkg/esbuild-plugin-pnp': + specifier: ^3.0.0-rc.14 + version: 3.0.0-rc.14(esbuild@0.24.0) + depcheck: + specifier: ^1.4.6 + version: 1.4.6 + esbuild: + specifier: ^0.24.0 + version: 0.24.0 + eslint: + specifier: ^8.56.0 + version: 8.56.0 + organize-imports-cli: + specifier: ^0.10.0 + version: 0.10.0 + prettier: + specifier: ^2.7.1 + version: 2.7.1 + tsup: + specifier: ^8.0.2 + version: 8.0.2(postcss@8.4.47)(ts-node@10.9.2(@types/node@18.7.18)(typescript@4.6.4))(typescript@4.6.4) + typescript: + specifier: 4.6.4 + version: 4.6.4 + vitest: + specifier: ^2.0.5 + version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) + generators/ruby/cli: dependencies: '@fern-api/fs-utils': @@ -2315,9 +2378,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals jest-specific-snapshot: specifier: ^8.0.0 version: 8.0.0(jest@29.7.0(@types/node@18.7.18)(ts-node@10.9.2(@types/node@18.7.18)(typescript@4.6.4))) @@ -3173,9 +3233,6 @@ importers: depcheck: specifier: ^1.4.6 version: 1.4.6 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -3243,9 +3300,6 @@ importers: depcheck: specifier: ^1.4.6 version: 1.4.6 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -3280,9 +3334,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -3380,9 +3431,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -3441,9 +3489,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -3481,9 +3526,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -3968,9 +4010,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4020,9 +4059,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4078,9 +4114,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4184,9 +4217,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4260,9 +4290,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4318,9 +4345,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4385,9 +4409,6 @@ importers: form-data: specifier: 4.0.0 version: 4.0.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals jest-environment-jsdom: specifier: ^29.7.0 version: 29.7.0 @@ -4440,9 +4461,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4535,9 +4553,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4620,9 +4635,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4699,9 +4711,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4916,9 +4925,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -4956,9 +4962,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5174,9 +5177,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5371,9 +5371,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5530,9 +5527,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5689,9 +5683,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5803,9 +5794,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5876,9 +5864,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -5970,9 +5955,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -6040,9 +6022,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -6154,9 +6133,6 @@ importers: eslint: specifier: ^8.56.0 version: 8.56.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals organize-imports-cli: specifier: ^0.10.0 version: 0.10.0 @@ -6326,9 +6302,6 @@ importers: find-up: specifier: ^6.3.0 version: 6.3.0 - globals: - specifier: link:@types/vitest/globals - version: link:@types/vitest/globals js-yaml: specifier: ^4.1.0 version: 4.1.0