@archoleat/prettier-define-config 1.2.3 → 1.2.5

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.
Files changed (2) hide show
  1. package/README.md +13 -2
  2. package/package.json +9 -5
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
- Provide a defineConfig function for Prettier.
21
+ Use `defineConfig` for completion and option checking in an ESM Prettier
22
+ configuration. It returns the object unchanged; native JSDoc typing with
23
+ `import('prettier').Config` or TypeScript `satisfies Config` provides the same
24
+ checks without this helper. The declared peer range is Prettier `^3.3.3`;
25
+ this package does not validate configuration at runtime.
21
26
 
22
27
  ## Installation
23
28
 
@@ -25,6 +30,12 @@ Provide a defineConfig function for Prettier.
25
30
  bun i -D @archoleat/prettier-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 [Prettier Configuration](https://prettier.io/docs/en/options.html).
@@ -34,7 +45,7 @@ Add the following code to the `prettier.config.js` file:
34
45
  ```js
35
46
  import { defineConfig } from '@archoleat/prettier-define-config';
36
47
 
37
- export default defineConfig({})
48
+ export default defineConfig({});
38
49
  ```
39
50
 
40
51
  ## Contributing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archoleat/prettier-define-config",
3
3
  "description": "Provide a defineConfig function for Prettier",
4
- "version": "1.2.3",
4
+ "version": "1.2.5",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "email": "nikkeyl.me@gmail.com",
@@ -18,13 +18,11 @@
18
18
  },
19
19
  "keywords": [
20
20
  "archoleat",
21
- "prettier-define-config",
21
+ "configuration",
22
+ "developer-tools",
22
23
  "prettier",
23
24
  "typescript"
24
25
  ],
25
- "engines": {
26
- "bun": ">=1.0.0"
27
- },
28
26
  "type": "module",
29
27
  "types": "index.d.ts",
30
28
  "imports": {
@@ -81,5 +79,11 @@
81
79
  "semantic-release": "^25.0.5",
82
80
  "tslib": "^2.8.1",
83
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"
84
88
  }
85
89
  }