Skip to content

Commit

Permalink
update package references
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 14, 2024
1 parent f3636b1 commit cdd941f
Show file tree
Hide file tree
Showing 40 changed files with 682 additions and 157 deletions.
1 change: 1 addition & 0 deletions clis/docs-migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"dependencies": {
"@fern-fern/docs-config": "^0.22.0",
"@fern-ui/core-utils": "workspace:*",
Expand Down
12 changes: 11 additions & 1 deletion clis/docs-migrator/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,15 @@
"outDir": "./dist",
"rootDir": "."
},
"include": ["./src/**/*"]
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../packages/commons/core-utils"
},
{
"path": "../../packages/fdr-sdk"
}
]
}
16 changes: 13 additions & 3 deletions clis/generator-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"extends": "../../shared/tsconfig.shared.json",
"compilerOptions": { "composite": true, "outDir": "dist", "rootDir": "." },
"include": ["./src/**/*"],
"references": [{ "path": "../../packages/commons/github" }]
"compilerOptions": {
"composite": true,
"outDir": "dist",
"rootDir": "."
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../packages/commons/github"
}
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"docs:start:fern-prod": "turbo start:fern-prod",
"docs:start:fern-dev": "turbo start:fern-dev",
"fdr:generate": "pnpm fern generate --api fdr --local && pnpm --filter=@fern-api/fdr-sdk compile",
"navigation:generate": "pnpm fern generate --api navigation --local"
"navigation:generate": "pnpm fern generate --api navigation --local",
"postinstall": "update-ts-references"
},
"devDependencies": {
"@babel/core": "^7.23.7",
Expand Down Expand Up @@ -88,6 +89,7 @@
"turbo": "^2.1.2",
"typescript": "5.4.3",
"typescript-plugin-css-modules": "^5.1.0",
"update-ts-references": "^3.3.0",
"vitest": "^1.6.0"
},
"resolutions": {
Expand Down
3 changes: 2 additions & 1 deletion packages/commons/core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"type": "module",
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/fdr-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
15 changes: 12 additions & 3 deletions packages/commons/fdr-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"extends": "@fern-platform/configs/tsconfig/library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"],
"references": [{ "path": "../../fdr-sdk" }]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../fdr-sdk"
}
]
}
2 changes: 1 addition & 1 deletion packages/commons/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -23,7 +24,6 @@
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/loadable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
14 changes: 12 additions & 2 deletions packages/commons/loadable/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"extends": "@fern-platform/configs/tsconfig/react-library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../core-utils"
}
]
}
2 changes: 1 addition & 1 deletion packages/commons/next-seo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/common-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
14 changes: 12 additions & 2 deletions packages/commons/react/common-components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"extends": "@fern-platform/configs/tsconfig/react-library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../loadable"
}
]
}
2 changes: 1 addition & 1 deletion packages/commons/react/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/react-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
15 changes: 12 additions & 3 deletions packages/commons/react/react-commons/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"extends": "@fern-platform/configs/tsconfig/react-library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"],
"references": [{ "path": "../../core-utils" }]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../core-utils"
}
]
}
2 changes: 1 addition & 1 deletion packages/commons/react/react-query-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
15 changes: 12 additions & 3 deletions packages/commons/react/react-query-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"extends": "@fern-platform/configs/tsconfig/react-library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"],
"references": [{ "path": "../../loadable" }]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../loadable"
}
]
}
2 changes: 1 addition & 1 deletion packages/commons/search-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": false,
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
18 changes: 15 additions & 3 deletions packages/commons/search-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@fern-platform/configs/tsconfig/react-library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"],
"references": [{ "path": "../core-utils" }, { "path": "../fdr-utils" }, { "path": "../../fdr-sdk" }]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../../fdr-sdk"
},
{
"path": "../core-utils"
}
]
}
19 changes: 16 additions & 3 deletions packages/healthchecks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"extends": "../../shared/tsconfig.shared.json",
"compilerOptions": { "composite": true, "outDir": "dist", "rootDir": "." },
"include": ["./src/**/*"],
"references": [{ "path": "../fdr-sdk" }, { "path": "../commons/core-utils" }]
"compilerOptions": {
"composite": true,
"outDir": "dist",
"rootDir": "."
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../commons/core-utils"
},
{
"path": "../fdr-sdk"
}
]
}
1 change: 1 addition & 0 deletions packages/template-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"module": "src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
14 changes: 12 additions & 2 deletions packages/template-resolver/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"extends": "@fern-platform/configs/tsconfig/library.json",
"compilerOptions": { "outDir": "./dist", "rootDir": "./src" },
"include": ["./src/**/*"]
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"./src/**/*"
],
"references": [
{
"path": "../fdr-sdk"
}
]
}
10 changes: 7 additions & 3 deletions packages/ui/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"exports": {
"./bundlers": {
"default": "./src/mdx/bundlers/index.ts"
"default": "./src/mdx/bundlers/index.ts",
"types": "./src/mdx/bundlers/index.ts"
},
"./auth": {
"default": "./src/auth/index.ts"
"default": "./src/auth/index.ts",
"types": "./src/auth/index.ts"
},
".": {
"default": "./src/index.ts"
"default": "./src/index.ts",
"types": "./src/index.ts"
}
},
"sideEffects": [
Expand Down
Loading

0 comments on commit cdd941f

Please sign in to comment.