@archoleat/next-define-config 1.0.0 → 1.1.0
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 +12 -20
- package/package.json +17 -30
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|

|
|
11
11
|

|
|
12
12
|

|
|
13
|
-

|
|
14
14
|
|
|
15
15
|
## Table of Contents
|
|
16
16
|
|
|
@@ -22,36 +22,28 @@
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
24
|
```shell
|
|
25
|
-
# bun
|
|
26
25
|
bun i -D @archoleat/next-define-config
|
|
27
26
|
```
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
# pnpm
|
|
31
|
-
pnpm i -D @archoleat/next-define-config
|
|
32
|
-
```
|
|
28
|
+
## Usage
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
# npm
|
|
36
|
-
npm i -D @archoleat/next-define-config
|
|
37
|
-
```
|
|
30
|
+
See [Next Configuration](https://nextjs.org/docs/app/api-reference/next-config-js).
|
|
38
31
|
|
|
39
|
-
|
|
40
|
-
# yarn
|
|
41
|
-
yarn add -D @archoleat/next-define-config
|
|
42
|
-
```
|
|
32
|
+
Instead of this:
|
|
43
33
|
|
|
44
|
-
|
|
34
|
+
```js
|
|
35
|
+
/** @type {import('next').NextConfig} */
|
|
36
|
+
const nextConfig = {};
|
|
45
37
|
|
|
46
|
-
|
|
38
|
+
export default nextConfig;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Use this:
|
|
47
42
|
|
|
48
43
|
```js
|
|
49
|
-
// next.config.js or next.config.mjs
|
|
50
44
|
import { defineConfig } from '@archoleat/next-define-config';
|
|
51
45
|
|
|
52
|
-
export default defineConfig({
|
|
53
|
-
// Your options
|
|
54
|
-
})
|
|
46
|
+
export default defineConfig({})
|
|
55
47
|
```
|
|
56
48
|
|
|
57
49
|
## 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.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "archoleat@gmail.com",
|
|
@@ -28,19 +28,15 @@
|
|
|
28
28
|
"next",
|
|
29
29
|
"typescript"
|
|
30
30
|
],
|
|
31
|
-
"packageManager": "pnpm@9.
|
|
31
|
+
"packageManager": "pnpm@9.7.0",
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=20.0.0",
|
|
34
34
|
"pnpm": ">=9.0.0"
|
|
35
35
|
},
|
|
36
|
-
"volta": {
|
|
37
|
-
"node": "20.16.0",
|
|
38
|
-
"pnpm": "9.4.0"
|
|
39
|
-
},
|
|
40
36
|
"type": "module",
|
|
41
37
|
"types": "index.d.ts",
|
|
42
38
|
"imports": {
|
|
43
|
-
"#
|
|
39
|
+
"#index": "./src/index.ts"
|
|
44
40
|
},
|
|
45
41
|
"exports": {
|
|
46
42
|
".": "./index.js"
|
|
@@ -51,27 +47,18 @@
|
|
|
51
47
|
],
|
|
52
48
|
"scripts": {
|
|
53
49
|
"init": "pnpm i && husky",
|
|
54
|
-
"
|
|
55
|
-
"spec:coverage": "vitest run --coverage",
|
|
56
|
-
"build": "rollup -c rollup.config.ts --configPlugin typescript",
|
|
57
|
-
"release": "semantic-release",
|
|
58
|
-
"lint:editorconfig": "editorconfig-checker",
|
|
59
|
-
"lint:formatting": "prettier . --check",
|
|
60
|
-
"lint:md": "remark . --quiet --frail",
|
|
61
|
-
"lint:ts": "eslint src/index.ts --fix",
|
|
62
|
-
"prettify": "prettier . --write",
|
|
63
|
-
"commit": "cz"
|
|
50
|
+
"build": "rollup -c rollup.config.ts --configPlugin typescript"
|
|
64
51
|
},
|
|
65
52
|
"peerDependencies": {
|
|
66
53
|
"next": "^13.0.0 || ^14.0.0"
|
|
67
54
|
},
|
|
68
55
|
"devDependencies": {
|
|
69
|
-
"@archoleat/commitlint-define-config": "^1.0.
|
|
70
|
-
"@archoleat/eslint-flat-compatibility": "^1.1.
|
|
71
|
-
"@archoleat/prettier-define-config": "^1.0.
|
|
72
|
-
"@archoleat/semantic-release-define-config": "^1.1.
|
|
73
|
-
"@commitlint/cli": "^19.4.
|
|
74
|
-
"@commitlint/config-conventional": "^19.
|
|
56
|
+
"@archoleat/commitlint-define-config": "^1.0.11",
|
|
57
|
+
"@archoleat/eslint-flat-compatibility": "^1.1.8",
|
|
58
|
+
"@archoleat/prettier-define-config": "^1.0.2",
|
|
59
|
+
"@archoleat/semantic-release-define-config": "^1.1.16",
|
|
60
|
+
"@commitlint/cli": "^19.4.1",
|
|
61
|
+
"@commitlint/config-conventional": "^19.4.1",
|
|
75
62
|
"@commitlint/types": "^19.0.3",
|
|
76
63
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
77
64
|
"@semantic-release/changelog": "^6.0.3",
|
|
@@ -80,30 +67,30 @@
|
|
|
80
67
|
"@typescript-eslint/parser": "^7.18.0",
|
|
81
68
|
"@vitest/coverage-v8": "^2.0.5",
|
|
82
69
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
83
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
84
70
|
"editorconfig-checker": "^5.1.8",
|
|
85
71
|
"eslint": "^8.57.0",
|
|
72
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
86
73
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
87
74
|
"eslint-config-prettier": "^9.1.0",
|
|
88
75
|
"eslint-define-config": "^2.1.0",
|
|
89
|
-
"eslint-import-resolver-typescript": "^3.6.
|
|
76
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
90
77
|
"eslint-plugin-import": "^2.29.1",
|
|
91
78
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
92
79
|
"git-pull-run": "^1.4.0",
|
|
93
80
|
"globals": "^15.9.0",
|
|
94
|
-
"husky": "^9.1.
|
|
95
|
-
"lint-staged": "^15.2.
|
|
96
|
-
"next": "^14.2.
|
|
81
|
+
"husky": "^9.1.5",
|
|
82
|
+
"lint-staged": "^15.2.10",
|
|
83
|
+
"next": "^14.2.7",
|
|
97
84
|
"prettier": "^3.3.3",
|
|
98
85
|
"remark": "15.0.1",
|
|
99
86
|
"remark-cli": "^12.0.1",
|
|
100
87
|
"remark-preset-lint-consistent": "^6.0.0",
|
|
101
88
|
"remark-preset-lint-markdown-style-guide": "^6.0.0",
|
|
102
89
|
"remark-preset-lint-recommended": "^7.0.0",
|
|
103
|
-
"rollup": "^4.
|
|
90
|
+
"rollup": "^4.21.2",
|
|
104
91
|
"rollup-plugin-dts": "^6.1.1",
|
|
105
92
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
106
|
-
"semantic-release": "^24.
|
|
93
|
+
"semantic-release": "^24.1.0",
|
|
107
94
|
"typescript": "^5.5.4",
|
|
108
95
|
"vitest": "^2.0.5"
|
|
109
96
|
}
|