@nokken65/prettier-config 1.2.5 → 1.2.7

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.
@@ -12,9 +12,19 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  environment: npm
14
14
  steps:
15
- - uses: actions/checkout@v5
15
+ - name: Checkout
16
+ uses: actions/checkout@v5
16
17
 
17
- - uses: JS-DevTools/npm-publish@v4
18
+ - name: Install pnpm
19
+ uses: pnpm/action-setup@v4
20
+ with:
21
+ version: 10
22
+
23
+ - name: Install dependencies
24
+ run: pnpm install
25
+
26
+ - name: Publish package
27
+ uses: JS-DevTools/npm-publish@v4
18
28
  with:
19
29
  registry: https://registry.npmjs.org/
20
30
  token: ${{ secrets.NPM_TOKEN }}
package/index.js CHANGED
@@ -1,7 +1,11 @@
1
+ import configJson from './.prettierrc.json' with { type: 'json' }
2
+
1
3
  /**
2
4
  * @see https://prettier.io/docs/configuration
3
5
  * @type {import("prettier").Config}
4
6
  */
5
- const config = require('./.prettierrc.json')
7
+ const config = {
8
+ ...configJson
9
+ }
6
10
 
7
11
  export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nokken65/prettier-config",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "prettier": "./.prettierrc.json",