@pengzhanbo/prettier-config 0.4.2 → 1.0.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/dist/index.cjs CHANGED
@@ -1,6 +1,29 @@
1
- 'use strict';
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
19
 
3
- const index = {
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ default: () => src_default
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var src_default = {
4
27
  // Maximum line length
5
28
  printWidth: 80,
6
29
  // Specify the number of spaces per indentation-level
@@ -25,7 +48,7 @@ const index = {
25
48
  arrowParens: "always",
26
49
  // Format only a segment of a file.
27
50
  rangeStart: 0,
28
- rangeEnd: Infinity,
51
+ rangeEnd: Number.POSITIVE_INFINITY,
29
52
  // Specify which parser to use.
30
53
  // parser: undefined,
31
54
  // Specify the file name to use to infer which parser to use.
@@ -47,5 +70,3 @@ const index = {
47
70
  // Enforce single attribute per line in HTML, Vue and JSX
48
71
  singleAttributePerLine: false
49
72
  };
50
-
51
- module.exports = index;
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ printWidth: number;
3
+ tabWidth: number;
4
+ useTabs: boolean;
5
+ semi: boolean;
6
+ singleQuote: boolean;
7
+ quoteProps: string;
8
+ jsxSingleQuote: boolean;
9
+ trailingComma: string;
10
+ bracketSpacing: boolean;
11
+ bracketSameLine: boolean;
12
+ arrowParens: string;
13
+ rangeStart: number;
14
+ rangeEnd: number;
15
+ requirePragma: boolean;
16
+ insertPragma: boolean;
17
+ proseWrap: string;
18
+ htmlWhitespaceSensitivity: string;
19
+ vueIndentScriptAndStyle: boolean;
20
+ endOfLine: string;
21
+ embeddedLanguageFormatting: string;
22
+ singleAttributePerLine: boolean;
23
+ };
24
+
25
+ export { _default as default };
@@ -1,4 +1,5 @@
1
- const index = {
1
+ // src/index.ts
2
+ var src_default = {
2
3
  // Maximum line length
3
4
  printWidth: 80,
4
5
  // Specify the number of spaces per indentation-level
@@ -23,7 +24,7 @@ const index = {
23
24
  arrowParens: "always",
24
25
  // Format only a segment of a file.
25
26
  rangeStart: 0,
26
- rangeEnd: Infinity,
27
+ rangeEnd: Number.POSITIVE_INFINITY,
27
28
  // Specify which parser to use.
28
29
  // parser: undefined,
29
30
  // Specify the file name to use to infer which parser to use.
@@ -45,5 +46,6 @@ const index = {
45
46
  // Enforce single attribute per line in HTML, Vue and JSX
46
47
  singleAttributePerLine: false
47
48
  };
48
-
49
- export { index as default };
49
+ export {
50
+ src_default as default
51
+ };
package/package.json CHANGED
@@ -1,49 +1,44 @@
1
1
  {
2
2
  "name": "@pengzhanbo/prettier-config",
3
- "version": "0.4.2",
4
- "keywords": [
5
- "prettier-config"
6
- ],
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
+ "license": "MIT",
7
7
  "homepage": "https://github.com/pengzhanbo/configs#readme",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git@github.com:pengzhanbo/configs.git",
11
11
  "directory": "packages/prettier-config"
12
12
  },
13
- "license": "MIT",
14
- "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
15
- "type": "module",
13
+ "keywords": [
14
+ "prettier-config"
15
+ ],
16
16
  "exports": {
17
17
  ".": {
18
- "require": "./dist/index.cjs",
19
- "import": "./dist/index.mjs"
18
+ "import": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/index.d.cts",
24
+ "default": "./dist/index.cjs"
25
+ }
20
26
  },
21
27
  "./package.json": "./package.json"
22
28
  },
23
- "main": "dist/index.cjs",
24
- "module": "dist/index.mjs",
29
+ "main": "dist/index.js",
25
30
  "types": "dist/index.d.ts",
26
31
  "files": [
27
32
  "dist"
28
33
  ],
29
- "unbuild": {
30
- "entries": [
31
- "./src/index"
32
- ],
33
- "declaration": true,
34
- "clean": true,
35
- "rollup": {
36
- "emitCJS": true
37
- }
34
+ "peerDependencies": {
35
+ "prettier": "^3.0.0"
38
36
  },
39
37
  "devDependencies": {
40
- "unbuild": "^1.2.1"
41
- },
42
- "peerDependencies": {
43
- "prettier": ">=2.7.1 || ^3.0.0"
38
+ "tsup": "^8.0.1"
44
39
  },
45
40
  "scripts": {
46
- "build": "unbuild",
47
- "stub": "unbuild --stub"
41
+ "build": "tsup src/index.ts --format esm,cjs --clean --dts --shims",
42
+ "stub": "tsup src/index.ts --format esm"
48
43
  }
49
44
  }