Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 22e5b0d

Browse files
committed
chore: update docs
1 parent 340951c commit 22e5b0d

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,23 @@ Update `tsconfig.json`
108108
}
109109
```
110110

111+
## Next.js
112+
113+
```diff
114+
/** @type {import('next').NextConfig} */
115+
- const nextConfig = {
116+
+ experimental: {
117+
+ optimizePackageImports: [
118+
+ '@codefixlabs/hooks',
119+
+ '@codefixlabs/lib',
120+
+ '@codefixlabs/ui',
121+
+ ],
122+
+ },
123+
};
124+
125+
module.exports = nextConfig
126+
```
127+
111128
## ESLint
112129

113130
Update `.eslintrc.json`

apps/docs/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
experimental: {
4-
optimizePackageImports: ['@codefixlabs/ui'],
4+
optimizePackageImports: ['@codefixlabs/lib', '@codefixlabs/ui'],
55
},
66
};
77

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"eslint": "^8.53.0",
5353
"lint-staged": "^15.0.2",
5454
"prettier": "^3.0.3",
55-
"prettier-plugin-tailwindcss": "^0.5.6",
55+
"prettier-plugin-tailwindcss": "^0.5.7",
5656
"simple-git-hooks": "^2.9.0",
5757
"turbo": "^1.10.16"
5858
},

packages/ui/tsup.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function addDirectivesToChunkFiles(distPath = DIST_PATH): Promise<void> {
2323

2424
if (isSkipFile) {
2525
// eslint-disable-next-line no-console -- We need to log the result
26-
console.log(`Directive has been skipped for ${file}`);
26+
console.log(`Directive 'use client'; has been skipped for ${file}`);
2727
continue;
2828
}
2929

@@ -33,7 +33,7 @@ async function addDirectivesToChunkFiles(distPath = DIST_PATH): Promise<void> {
3333
await fs.writeFile(filePath, updatedContent, 'utf8');
3434

3535
// eslint-disable-next-line no-console -- We need to log the result
36-
console.log(`Directive has been added to ${file}`);
36+
console.log(`Directive 'use client'; has been added to ${file}`);
3737
}
3838
}
3939
} catch (err) {

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)