@nokken65/prettier-config 1.2.2 → 1.2.3

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.
@@ -0,0 +1,23 @@
1
+ name: NPM Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ publish-npm:
10
+ runs-on: ubuntu-latest
11
+ environment: npm
12
+ steps:
13
+ - uses: actions/checkout@v5
14
+
15
+ - uses: JS-DevTools/npm-publish@v4
16
+ with:
17
+ registry: https://registry.npmjs.org/
18
+ token: ${{ secrets.NPM_TOKEN }}
19
+
20
+ - name: Create GitHub Release
21
+ uses: softprops/action-gh-release@v2
22
+ with:
23
+ generate_release_notes: true
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import configJson from './.prettierrc' with { type: 'json' }
2
+
3
+ /**
4
+ * @see https://prettier.io/docs/configuration
5
+ * @type {import("prettier").Config}
6
+ */
7
+ const config = configJson
8
+
9
+ export default config
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@nokken65/prettier-config",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "private": false,
5
- "description": "prettier config",
6
5
  "type": "module",
7
- "prettier": "./.prettierrc.json",
8
- "exports": "./index.js",
9
- "files": [
10
- ".prettierignore",
11
- ".prettierrc.json"
12
- ],
6
+ "prettier": "./.prettierrc",
7
+ "main": "./index.js",
8
+ "exports": {
9
+ ".": "./index.js",
10
+ "./.prettierrc": "./.prettierrc",
11
+ "./.prettierignore": "./.prettierignore"
12
+ },
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
@@ -20,6 +20,7 @@
20
20
  "scripts": {
21
21
  "format": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
22
22
  },
23
+ "description": "prettier config",
23
24
  "repository": {
24
25
  "type": "git",
25
26
  "url": "git+https://github.com/nokken65/prettier-config.git"
File without changes