@archoleat/next-define-config 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -13,11 +13,16 @@
|
|
|
13
13
|
## Table of Contents
|
|
14
14
|
|
|
15
15
|
- [Installation](#installation)
|
|
16
|
+
- [Runtime](#runtime)
|
|
16
17
|
- [Usage](#usage)
|
|
17
18
|
- [Contributing](#contributing)
|
|
18
19
|
- [License](#license)
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
Use `defineConfig` to type an object-based Next.js configuration with a
|
|
22
|
+
function call. It returns that object unchanged; a native `NextConfig`
|
|
23
|
+
annotation, JSDoc, or `satisfies NextConfig` is enough when you do not need a
|
|
24
|
+
helper. The declared peer ranges cover Next.js 13–16; async/function configs
|
|
25
|
+
and runtime validation are outside this helper's API.
|
|
21
26
|
|
|
22
27
|
## Installation
|
|
23
28
|
|
|
@@ -25,6 +30,12 @@ Provide a defineConfig function for Next.
|
|
|
25
30
|
bun i -D @archoleat/next-define-config
|
|
26
31
|
```
|
|
27
32
|
|
|
33
|
+
## Runtime
|
|
34
|
+
|
|
35
|
+
This ES module is loaded by the host tool's configuration loader. Follow
|
|
36
|
+
the Node.js requirements of that tool. Bun is used for repository tooling,
|
|
37
|
+
not required to call the published helper.
|
|
38
|
+
|
|
28
39
|
## Usage
|
|
29
40
|
|
|
30
41
|
See [Next Configuration](https://nextjs.org/docs/app/api-reference/next-config-js).
|
|
@@ -43,7 +54,7 @@ Use this:
|
|
|
43
54
|
```js
|
|
44
55
|
import { defineConfig } from '@archoleat/next-define-config';
|
|
45
56
|
|
|
46
|
-
export default defineConfig({})
|
|
57
|
+
export default defineConfig({});
|
|
47
58
|
```
|
|
48
59
|
|
|
49
60
|
## Contributing
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archoleat/next-define-config",
|
|
3
3
|
"description": "Provide a defineConfig function for Next",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "nikkeyl.me@gmail.com",
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
"nextjs",
|
|
23
23
|
"typescript"
|
|
24
24
|
],
|
|
25
|
-
"engines": {
|
|
26
|
-
"bun": ">=1.0.0"
|
|
27
|
-
},
|
|
28
25
|
"type": "module",
|
|
29
26
|
"types": "index.d.ts",
|
|
30
27
|
"imports": {
|
|
@@ -82,5 +79,11 @@
|
|
|
82
79
|
"semantic-release": "^25.0.5",
|
|
83
80
|
"tslib": "^2.8.1",
|
|
84
81
|
"typescript": "^6.0.2"
|
|
82
|
+
},
|
|
83
|
+
"patchedDependencies": {
|
|
84
|
+
"glob@10.5.0": "patches/glob@10.5.0.patch",
|
|
85
|
+
"minimatch@9.0.9": "patches/minimatch@9.0.9.patch",
|
|
86
|
+
"minimatch@10.2.6": "patches/minimatch@10.2.6.patch",
|
|
87
|
+
"npm@11.21.2": "patches/npm@11.21.2.patch"
|
|
85
88
|
}
|
|
86
89
|
}
|