Skip to content

Commit 49316e9

Browse files
fix: update fuma source config (#521)
1 parent a4467a5 commit 49316e9

File tree

6 files changed

+31
-4
lines changed

6 files changed

+31
-4
lines changed

apps/www/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@
4141
"eslint": "^8",
4242
"eslint-config-next": "14",
4343
"typescript": "^5.7.3"
44+
},
45+
"engines": {
46+
"node": ">=22"
4447
}
4548
}

apps/www/source.config.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
1+
import * as path from 'node:path';
2+
import { fileURLToPath } from 'url';
13
import { TagSchema } from '@/lib/types';
24
import { remarkInstall } from 'fumadocs-docgen';
35
import {
46
defineConfig,
57
defineDocs,
68
frontmatterSchema
79
} from 'fumadocs-mdx/config';
8-
import { createGenerator, remarkAutoTypeTable } from 'fumadocs-typescript';
10+
import {
11+
GeneratorOptions,
12+
createGenerator,
13+
remarkAutoTypeTable
14+
} from 'fumadocs-typescript';
15+
16+
const relative = (s: string): string =>
17+
path.resolve(fileURLToPath(new URL(s, import.meta.url)));
18+
19+
const tsconfig: GeneratorOptions = {
20+
tsconfigPath: relative('../tsconfig.json'),
21+
basePath: relative('../'),
22+
cache: false
23+
};
924

10-
const generator = createGenerator();
25+
const generator = createGenerator(tsconfig);
1126

1227
export const docs = defineDocs({
1328
dir: 'src/content/docs',

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
"typescript": "4.7"
2727
},
2828
"packageManager": "[email protected]",
29-
"name": "apsara"
29+
"name": "apsara",
30+
"engines": {
31+
"node": ">=22"
32+
}
3033
}

packages/eslint-config-custom/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
},
1616
"devDependencies": {
1717
"eslint-plugin-simple-import-sort": "^12.1.1"
18+
},
19+
"engines": {
20+
"node": ">=22"
1821
}
1922
}

packages/raystack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"types": "dist/index.d.ts",
55
"sideEffects": false,
66
"engines": {
7-
"node": ">=18"
7+
"node": ">=22"
88
},
99
"exports": {
1010
".": {

packages/tsconfig/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"license": "MIT",
66
"publishConfig": {
77
"access": "public"
8+
},
9+
"engines": {
10+
"node": ">=22"
811
}
912
}

0 commit comments

Comments
 (0)