@cocopalm/oxc-formatter-config 0.0.23 → 0.0.25

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,12 @@
1
+ //#region src/index.d.ts
2
+ declare const _default: {
3
+ printWidth: number;
4
+ tabWidth: number;
5
+ useTabs: false;
6
+ semi: false;
7
+ singleQuote: true;
8
+ trailingComma: "all";
9
+ arrowParens: "always";
10
+ };
11
+ //#endregion
12
+ export { _default as default };
package/dist/index.mjs ADDED
@@ -0,0 +1,13 @@
1
+ import { defineConfig } from "oxfmt";
2
+ //#region src/index.ts
3
+ var src_default = defineConfig({
4
+ printWidth: 80,
5
+ tabWidth: 2,
6
+ useTabs: false,
7
+ semi: false,
8
+ singleQuote: true,
9
+ trailingComma: "all",
10
+ arrowParens: "always"
11
+ });
12
+ //#endregion
13
+ export { src_default as default };
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@cocopalm/oxc-formatter-config",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "oxc formatter configuration",
5
5
  "author": "puffcocos",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
- "main": "./oxfmt.config.ts",
8
+ "main": "./dist/index.mjs",
9
+ "types": "./dist/index.d.mts",
9
10
  "files": [
10
- "oxfmt.config.ts"
11
+ "dist"
11
12
  ],
12
13
  "keywords": [
13
14
  "oxc",
@@ -24,9 +25,14 @@
24
25
  "provenance": true
25
26
  },
26
27
  "devDependencies": {
27
- "oxfmt": "^0.42.0"
28
+ "oxfmt": "^0.42.0",
29
+ "tsdown": "^0.21.6",
30
+ "typescript": "^6.0.2"
28
31
  },
29
32
  "peerDependencies": {
30
33
  "oxfmt": ">=0.42.0"
34
+ },
35
+ "scripts": {
36
+ "build": "tsdown"
31
37
  }
32
38
  }
package/oxfmt.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'oxfmt'
2
-
3
- export default defineConfig({
4
- printWidth: 80,
5
- tabWidth: 2,
6
- useTabs: false,
7
- semi: false,
8
- singleQuote: true,
9
- trailingComma: 'all',
10
- arrowParens: 'always',
11
- })